Josh Matthews
f79e1e327d
Make GlobalScope.get_cx a static method.
2023-05-20 11:05:09 -04:00
Josh Matthews
5c4939599e
Update mozjs.
2021-02-18 09:35:45 -05:00
AbhishekSharma102
1119dd119e
Added off thread compilation
...
Co-authored-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com>
Co-authored-by: Abhishek Sharma <20724848+AbhishekSharma102@users.noreply.github.com>
2020-07-21 16:20:51 -04:00
CYBAI
d1715918f0
Set private reference for classic script
...
Web developers can use `Dynamic Import` in a classic script; thus, we
need to save the script's private reference so that we can reuse it when
we're going to fetch a dynamic import module for a classic script.
Besides, because it's possible to use different executing context for a
dynamic import module (like `dynamic-import/string-compilation-other-document.html` WPT test),
we can't initialize a module owner at the timing of `SetScriptPrivate`;
thus, if the private module script doesn't hold an owner, we'll use a
DynamicImport owner for it.
2020-07-18 00:43:34 +09:00
Josh Matthews
ab7ade4efe
Report real caller information for console APIs to devtools.
2020-04-28 21:32:41 -04:00
Anthony Ramine
c10e839924
Don't go through the layout thread to retrieve a node's primary style
2020-04-07 14:34:47 +02:00
Kunal Mohan
5a3e1b8e69
rename compartment to realm
2020-01-24 20:52:36 +05:30
Paul Rouget
b3b886e837
devtools: save and send cached messages
2019-12-06 10:10:43 +01:00
marmeladema
88cacfb009
Modify *::get_cx methods to return a safe JSContext instead of a raw one
2019-07-24 09:53:10 +01:00
Kamil Niski
adb402487e
Create a helper API for entering a DOM object's compartment
...
Revert some unnecessary changes
Fix fmt errors
2019-06-29 19:23:17 +02:00
Josh Matthews
4328713f71
Update to SpiderMonkey 66.
2019-05-10 22:43:43 -04:00
Fernando Jiménez Moreno
efbfc0f939
Make devtools find node by unique id function include shadow trees
2019-04-26 11:42:38 +02:00
Fernando Jiménez Moreno
3ccd622c9b
Introduce ShadowIncluding enum for tree traversals
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
2e5c058463
Implement concept of shadow including tree order
2019-04-26 10:17:46 +02:00
Emilio Cobos Álvarez
6daebcc5df
Fix servo build.
2019-02-10 07:23:51 +01:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Marcin Mielniczuk
356c57e628
Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393
2018-03-28 21:28:30 +02:00
Jon Leighton
fe583fc5d0
Add layout RPC query for getting an element's style
...
This enables us to implement Element::has_css_layout_box() in a more
direct way, and also enables us to remove some of the existing more
specific queries.
Fixes #19811 .
2018-01-28 10:59:45 +01:00
Bastien Orivel
29b4eec141
Bump bitflags to 1.0 in every servo crate
2017-10-30 23:36:06 +01:00
Gecko Backout
11c64178d8
Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/18809
2017-10-19 21:26:51 +00:00
Bastien Orivel
e8e2d0a4b2
Update bitflags to 1.0 in every servo crate
...
It still needs dependencies update to remove all the other bitflags
versions.
2017-10-19 15:01:17 +02:00
Anthony Ramine
f87c2a8d76
Rename Root<T> to DomRoot<T>
...
In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>,
where Root<T> will be able to handle all the things that need to be
rooted that have a stable traceable address that doesn't move for the
whole lifetime of the root. Stay tuned.
2017-09-26 09:49:10 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Alan Jeffrey
1f61a549a3
Added some same-origin-domain checks.
2017-03-14 14:36:03 -05:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10:00
Anthony Ramine
e8c9c12b6e
Remove usage of FnBox for animation frame callbacks ( fixes #14416 )
2016-12-06 13:15:09 -10:00
Alan Jeffrey
90e9c910f4
Replace script thread root browsing context by a collection of documents.
2016-11-08 10:48:58 -06:00
Alan Jeffrey
a6d83a38e5
Setting a devtools timeline marker may fail, due to pipeline lookup failure.
2016-10-12 12:56:23 -05:00
Anthony Ramine
0b3ab875f4
Remove intrinsic Root::r()
2016-10-11 19:44:32 +02:00
Anthony Ramine
5d8979237b
Make devtools::handle_evaluate_js take a &GlobalScope
2016-10-06 21:35:50 +02:00
Anthony Ramine
9c04eb60bd
Move JS evaluation functions to GlobalScope
2016-10-06 21:35:50 +02:00
Anthony Ramine
fe6fca9e1f
Introduce GlobalScope::devtools_chan
2016-10-06 20:59:11 +02:00
Anthony Ramine
d7c2da450b
Introduce GlobalScope::live_devtools_updates
2016-10-06 20:59:10 +02:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Josh Matthews
61fcc72d35
Implement Reflectable for GlobalRef.
2016-09-07 10:52:44 +02:00
Guillaume Gomez
2f3f4a5bd6
Update rust-mozjs dependency
2016-08-24 12:56:49 +02:00
David Raifaizen
2475dc1d21
Removed some sources of panic from script thread and devtools, using Option values instead to indicate when a pipeline context is missing where appropriate. Additionally, removed erroneous method get_browsing_context.
2016-07-25 22:28:04 -04:00
Eduard Burtescu
0db1faf876
Switch to using the new rooted!/RootedGuard API for rooting.
2016-07-04 20:59:01 +03:00
Josh Matthews
7bf2e19437
Make the net monitor panel in FF's devtools show meaningful output.
...
0) Advertise support for the network monitor in the initial protocol communication.
1) Only notify the developer tools server about the final request in an HTTP transaction.
2) Add timing information for connecting to the HTTP server and sending the HTTP request.
3) Reduce duplication between various networkEventUpdate structures by creating a helper function
that merges two JSON structures together. This also corrects the JSON structure so the devtools
client interprets the output correctly.
4) Calculate various header size fields correctly.
5) Remove unnecessary usize->u32 casts by making the appropriate fields usize.
6) Add header values to request and response header messages.
7) Support triggering page reloads via the devtools client.
2016-06-06 00:51:36 +01:00
Manish Goregaokar
283fc8dd25
Use JSautoCompartment in devtools handle_evaluate_js to avoid segfault
...
fixes #11457
2016-05-27 15:12:27 +05:30
Ms2ger
e7eee3b067
Remove the IterableContext trait.
...
It serves no purpose.
2016-05-24 16:01:33 +02:00
Anthony Ramine
cdc7bca944
Move DOMString back to script
...
This entirely removes the 'non-geckolib' feature of the util crate.
2016-05-24 10:54:57 +02:00
Connor Brewster
9efd214b1e
removed instances of &Root<BrowsingContext>
2016-05-11 13:21:16 -06:00
Connor Brewster
cbc5ca65a8
remove page and move functionality to browing context
...
Allow for adding history items
Fixed nested iframe test failure
Cleanup and small refactors
fixup
2016-05-11 12:46:59 -06:00