aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Added Debug implementations.Alan Jeffrey2017-06-131-0/+3
|
* Redirect document loads manuallyNikhil Shagrithaya2017-05-311-29/+61
|
* Webdriver uses browsing context ids rather than pipeline ids.Alan Jeffrey2017-05-251-2/+2
|
* Added a TopLevelBrowsingContextId type.Alan Jeffrey2017-05-221-25/+53
|
* Auto merge of #16861 - gterzian:use_microtask_to_await_stable_state, r=jdmbors-servo2017-05-191-5/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use microtasks to await a stable state. <!-- Please describe your changes on the following line: --> @jdm @KiChjang First pass at using microtasks to await a stable state. I ran into all sorts of problems to get it to compile, I think it's mainly related to the fact that the microtasks are stored in a `Vec`, which meant the `Runnalbe.handler(self: Box<Self>)` couldn't be called while iterating over the Vec... It compiles now although I haven't run any tests. I'm assuming I'm missing something fundamental and was hoping my changes would highlight the problems I run into, and you had a better idea of how to implement this... Perhaps we shouldn't pass a `Runnable` to `await_stable_state` at all? --- <!-- 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 #15375 (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/16861) <!-- Reviewable:end -->
| * use microtasks to await a stable stateGregory Terzian2017-05-191-5/+2
| |
* | Implemented Houdini worklets.Alan Jeffrey2017-05-171-1/+27
|/
* Auto merge of #16883 - jdm:mutationobserver, r=jdmbors-servo2017-05-171-0/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mutation Observer API Rebased from #16668. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix (partially) #6633 - [X] There are tests for these changes <!-- 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/16883) <!-- Reviewable:end -->
| * Mutation Observer APISumit2017-05-151-0/+26
| |
* | Renamed constellation::Frame to constellation::BrowsingContext.Alan Jeffrey2017-05-151-57/+67
|/
* Make methods storing layout-originating nodes unsafe.Josh Matthews2017-05-151-3/+5
|
* Root nodes for the duration of their CSS transitions.Josh Matthews2017-05-151-8/+39
| | | | | | | | This ensures that we can pass a node address as part of the asynchronous transition end notification, making it safe to fire the corresponding DOM event on the node from the script thread. Without explicitly rooting this node when the transition starts, we risk the node being GCed before the transition is complete.
* Auto merge of #16845 - asajeffrey:script-rename-browsing-contexts, r=jdmbors-servo2017-05-131-31/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed BrowsingContext to WindowProxy in script. <!-- Please describe your changes on the following line: --> Renamed `script::dom::BrowsingContext` to `script::dom::WindowProxy`. The browsing context is mostly maintained in the constellation, not in script. It would be nice to rename `constellation::Frame` to `constellation::BrowsingContext`, but that will be very confusing if there are two `BrowsingContext` types. --- <!-- 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 renamings aren't externally visible <!-- 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/16845) <!-- Reviewable:end -->
| * Renamed BrowsingContext to WindowProxy in script.Alan Jeffrey2017-05-121-31/+31
| |
* | Make non-initial about:blank loads asynchronousConnor Brewster2017-05-121-26/+28
|/ | | | | | | | | | | | | | | Don't update iframe pipeline until load completes To preserve the previous functionality of delaying load events when a new navigation is triggered, pending pipeline id represents the current pending load. The load event is only fired if the load message's pipeline id matches the pending pipeline id. Track frame size on Frame instead of Pipeline Disabled matchMedia test Track creator pipeline id
* added origin to globalscopeddh2017-04-241-0/+1
|
* Implement Gamepad APIImanol Fernandez2017-04-121-7/+7
|
* Implement basic interface for MutationObserver and MutationRecord.Sumit2017-04-051-0/+15
|
* Terminate timer scheduler thread during shutdownFernando Jiménez Moreno2017-03-301-2/+2
|
* Make image cache per-document rather than globalFernando Jiménez Moreno2017-03-271-8/+7
|
* Implement dissimilar-origin window.parent and window.top.Alan Jeffrey2017-03-171-24/+74
|
* Implement dissimilar-origin postMessage.Alan Jeffrey2017-03-151-2/+12
|
* Implement setter for document.domainAlan Jeffrey2017-03-151-1/+1
|
* Added some same-origin-domain checks.Alan Jeffrey2017-03-141-2/+9
|
* Move checks for document completion to the end of the event loop.Josh Matthews2017-03-071-1/+25
| | | | | | | | | | This better reflects the text of the specification - rather than queuing a task to dispatch the load evnet as soon as the document loader is unblocked, we want to "spin the event loop until there is nothing that delays the load event in the Document." Spinning the event loop is a concept that requires running tasks completely, hence we check the condition before returning to the start of the event loop.
* Make script thread initiate requests for images needed by layout.Josh Matthews2017-02-221-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In support of this goal, the layout thread collects information about CSS images that are missing image data and hands it off to the script thread after layout completes. The script thread stores a list of nodes that will need to be reflowed after the associated network request is complete. The script thread ensures that the nodes are not GCed while a request is ongoing, which the layout thread is incapable of guaranteeing. The image cache's API has also been redesigned in support of this work. No network requests are made by the new image cache, since it does not possess the document-specific information necessary to initiate them. Instead, there is now a single, synchronous query operation that optionally reserves a slot when a cache entry for a URL cannot be found. This reserved slot is then the responsibility of the queryer to populate with the contents of the network response for the URL once it is complete. Any subsequent queries for the same URL will be informed that the response is pending until that occurs. The changes to layout also remove the synchronous image loading code path, which means that reftests now test the same code that non-test binaries execute. The decision to take a screenshot now considers whether there are any outstanding image requests for layout in order to avoid intermittent failures in reftests that use CSS images.
* Add ImmutableOrigin to allow for serializing originsConnor Brewster2017-02-221-8/+8
|
* Allow browsing contexts to resolve to cross-origin windows.Alan Jeffrey2017-02-161-2/+4
|
* Remove usage of unwrap in handle_exit_pipeline_msg()karan sharma2017-02-131-1/+1
|
* Remove incorrect uses of asynchronous tasks from ServiceWorker job queue.Josh Matthews2017-02-011-44/+4
|
* Perform a microtask checkpoint after executing classic scripts and callbacks.Josh Matthews2017-02-011-0/+7
|
* Generalize promise job queue into solitary microtask queue.Josh Matthews2017-02-011-23/+18
|
* Auto merge of #15264 - servo:content-type, r=noxbors-servo2017-01-301-9/+3
|\ | | | | | | | | | | | | | | Always set the Document::contentType attribute in ScriptThread::load(). <!-- 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/15264) <!-- Reviewable:end -->
| * Always set the Document::contentType attribute in ScriptThread::load().Ms2ger2017-01-301-9/+3
| | | | | | | | There's no good reason to limit this to a few particular content types.
* | Allow windows to share browsing contexts.Alan Jeffrey2017-01-281-48/+35
| |
* | Fix document.write check for activity.Alan Jeffrey2017-01-271-0/+1
| |
* | The constellation notifies the script thread about documents becoming ↵Alan Jeffrey2017-01-271-37/+15
| | | | | | | | inactive, active and fully active.
* | Auto merge of #15220 - nox:kill-parser-pipeline, r=SimonSapin,jdmbors-servo2017-01-271-10/+2
|\ \ | |/ |/| | | | | | | | | | | Kill ServoParser::pipeline <!-- 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/15220) <!-- Reviewable:end -->
| * Kill ServoParser::pipelineAnthony Ramine2017-01-271-10/+2
| |
* | Auto merge of #15242 - servo:refpol, r=noxbors-servo2017-01-271-23/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | Simplify handling of the referrer policy header in ScriptThread::load(). <!-- 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/15242) <!-- Reviewable:end -->
| * | Simplify handling of the referrer policy header in ScriptThread::load().Ms2ger2017-01-261-23/+7
| |/
* | Auto merge of #15238 - servo:clip_rect, r=emiliobors-servo2017-01-271-6/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove unused InProgressLoad::clip_rect. <!-- 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/15238) <!-- Reviewable:end -->
| * | Remove unused InProgressLoad::clip_rect.Ms2ger2017-01-261-6/+2
| |/
* | Auto merge of #15179 - servo:alter_resource_utilization, r=noxbors-servo2017-01-261-24/+12
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Refactor away ScriptThread::alter_resource_utilization(). It's used in two places, one of which already has access to the Window. <!-- 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/15179) <!-- Reviewable:end -->
| * Refactor away ScriptThread::alter_resource_utilization().Ms2ger2017-01-261-24/+12
| | | | | | | | It's used in two places, one of which already has access to the Window.
* | Revert "Auto merge of #15136 - ↵Anthony Ramine2017-01-241-30/+42
|/ | | | | | | nox:mitochondria-finally-makes-it-into-the-tree, r=jdm" This reverts commit ca6376a7142640185f21beca4b11011e8367ec91, reversing changes made to bb24fd3177cd69931d6a894bfcbb605286cefa1e.
* Auto merge of #15136 - nox:mitochondria-finally-makes-it-into-the-tree, r=jdmbors-servo2017-01-231-42/+30
|\ | | | | | | | | | | | | | | Use mitochondria::OnceCell to store ScriptThread in TLS <!-- 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/15136) <!-- Reviewable:end -->
| * Use mitochondria::OnceCell to store ScriptThread in TLSAnthony Ramine2017-01-231-42/+30
| |
* | Make TransitionEvent::new take a &WindowAnthony Ramine2017-01-211-1/+1
|/
* Mark the page source as loaded only after parsing is doneAnthony Ramine2017-01-191-29/+2
|