aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
* Report use statements that use {} with only one entryCullen Rhodes2016-05-271-1/+1
|
* Auto merge of #11372 - tschneidereit:parent-js-runtime-for-workers, r=noxbors-servo2016-05-261-3/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass a parent JS runtime when creating DOM Worker runtimes This enables sharing data with the parent runtime, decreasing memory usage and startup time. Also contains an update to current rust-mozjs, because that's required for this to work. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] These changes don't fix a github issue Either: - [ ] There are tests for these changes OR - [x] These changes do not require tests because the changes don't change any observable behavior <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11372) <!-- Reviewable:end -->
| * Pass a parent JS runtime when creating DOM Worker runtimesTill Schneidereit2016-05-241-3/+4
| | | | | | | | This enables sharing data with the parent runtime, decreasing memory usage and startup time. Also contains an update to current rust-mozjs, because that's required for this to work.
* | Auto merge of #11370 - Ms2ger:IterableContext, r=jdmbors-servo2016-05-251-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the IterableContext trait. 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 --faster` 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. It serves no purpose. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11370) <!-- Reviewable:end -->
| * | Remove the IterableContext trait.Ms2ger2016-05-241-1/+1
| |/ | | | | | | It serves no purpose.
* | Remove ScriptThread::layout_to_constellation_chan.Ms2ger2016-05-251-7/+4
| | | | | | | | Instead, pass it along in NewLayoutInfo when needed.
* | Remove the script listener thread (fixes #11345).Ms2ger2016-05-251-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | We needed a separate thread in the chrome process because communication to the compositor is done through a trait object, and cross-process virtual calls are forbidden. Also, the fact that these messages are ultimately handled by the compositor is an implementation detail; conceptually, the relevant constellation is supposed to handle these messages. So instead, the script thread will now send the messages to the constellation, which will ask the compositor to handle them.
* | Auto merge of #11373 - servo:threadfactory, r=larsbergstrombors-servo2016-05-251-18/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use associated types to improve LayoutThreadFactory and ScriptThreadFactory. 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 --faster` 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. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11373) <!-- Reviewable:end -->
| * | Use associated types to improve LayoutThreadFactory and ScriptThreadFactory.Ms2ger2016-05-241-18/+12
| |/
* / Stop storing CSS errors on the Document.Ms2ger2016-05-241-15/+13
|/ | | | They are never read.
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Auto merge of #11338 - Ms2ger:compositor-refcell, r=noxbors-servo2016-05-231-10/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take ScriptThread::compositor out of its RefCell. 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 --faster` 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. There's no reason for it; IpcSender::send takes &self. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11338) <!-- Reviewable:end -->
| * Take ScriptThread::compositor out of its RefCell.Ms2ger2016-05-231-10/+9
| | | | | | | | There's no reason for it; IpcSender::send takes &self.
* | Auto merge of #11179 - asajeffrey:webdriver-resize-window, r=jgrahambors-servo2016-05-231-2/+0
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented webdriver SetWindowSize. 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 #10467 (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because the new tests are in https://github.com/w3c/web-platform-tests/pull/3024 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11179) <!-- Reviewable:end -->
| * Made SetWindowSize synchronous.Alan Jeffrey2016-05-201-4/+0
| |
| * Implemented webdriver SetWindowSize.Alan Jeffrey2016-05-201-0/+2
| |
* | Auto merge of #10961 - creativcoder:custom_response_iface, r=jdmbors-servo2016-05-211-4/+35
|\ \ | |/ |/| | | | | | | | | | | | | | | | | adding interface for custom responses Fixes #10960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10961) <!-- Reviewable:end -->
| * adding interface for custom responsesRahul Sharma2016-05-201-4/+35
| |
* | Remove pointless phantom arguments to ScriptThreadFactory and ↵Ms2ger2016-05-201-6/+4
|/ | | | LayoutThreadFactory.
* Implement trait-based ResourceThreads and clean up related naming issuesZhen Zhang2016-05-201-11/+7
| | | | | | | | | | Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
* Remove ConstellationChan.Ms2ger2016-05-191-18/+17
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Auto merge of #11239 - jdm:time-profile, r=noxbors-servo2016-05-181-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add timeline markers for HTTP requests, JS evaluation, and HTML parsing. 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 (didn't try to compile past a rustc upgrade on airplane wifi) - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes fix #11218 (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because we don't have testing infrastructure for profiling. 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11239) <!-- Reviewable:end -->
| * Add timeline markers for HTTP requests, JS evaluation, and HTML parsing.Josh Matthews2016-05-181-0/+1
| |
* | Report panics in web worker threads.Ms2ger2016-05-181-1/+5
|/
* Stop using JSAutoRequest.Ms2ger2016-05-131-2/+1
|
* Auto merge of #10714 - KiChjang:user-interaction-task, r=Ms2gerbors-servo2016-05-121-3/+7
|\ | | | | | | | | | | | | | | | | | | | | Implement user interaction task source Part of #7959. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10714) <!-- Reviewable:end -->
| * Implement user interaction task sourceKeith Yeung2016-05-111-1/+5
| |
| * Rename DOM manipulation messages to tasksKeith Yeung2016-05-041-2/+2
| |
* | Addressed commentConnor Brewster2016-05-111-12/+10
| |
* | removed instances of &Root<BrowsingContext>Connor Brewster2016-05-111-3/+3
| |
* | remove page and move functionality to browing contextConnor Brewster2016-05-111-244/+248
| | | | | | | | | | | | | | | | | | | | Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup
* | Add logging for shutting down non-root pipelines in the script thread.Josh Matthews2016-05-111-0/+1
| |
* | Make debug logging for tracing JS objects more informative.Josh Matthews2016-05-111-0/+1
|/
* Auto merge of #10632 - szeged:bluetooth-ipc, r=jdmbors-servo2016-05-041-0/+5
|\ | | | | | | | | | | | | | | | | | | | | WebBluetooth impementation Update the current WebBluetooth implementation. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10632) <!-- Reviewable:end -->
| * Add Bluetooth IPC supportfokinv2016-05-031-0/+5
| |
* | Auto merge of #8454 - jdm:media, r=KiChjangbors-servo2016-05-031-0/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement basic <media> infrastructure This gets us to the point where we can start playing with actually integrating rust-media to process the data received by the network request, as currently it's just ignored. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8454) <!-- Reviewable:end -->
| * | Implement basic media resource selection and fetching.Josh Matthews2016-05-031-0/+13
| | |
* | | Update SpiderMonkeyAnthony Ramine2016-05-031-2/+3
| |/ |/|
* | Make IFrameLoadInfo take an Option<LoadData> instead of Option<Url>Keith Yeung2016-04-301-1/+1
| |
* | Reduce channel cloning.Ms2ger2016-04-291-1/+1
| |
* | Avoid the unnecessary MainThreadScriptChan in ScriptThread::create().Ms2ger2016-04-291-4/+8
| |
* | Remove unused SendableMainThreadScriptChan::new() method.Ms2ger2016-04-291-8/+0
| |
* | Remove unused MainThreadScriptChan::new() method.Ms2ger2016-04-291-8/+0
| |
* | Avoid some clones.Ms2ger2016-04-291-11/+7
|/
* script: Make iframes know their pipeline IDs at all times, even afterPatrick Walton2016-04-281-4/+9
| | | | | | | | | navigation. Since WebRender uses the pipeline ID stored in the iframe element to determine which pipeline to display, it had better be kept up to date! Closes #9919.
* Remove extraneous script_chan parameter from Trusted::newKeith Yeung2016-04-281-3/+2
|
* Auto merge of #10647 - ConnorGBrewster:parse_xml, r=jdmbors-servo2016-04-271-23/+29
|\ | | | | | | | | | | | | | | | | | | | | | | | | Finish hooking up XML parser This is a work in progress PR for #10581. I just want to make sure I am headed in the right direction. cc @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10647) <!-- Reviewable:end -->
| * Finish hooking up XML parserConnor Brewster2016-04-271-23/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added script integration with xml5ever Updated test expectations Removed timeout test expectation Refactors application/xhtml+xml is treated as HTML Updated xml5ever Updated Text Expectations
* | Move abstract parser infrastructure from servohtmlparser.rs to parseMartin Broesamle2016-04-271-1/+2
|/
* Add referrer policy pass-through and referrer header logicRebecca2016-04-251-0/+2
| | | | | | | add pass-through from doc to http-loader for referrer_policy, ref_URL add logic for setting referer header add script pass-through for referrer add unit tests for setting referer header