aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/windowproxy.rs
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #25781 - nox:fixzeal, r=jdmbors-servo2020-03-021-2/+2
|\ | | | | | | Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)
| * Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)Anthony Ramine2020-02-171-2/+2
| |
* | Always pass InRealm to GlobalScope::from_context to avoid getting null globalCYBAI2020-02-161-11/+18
|/
* Names should now be consistently atomsPatrick Shaughnessy2020-02-131-1/+2
|
* rename compartment to realmKunal Mohan2020-01-241-3/+3
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-6/+6
|
* Make property descriptors hold named/indexed property valuesPatrick Shaughnessy2020-01-101-2/+1
|
* improve spec compliance of discarding BCsGregory Terzian2019-09-221-3/+18
| | | | | | | | | | | | | | do not handle compositor input events when BC is being discarded prevent firing of timers for discarded BCs return null for opener is BC has been discarded bundle discard BC steps into window method return null in window.opener, if BC has already been discarded move the window closed check pre-event to script-thread
* Update Window::open and document::open parameters to match the specBastien Orivel2019-08-241-2/+2
| | | | Fixes #24012
* restructure content process shutdown ack with threaded sender, without layoutGregory Terzian2019-08-171-1/+0
|
* Auto merge of #23967 - gterzian:fix_double_transplant, r=asajeffreybors-servo2019-08-141-1/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant windowproxy transplanting <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23967) <!-- Reviewable:end -->
| * windowproxy: prevent unnecessary calls to set_windowGregory Terzian2019-08-141-1/+12
| |
* | Use safe JSContext as first argument for throw_dom_exceptionmarmeladema2019-08-091-1/+2
| |
* | Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)Simon Sapin2019-07-311-2/+2
|/
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-9/+9
|
* Auto merge of #23368 - gterzian:clean_up_navigation, r=asajeffreybors-servo2019-07-181-13/+28
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean-up navigation <!-- Please describe your changes on the following line: --> 1. Navigation as a result of following a hyperlink should be done in a task: https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks:dom-manipulation-task-source 2. The javascript url navigation should also be done in a task: https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:dom-manipulation-task-source 3. In `window.load_url`, it seems there is no need to send a message to the script-thread(the entirety of `load_url` should instead be done in a task when appropriate), so we can just do that last part "sync" by calling a method on the script, which will send a message to the constellation(for the parallel navigation steps), or queue task(for the JS navigation), as appropriate. 4. Separate the "normal" navigation flow from the handling of "navigate an iframe" message from constellation, since doing everything in one method as was previously done with `handle_navigate`, is confusing. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23368) <!-- Reviewable:end -->
| * clean-up navigationGregory Terzian2019-07-181-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | security: check target and source origin before executing JS url implement replacement-enabled flag as a HistoryEntryReplacement enum add source origin string on loaddata add LoadOrigin iframe: remove optional load-data auxiliaries: add load-data into info constellation: remove url from Pipeline::new check load origin: link to whatwg issue switch loadorigin toplevel to constellation
* | Create a helper API for entering a DOM object's compartmentKamil Niski2019-06-291-1/+2
| | | | | | | | | | | | Revert some unnecessary changes Fix fmt errors
* | Upgrade to Spidermonkey 67.Josh Matthews2019-06-261-5/+5
|/
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-4/+4
|
* set referrer in window.load_urlRussell Cousineau2019-04-191-3/+15
| | | | | | | | - this conforms to follow-hyperlinks spec step 13 - this conforms to window-open spec step 14.3 - replace uses of `referrer_url` with `referrer` - in Request class, change "no-referrer" to "" - set websocket fetch referrer to "no-referrer"
* Auto merge of #23011 - dboyan:open-feature-tokenize, r=gterzian,cybaibors-servo2019-03-241-10/+106
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tokenizer for features in window.open <!-- Please describe your changes on the following line: --> This is a prototype implementation of feature tokenizer ~~and "noreferrer" feature~~ for window.open. I'm not very sure where the tokenizer code should be placed. Building now generates the following warning ``` warning: unused attribute --> components/script/dom/bindings/conversions.rs:74:5 | 74 | rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(unused_attributes)] on by default ``` --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes _partially_ fix #22869 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23011) <!-- Reviewable:end -->
| * Add a tokenizer for features in window.open()Boyan Ding2019-03-231-10/+106
| |
* | Remove most RootedReference usesAnthony Ramine2019-03-101-3/+3
|/ | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* Auto merge of #22121 - gterzian:remove_constellation_block_in_navigation, ↵bors-servo2018-12-261-0/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=paulrouget Remove sync constellation -> embedder communication <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22042 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22121) <!-- Reviewable:end -->
| * implement windowproxy "delay-load-event-mode", and partially document ↵Gregory Terzian2018-12-231-0/+24
| | | | | | | | "completely-loaded"
* | style: Make Servo use a single thread-pool for layout-related tasks per-process.Emilio Cobos Álvarez2018-12-231-2/+0
|/ | | | | | Instead of per-document. This also allows to reuse this thread-pool if needed for other stuff, like parallel CSS parsing (#22478), and to share more code with Gecko, which is always nice.
* Initial window sizes are mandatory.Josh Matthews2018-12-141-1/+1
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-14/+14
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-16/+16
|
* Format script componentchansuke2018-09-191-180/+245
|
* Upgraded to SM 60Alan Jeffrey2018-08-201-16/+34
|
* implement opener, disowningGregory Terzian2018-08-111-8/+77
|
* implement window.open, create auxiliary browsing contextGregory Terzian2018-08-111-1/+142
|
* Set the proper attributes for the WindowProxy property descriptorKeith Yeung2018-04-301-7/+9
|
* Return window proxy properly for indexed window getterKeith Yeung2018-04-301-10/+39
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-56/+65
|
* Adding Name and SetName functions for windowpaavininanda2018-02-261-0/+14
|
* Use specific negative assertion for DOM Window ProxyCYBAI2018-01-261-3/+3
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-10/+14
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-6/+6
| | | | | | | 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.
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-5/+5
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Added a TopLevelBrowsingContextId type.Alan Jeffrey2017-05-221-2/+23
|
* Renamed constellation::Frame to constellation::BrowsingContext.Alan Jeffrey2017-05-151-12/+12
|
* Renamed BrowsingContext to WindowProxy in script.Alan Jeffrey2017-05-121-0/+596