aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Auto merge of #14589 - servo:harden-script, r=jdm+Ms2gerbors-servo2016-12-161-52/+70
|\ | | | | | | | | | | | | | | Reduce calls into arbitrary code with the ScriptThread::documents borrow held. <!-- 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/14589) <!-- Reviewable:end -->
| * Add a tidy check for problematic match cases in script_thread.rsJosh Matthews2016-12-161-14/+14
| |
| * Reduce calls into arbitrary code with the ScriptThread::documents borrow held.Ms2ger2016-12-141-45/+63
| |
* | Removed util.Alan Jeffrey2016-12-141-5/+4
|/
* Remove HeapGCValueAnthony Ramine2016-12-121-3/+3
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Add support for fullscreen #10102Jansen Jan2016-12-091-1/+3
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Properly mark application/xhtml+xml documents as XMLAnthony Ramine2016-12-011-13/+6
| | | | | | For this to work, we must remove the unimplemented!() call in Element::parse_fragment because all the tests rely on setting innerHTML.
* Implement synchronous about:blank loading.Ms2ger2016-11-301-4/+39
| | | | Based on initial work by jdm in <https://github.com/servo/servo/pull/8600>.
* Store the layout-to-constellation sender in the script thread.Ms2ger2016-11-301-3/+7
| | | | This will allow the script thread to spawn layout threads independently.
* When a script thread looks for a current layout thread, it should look in ↵Alan Jeffrey2016-11-231-2/+6
| | | | the incomplete loads.
* Share script threads per-tab and per-eTLD+1.Alan Jeffrey2016-11-221-13/+12
|
* Auto merge of #14173 - asajeffrey:script-thread-stores-top-level-frame-id, ↵bors-servo2016-11-211-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=paulrouget Report panics using the top-level frame id rather than the pipeline id <!-- Please describe your changes on the following line: --> At the moment, we report panics from script and layout using the root pipeline id. Once we are sharing more script threads, there won't be a root pipeline id any more. The plan is only to share script threads in the same tab, so there will be a top-level frame id that all the pipelines have in common. This PR reports panics using that top-level frame id. This mostly makes a difference to the browser API: rather than targeting a `mozbrowsererror` event at the root iframe of the script thread that panicked, it targets it at the containing mozbrowser iframe. --- <!-- 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 do not require tests because we don't test crash reporting <!-- 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/14173) <!-- Reviewable:end -->
| * Report errors using the top-level frame id rather than the pipeline id.Alan Jeffrey2016-11-171-1/+1
| |
* | Initial work on job queues for service workersRahul Sharma2016-11-221-8/+64
| |
* | Auto merge of #14274 - stshine:servo-url-index, r=emiliobors-servo2016-11-201-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement range index with the Position enum on ServoUrl <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> r? @emilio <!-- 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/14274) <!-- Reviewable:end -->
| * | Implement range index with the Position enum on ServoUrlPu Xingyu2016-11-181-1/+1
| |/
* | Remove redundant url clonesPu Xingyu2016-11-181-3/+3
| | | | | | | | | | They are now redundant since now document.url() returns a struct rather than a reference.
* | Move fragment navigation into Document objectPu Xingyu2016-11-181-64/+2
|/ | | | | | | Move the `check_and_scroll_fragment()` method into Document, make the mothod set the fragment of url after navigation, and use the `perform_a_scroll()` method to scroll rather than an individual method. Also removes the broken `Window.fragment` fields.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-15/+18
|
* Storage notifications routed via the constellation.Alan Jeffrey2016-11-151-7/+18
|
* Reorganise ServoParserAnthony Ramine2016-11-141-10/+10
| | | | | | Free-standing fonctions parse_html and friends are now static methods on ServoParser, and the HTML and XML tokenizers have been moved to private submodules.
* Properly implement TaskSource for NetworkingTaskSourceKeith Yeung2016-11-111-4/+3
|
* Script thread lifetime is now managed by the constellation.Alan Jeffrey2016-11-091-15/+24
|
* Auto merge of #14013 - asajeffrey:script-thread-no-root-document, r=jdmbors-servo2016-11-081-407/+298
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Script thread with no root document <!-- Please describe your changes on the following line: --> This PR removes the single root document from the script thread, and replaces it by a lookup table from `PipelineId`s to `Document`s. This is needed if we're going to share script threads, as per #633. The last commit is the one that matters, the ones before are #13646. cc @jdm @Ms2ger @ConnorGBrewster --- <!-- 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 do not require tests because refactoring <!-- 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/14013) <!-- Reviewable:end -->
| * Replace script thread root browsing context by a collection of documents.Alan Jeffrey2016-11-081-407/+298
| |
* | Webbluetooth Async behaviourAttila Dusnoki2016-11-081-2/+2
| |
* | Code review comments and upstream merge conflictsRaghav2016-11-041-42/+52
|\| | | | | | | | | | | Incorporated code review comments in components/net/http_loader.rs Resolved merge conflicts in cargo.lock file. Updated ReferrerPolicy in lib.rs
| * Move ReferrerPolicy to net_traits.Ms2ger2016-11-041-2/+2
| |
| * Auto merge of #13646 - asajeffrey:script-lookup-iframes-by-frameid, ↵bors-servo2016-11-031-40/+50
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=ConnorGBrewster Script lookup iframes by frameid <!-- Please describe your changes on the following line: --> Lookup iframes by `FrameId` rather than `PipelineId`. This should make lookup much more reliable, since the frame id doesn't change. cc @ConnorGBrewster @aneeshusa --- <!-- 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 do not require tests because refactoring <!-- 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/13646) <!-- Reviewable:end -->
| | * Lookup frames by frame_id, not pipeline_id.Alan Jeffrey2016-11-031-40/+50
| | |
| * | Auto merge of #14044 - servo:bluetooth, r=emiliobors-servo2016-11-031-1/+1
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | Split the bluetooth code out from the net crates. <!-- 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/14044) <!-- Reviewable:end -->
| | * Split the bluetooth code out from the net crates.Ms2ger2016-11-031-1/+1
| | |
* | | Network Security : Implement StrictOrigin and StrictOriginWhenCrossOriginRaghav2016-11-041-0/+4
|/ / | | | | | | | | | | Referer policy strict-origin and strict-origin-when-cross-origin changes have been implemented. Relevant unit test cases have been added. Enum for RefererPolicy has been added to hyper codebase and v 0.9.11 of hyper contains these changes. This commit also contains changes related to upgrade of hyper from v0.9.10 to v0.9.11. Other dependencies changed are rayon, utils, num_cpus.
* / Update to string-cache 0.3Simon Sapin2016-11-031-1/+1
|/
* Auto merge of #13453 - metajack:media-query-list, r=jdmbors-servo2016-11-021-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement matchMedia and MediaQueryList <!-- 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 - [ ] These changes fix #13376 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Fixes #13376. <!-- 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/13453) <!-- Reviewable:end -->
| * Implement matchMedia and MediaQueryListJack Moffitt2016-11-021-0/+5
| | | | | | | | Fixes #13376.
* | Use fetch in ScriptThread.Ms2ger2016-11-021-17/+16
| | | | | | | | | | I did not find the prose that defines the creation of the request in the HTML standard (if it exists).
* | Move WindowSizeType to script_traits.Ms2ger2016-10-221-3/+2
| |
* | Move LoadData to script_traits.Ms2ger2016-10-211-2/+2
| |
* | Auto merge of #13848 - mrobinson:remove-layers, r=glennwbors-servo2016-10-211-5/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove concept of Layers from Servo <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because this PR should not change behavior. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code. <!-- 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/13848) <!-- Reviewable:end -->
| * | Remove concept of Layers from ServoMartin Robinson2016-10-211-5/+1
| |/ | | | | | | | | | | | | | | Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code.
* / Stop ticking animations on non-dirty nodes during traversal.Bobby Holley2016-10-201-0/+3
|/
* Remove old rendering backend.Glenn Watson2016-10-181-2/+0
| | | | | | | | | | | | | | This removes paint threads, rust-layers dependency, and changes optional webrender types to be required. The use_webrender option has been removed, however I've left the "-w" command line option in place so that wpt runner can continue to pass that. Once it's removed from there we can also remove the -w option. Once this stage is complete, it should be fine to change the display list building code to generate webrender display lists directly and avoid the conversion step.
* Auto merge of #13741 - servo:fetch-doc-unused, r=Manishearthbors-servo2016-10-131-1/+0
|\ | | | | | | | | | | | | | | Remove some unused support for the legacy network stack in script. <!-- 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/13741) <!-- Reviewable:end -->
| * Remove DocumentLoader::pipeline.Ms2ger2016-10-131-1/+0
| |
* | Setting a devtools timeline marker may fail, due to pipeline lookup failure.Alan Jeffrey2016-10-121-10/+10
|/
* Auto merge of #13056 - KiChjang:transition-event, r=mbrubeckbors-servo2016-10-121-0/+38
|\ | | | | | | | | | | | | | | | | | | | | Implement transition event and infrastructure Fixes #10245. <!-- 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/13056) <!-- Reviewable:end -->
| * Emit TransitionEnd events in the layout thread and process it in the script ↵Keith Yeung2016-10-111-0/+38
| | | | | | | | thread
* | Remove intrinsic Root::r()Anthony Ramine2016-10-111-15/+14
|/