aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | Avoid deadlock when shutting down.Alan Jeffrey2016-06-031-0/+2
|/
* implement related sw interface and register methodRahul Sharma2016-06-021-1/+25
|
* Auto merge of #11538 - Ms2ger:warnings, r=emiliobors-servo2016-06-011-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | Fix some build warnings. - [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 <!-- 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/11538) <!-- Reviewable:end -->
| * Fix some build warnings.Ms2ger2016-06-011-1/+0
| |
* | Auto merge of #11221 - izgzhen:blob-file-backend, r=Manishearthbors-servo2016-06-011-3/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add file backend support for Blob and related - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] These changes fix #10851, related to #11131 - [x] These changes do not require tests because the implementation is partial and can't work alone 1. Add new backend to `Blob` and a `BlobImpl` struct to abstract multiple backends 2. Rewrite most interfaces of `Blob` to accommodate the change 3. Change the `read` behaviour of `FileReader`, considering the case when blob is file-backed and not cached The design is still immature, welcome comments! - [x] I used `DOMRefCell` to cache the bytes in `BlobImpl`, is it sound? - [x] The interfaces (like `BlobImpl::get_bytes`) handle requests in a default-to-empty way when the inner `DataSlice` is not cached. It might be possible to handle this condition better. <!-- 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/11221) <!-- Reviewable:end -->
| * Add file backend support for Blob and relatedZhen Zhang2016-06-011-3/+3
| | | | | | | | | | | | | | | | Changes include: - Add BlobImpl to Blob, and related caching mechanism - Expose ResourceThreads to document_loader, workerglobalscope, worker, and global - Fix encode_multipart_form_data - Other small fixes to accommodate the above changes
* | Auto merge of #11480 - rafaqtro:local_b, r=emiliobors-servo2016-06-011-5/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename <!-- Please describe your changes on the following line: --> rename of page_fetch_complete and handle_page_fetch_complete for page_headers_available and handle_page_headers_available . --- <!-- 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 #11418 (github issue number if applicable). <!-- Either: --> - [ ] 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. --> <!-- 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/11480) <!-- Reviewable:end -->
| * | rename of page_fetch_complete and handle_page_fetch_completeRafael Quintero2016-05-311-5/+5
| | | | | | | | | | | | | | | | | | rename align
* | | script: Keep the DOM-side viewport up to date when scrolling happens inPatrick Walton2016-05-311-0/+23
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | WebRender. This happens asynchronously, just as it does in non-WebRender mode. This functionality is a prerequisite for doing proper display-list-based hit testing in WebRender, since it moves the scroll offsets into Servo (and, specifically, into the script thread, enabling iframe event forwarding) instead of keeping them private to WebRender. Requires servo/webrender_traits#55 and servo/webrender#277. Partially addresses #11108.
* | Bump rust-mozjs for the safe Runtime::new (fixes #11512)Anthony Ramine2016-05-311-1/+1
| |
* | Add a missing JSAutoCompartment to javascript url handling.Ms2ger2016-05-301-1/+4
| |
* | Auto merge of #11472 - jdm:wip, r=mbrubeckbors-servo2016-05-271-2/+0
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report blank lines that follow an open brace This automates something that I find myself frequently commenting on in PRs. --- <!-- 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] There are tests for these changes OR <!-- 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/11472) <!-- Reviewable:end -->
| * Remove empty lines following braces.Josh Matthews2016-05-271-2/+0
| |
* | Remove the LayoutChan type.Ms2ger2016-05-271-11/+10
|/ | | | It is a pointless abstraction.
* 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 -->