aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Move CSSReporter from script_layout_interface to scriptAnthony Ramine2019-01-141-3/+40
|
* Make a bunch of layout queries morally saferAnthony Ramine2019-01-091-19/+14
|
* Use incumbent global for postmessage origin check.Josh Matthews2019-01-071-5/+1
|
* Provide the source window as part of postMessage events.Josh Matthews2019-01-071-2/+9
|
* Remove now-unnecessary must_root and allow(unrooted_must_root) annotationsManish Goregaokar2019-01-041-1/+0
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-14/+14
|
* Auto merge of #22121 - gterzian:remove_constellation_block_in_navigation, ↵bors-servo2018-12-261-2/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+10
| | | | | | | | "completely-loaded"
* | Auto merge of #22451 - kingdido999:send-idle-message-once, r=jdmbors-servo2018-12-221-3/+11
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid sending idle message more than once after a reflow is complete <!-- Please describe your changes on the following line: --> A boolean variable is introduced to prevent sending SetDocumentState idle message multiple times after a reflow is complete. --- <!-- 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 fix #22410 (GitHub issue number if applicable) <!-- Either: --> - [x] These changes do not require tests because automated test is not possible. <!-- 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/22451) <!-- Reviewable:end -->
| * Clean upkingdido9992018-12-131-1/+2
| |
| * Avoid sending idle message more than once after a reflow is completekingdido9992018-12-131-3/+10
| |
* | Prevent JS execution and layout operations while DOM in inconsistent state.Josh Matthews2018-12-141-0/+2
| |
* | Initial window sizes are mandatory.Josh Matthews2018-12-141-23/+14
|/
* Cancel animations that affect nodes that do not participate in layout.Josh Matthews2018-12-101-1/+7
|
* Remove unused recycle argument from Document::unloadGeorge Roman2018-11-301-1/+1
|
* Update webrenderManish Goregaokar2018-11-271-5/+3
|
* refactored performance timing to align with updated specddh2018-11-201-5/+1
| | | | | | | | | | | | refactoring with ResourceFetchMetadata implemented deprecated window.timing functionality created ResourceTimingListener trait fixed w3c links in navigation timing updated include.ini to run resource timing tests on ci
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-12/+11
|
* Unify the task source and task canceller APIAgustin Chiappe Berrini2018-11-141-99/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I moved away from the `Window` struct all the logic to handle task sources, into a new struct called `TaskManager`. In a happy world, I'd be able to just have there two functions, of the types: ```rust fn task_source<T: TaskSource>(&self, name: TaskSourceName) -> Box<T> fn task_source_with_canceller<T: TaskSource>(&self, name: TaskSourceName) -> (Box<T>, TaskSourceCanceller) ``` And not so much duplicated code. However, because TaskSource can't be a trait object (because it has generic type parameters), that's not possible. Instead, I decided to reduce duplicated logic through macros. For reasons[1], I have to pass both the name of the function with canceller and the name of the function without, as I'm not able to concatenate them in the macro itself. I could probably use `concat_idents` to create both types already defined and reduce the amount of arguments by one, but that macro is nightly only. At the same time, not being able to declare macros inside `impl` forces me to pass `self` as an argument. All this makes this solution more verbose than it would be ideally. It does reduce duplication, but it doesn't reduce the size of the file. [1](https://github.com/rust-lang/rust/issues/29599)
* Implement TaskSource for HistoryTraversalAgustin Chiappe Berrini2018-11-131-6/+3
| | | | | And remove the method in window that returns it, because it isn't used so far.
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-3/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-7/+7
|
* Reorder importsPyfisch2018-11-061-18/+28
|
* Format remaining filesPyfisch2018-11-061-2/+4
|
* Sort `use` statementsSimon Sapin2018-11-061-21/+21
|
* `cargo fix --edition`Simon Sapin2018-11-061-65/+65
|
* Add task source for media elementchansuke2018-10-101-0/+9
|
* Move unsafe_no_jsmanaged_fields to traceFernando Jiménez Moreno2018-10-081-11/+1
|
* Provide webrender_api::RenderApiSender to ScriptThread and DOM WindowVíctor Manuel Jáquez Leal2018-10-081-1/+20
| | | | | | | | | | | This will allow the HTMLMediaElement later to get a handle to the RenderApi for rendering video frames. At a later time, all media handling should be moved to its own thread/process that is communicated with via IPC. At that point this can be removed again. Original-patch-by: Sebastian Dröge <sebastian@centricular.com>
* Format script componentchansuke2018-09-191-200/+355
|
* Auto merge of #21325 - gterzian:crossbeam_integration, r=SimonSapin,jdmbors-servo2018-09-121-8/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace mpsc with crossbeam-channel Follow up on https://github.com/servo/servo/pull/19515 --- Selecting over multiple channels in `std::sync::mpsc` is not stable and likely never will be: https://github.com/rust-lang/rust/issues/27800#issuecomment-260136777 > It seems the only thing keeping `mpsc_select` around is Servo. crossbeam-channel is designed specifically to replace `std::sync::mpsc` and fix many of its shortcomings: https://github.com/stjepang/rfcs-crossbeam/blob/channel/text/2017-11-09-channel.md This is to be landed together with https://github.com/servo/ipc-channel/pull/183. <!-- 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/21325) <!-- Reviewable:end -->
| * Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-8/+8
| | | | | | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* | Auto merge of #21280 - paavininanda:Update_the_image_data, r=jdmbors-servo2018-09-121-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reacting to environment changes <!-- 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: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix a subset of #11416 <!-- Either: --> - [x] These changes do not require tests because they will be added when the complete responsive images is complete <!-- 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/21280) <!-- Reviewable:end -->
| * Reacting to environment changespaavininanda2018-09-121-0/+1
| |
* | Add Websocket task sourceAgustin Chiappe Berrini2018-09-081-0/+9
| | | | | | | | | | | | | | | | According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network The task source for all tasks queued in the websocket section are the websocket task source, so this commit also updates those references to use the appropriate one.
* | Auto merge of #21583 - AgustinCB:add-task-source-name, r=jdmbors-servo2018-09-041-2/+4
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add task source name Refactor `CommonScriptMsg::Task` to include `TaskSourceName`. Sorry for the delay, between doing this after work and the time I spent trying to ramp up on the project, it took me a bit longer than I expected. Test still don't pass in local, but they fail the same way on master, so I guess it's ok. I may have forgotten something, I refactored mostly the stuff that the compiler complained about. Please let me know if I missed anything. I tried to dump my thought process on the commit messages, so feel free to go commit by commit to understand context. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21527 - [ ] There are tests for these changes OR - [x] These changes do not require tests because it's mostly refactor, no new behavior added. <!-- 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/21583) <!-- Reviewable:end -->
| * Add the TaskSourceName to CommonScriptMsg::TaskAgustin Chiappe Berrini2018-09-041-2/+4
| | | | | | | | Update QueuedTaskConversion and the TaskQueue to use it
* | Fix other parts of the Servo build.Emilio Cobos Álvarez2018-09-031-0/+1
|/
* Fix the build for NLLSimon Sapin2018-08-241-1/+1
| | | | | | Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
* Auto merge of #21430 - Eijebong:ws-origin, r=jdmbors-servo2018-08-221-0/+1
|\ | | | | | | | | | | | | | | Properly set the origin on websocket messages <!-- 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/21430) <!-- Reviewable:end -->
| * Properly set the origin on websocket messagesBastien Orivel2018-08-161-0/+1
| |
* | Upgraded to SM 60Alan Jeffrey2018-08-201-7/+8
|/
* make auxiliary browsing-context script-closeableGregory Terzian2018-08-111-3/+3
|
* implement opener, disowningGregory Terzian2018-08-111-2/+28
|
* implement window.open, create auxiliary browsing contextGregory Terzian2018-08-111-0/+9
|
* Revert "Fix the build for NLL"Josh Matthews2018-08-071-1/+1
| | | | This reverts commit d1733aa5029c5b97390a236d94eed916ddb64577.
* Fix the build for NLLSimon Sapin2018-08-081-1/+1
| | | | | | Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
* Auto merge of #21111 - gterzian:implement_document_load_cancellation, r=jdmbors-servo2018-07-291-5/+42
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement document load cancellation <!-- 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 #19309 fix #21114 fix #21113 (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/21111) <!-- Reviewable:end -->
| * use DOMTracker instead of WeakMediaQueryListVecGregory Terzian2018-07-291-5/+27
| |