aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Improve handling of missing layer_ctxManish Goregaokar2019-03-251-7/+8
| | |
| * | Shut down old VR compositor when the layer is replacedManish Goregaokar2019-03-251-0/+6
| | |
| * | Allow VR RAF loop to handle changes in the layer, support pending renderstatesManish Goregaokar2019-03-254-45/+171
| | |
| * | Hook XRRenderState into XRSessionManish Goregaokar2019-03-254-41/+12
| | |
| * | Add XRRenderStateManish Goregaokar2019-03-253-0/+82
| | |
* | | Add RTCPeerConnection::CloseManish Goregaokar2019-03-252-1/+26
| | |
* | | Add SignalingState to RTCPeerConnectionManish Goregaokar2019-03-252-4/+73
| | |
* | | Add ICEConnectionState to RTCPeerConnectionManish Goregaokar2019-03-252-7/+75
| | |
* | | Add ICEGatheringState to RTCPeerConnectionManish Goregaokar2019-03-252-4/+96
|/ /
* | Use servo-media-auto and call ServoMedia::init where requiredFernando Jiménez Moreno2019-03-255-0/+10
| |
* | Shutdown player when HTMLMediaElement is droppedFernando Jiménez Moreno2019-03-253-13/+21
| |
* | Auto merge of #23011 - dboyan:open-feature-tokenize, r=gterzian,cybaibors-servo2019-03-241-10/+106
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tokenizer for features in window.open <!-- Please describe your changes on the following line: --> This is a prototype implementation of feature tokenizer ~~and "noreferrer" feature~~ for window.open. I'm not very sure where the tokenizer code should be placed. Building now generates the following warning ``` warning: unused attribute --> components/script/dom/bindings/conversions.rs:74:5 | 74 | rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(unused_attributes)] on by default ``` --- <!-- 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 _partially_ fix #22869 (GitHub issue number if applicable) <!-- Either: --> - [X] 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/23011) <!-- Reviewable:end -->
| * Add a tokenizer for features in window.open()Boyan Ding2019-03-231-10/+106
| |
* | Auto merge of #23073 - sbansal3096:master, r=emiliobors-servo2019-03-222-1/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose public getter to stylesheet's owner <!-- Please describe your changes on the following line: --> - [x] expose a public getter on CSSStyleSheet to return the stylesheet's owner - [x] in CSSRuleList::insert_rule, use the new getter to pass a non-None value as an argument to arc.insert_rule - [x] add a test for this that verifies that the new stylesheet is actually loaded --- <!-- 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 #23028 <!-- Either: --> - [x] There are tests for these changes <!-- 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/23073) <!-- Reviewable:end -->
| * | Fix insertRule crash by exposing getter on stylesheet's ownersbansal30962019-03-222-1/+14
| | |
* | | Auto merge of #22973 - paulrouget:wrupdate, r=emiliobors-servo2019-03-221-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WR update ~Need https://github.com/tomaka/winit/issues/803~ @emilio can I ask you to look at the *"WR udpate: layout"* commit? There are a few changes I'm not sure about (should_inflate, the new filters_data and cache_tiles). Fix: #22993 <!-- 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/22973) <!-- Reviewable:end -->
| * | | WR update: dependencies updatePaul Rouget2019-03-211-1/+1
| | | |
* | | | Implement XMLSerializer interfaceGeorge Roman2019-03-213-0/+74
| |/ / |/| |
* | | Auto merge of #23055 - Manishearth:xrspace, r=asajeffreybors-servo2019-03-2012-53/+206
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some XRSpace improvements Proper XRSpace support is blocked on https://github.com/immersive-web/webxr/issues/565 , but in the meantime this improves XRSpace support a little bit, preparing both for support in getViewerPose and getPose as well as handling input spaces eventually. r? @jdm <!-- 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/23055) <!-- Reviewable:end -->
| * | | Improve getViewerPose()Manish Goregaokar2019-03-203-9/+14
| | | |
| * | | Cleanup XRFrameManish Goregaokar2019-03-181-4/+5
| | | |
| * | | Add requestReferenceSpaceManish Goregaokar2019-03-185-18/+64
| | | |
| * | | Add XRReferenceSpace::identityManish Goregaokar2019-03-181-0/+10
| | | |
| * | | Add session parameter to XRSpaceManish Goregaokar2019-03-183-11/+22
| | | |
| * | | Add originOffset to XRReferenceSpaceManish Goregaokar2019-03-184-12/+48
| | | |
| * | | Add XRRigidTransform attributesManish Goregaokar2019-03-182-2/+14
| | | |
| * | | Add XRRigidTransform constructorManish Goregaokar2019-03-183-7/+39
| | | |
* | | | Auto merge of #23045 - miller-time:promote-memory-blob, r=jdmbors-servo2019-03-201-15/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | create uuid before sending PromoteMemory message <!-- Please describe your changes on the following line: --> When `Blob::promote` is promoting a `BlobImpl::Memory`, create uuid and send it with the `FileManagerThreadMsg::PromoteMemory` message rather than blocking until one is received. --- <!-- 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 #23032 (GitHub issue number if applicable) <!-- Either: --> - [X] 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/23045) <!-- Reviewable:end -->
| * | | create uuid before sending PromoteMemory messageRussell Cousineau2019-03-181-15/+9
| | | |
* | | | Auto merge of #22480 - cdeler:implement-DOMException-constructor, r=jdmbors-servo2019-03-202-34/+95
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement dom exception constructor The constructor method was implemented I have a question: should I edit `./mach test-wpt` expectations? --- <!-- 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 #22412 - [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/22480) <!-- Reviewable:end -->
| * | | | implemented missed constructor for DOMException; fixed the tests expectationscdeler2019-03-192-34/+95
| |/ / /
* | | | Auto merge of #22923 - peterjoel:issue_8539_prefs_refactor, r=jdmbors-servo2019-03-2017-266/+170
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #8539 Config preferences backend restructure <!-- Please describe your changes on the following line: --> A procedural macro for generating static structures for use as the backend for config preferences, as well a mapping from string names to accessors. Preferences can be accessed and updated via a map-like interface with `String` keys, and now also via a convenience macro: `get_pref!(path.to.pref)`. Various `serde`-compatible field attributes are also supported, including renaming the string keys. This could be useful when changing the backend structure without breaking existing usages. I have added the choice to use `i64` as well as `f64` for storing numbers. As it turns out, none of the existing preferences used non-integer values. Setting a floating point value from a command-line argument requires a decimal point in order to parse correctly. --- <!-- 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 #8539 <!-- Either: --> - [X] 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. --> ----- I have a few outstanding problems or questions: 1. I am unable to get rid of this warning: ``` warning: unnecessary path disambiguator --> components/config/prefs.rs:130:51 | 130 | accessor_type = crate::pref_util::Accessor::<Prefs, crate::pref_util::PrefValue>, | ^^ try removing `::` ``` See: https://stackoverflow.com/questions/54710797/how-to-disable-unnecessary-path-disambiguator-warning 2. Several of the preferences in use were not represented in `prefs.json`. Some of these may be in error, but it is hard to tell. For example `js.offthread_compilation.enabled` vs `js.ion.offthread_compilation.enabled` could be different preferences or could be intended to have the same value. 3. Previously, several pieces of code provided default values when accessing a preference that may not be present. For example: ```Rust let DBL_CLICK_TIMEOUT = Duration::from_millis( PREFS .get("dom.document.dblclick_timeout") .as_u64() .unwrap_or(300), ); ``` Fallback values don't really make sense now and I've added these defaults to `prefs.json`. Does this sound right? 4. I have kept `PrefValue::Missing`, though it doesn't seem very useful any more. An error might be more appropriate now for an incorrect preference key. I've kept this partly because [`webdriver_server` uses it](https://github.com/servo/servo/blob/master/components/webdriver_server/lib.rs#L224). <!-- 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/22923) <!-- Reviewable:end -->
| * | | | #8539 Config preferences backend restructurePeter Hall2019-03-2017-266/+170
| |/ / /
* | | | Auto merge of #23029 - KwanEsq:insertRuleNoIndex, r=SimonSapinbors-servo2019-03-201-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update StyleSheet.insertRule WebIDL to make index optional. Update wpt metadata to show the new passes. Add one test as crashing since currently passing an \@import rule to insertRule leads to "Expected a stylesheet loader for \@import" --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23025 - [x] There are tests for these changes - [x] ./mach test-wpt css/cssom passes with 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/23029) <!-- Reviewable:end -->
| * | | Update StyleSheet.insertRule WebIDL to make index optional.Ian Moody2019-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update wpt metadata to show the new passes. Add one test as crashing since currently passing an @import rule to insertRule leads to "Expected a stylesheet loader for @import" Fixes #23025
* | | | Auto merge of #22891 - georgeroman:implement_cdatasection, r=Manishearthbors-servo2019-03-1811-19/+97
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement CDATASection interface and createCDATASection method <!-- 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 #22846 <!-- 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/22891) <!-- Reviewable:end -->
| * | | | Implement CDATASection interface and createCDATASection methodGeorge Roman2019-03-1411-19/+97
| |/ / /
* | | | Auto merge of #23021 - ejmg:assert_fail_#18439, r=jdmbors-servo2019-03-182-8/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assert fail #18439 <!-- Please describe your changes on the following line: --> This PR addresses #18439 by removing an assert statement that forces a panic whenever `LoadBlocker` is dropped during a GC sweep and receives a `None` `SCRIPT_THREAD_ROOT` value from `mark_document_with_no_blocked_loads()`. Instead of panicking on the assert, we remove it and let the None value pass silently. --- <!-- 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 #18439 <!-- 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/23021) <!-- Reviewable:end -->
| * | | | ran ./mach fmtelias2019-03-142-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - removed unused import in document_loader.rs - limit unsafe block in mark_document_with_no_blocked_loads in script_thread.rs - changed name of if let value to load in Drop for LoadBlocker in document_loader.rs
| * | | | let mark_document_with_no_blocked_loads() take a None value silentlyelias2019-03-131-5/+7
| | | | |
| * | | | removed spurrious assert in Drop for LoadBlockerelias2019-03-131-2/+2
| | | | |
* | | | | Add url for LayoutImageContextCaio2019-03-161-4/+3
| |_|/ / |/| | |
* | | | Auto merge of #23016 - pngai:remove-on-prefix, r=jdmbors-servo2019-03-144-7/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove 'on' prefix from event handler macros <!-- Please describe your changes on the following line: --> Remove 'on' prefix from event handler macros --- <!-- 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 #22516 (GitHub issue number if applicable) <!-- Either: --> - [X] 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/23016) <!-- Reviewable:end -->
| * | | | Remove 'on' prefix from event handler macrosPatrick Ngai2019-03-144-7/+7
| | |_|/ | |/| |
* | | | Auto merge of #23033 - Manishearth:xhr-copies, r=jdm,emiliobors-servo2019-03-141-14/+26
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop cloning response text on every chunk in XHR r? @jdm <!-- 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/23033) <!-- Reviewable:end -->
| * | | xhr: Reserve content-length worth of space in the response if possibleManish Goregaokar2019-03-131-1/+18
| | | |
| * | | xhr: Stop cloning response text every time we get a chunkManish Goregaokar2019-03-131-13/+8
| | |/ | |/|
* | | Auto merge of #23007 - BartGitHub:remove-pipeline-visibility-checks, r=jdmbors-servo2019-03-131-10/+0
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove pipeline visibility checks <!-- Please describe your changes on the following line: --> This includes the following changes/clean-ups: - Remove ```is_visible``` field from ```Pipeline``` struct - Remove ```SetVisible``` script message, and related message sending/handling. --- <!-- 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 #22986 <!-- Either: --> - [x] These changes do not require tests because the issue description states having a passing build is enough for a pull request. <!-- 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/23007) <!-- Reviewable:end -->
| * | Remove SetVisible message from iframeAron Zwaan2019-03-121-10/+0
| | |
* | | Auto merge of #23008 - georgeroman:implement_webdriver_find_elem_from_elem, ↵bors-servo2019-03-112-0/+26
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=Manishearth Implement WebDriver FindElementFromElement command <!-- 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 <!-- 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/23008) <!-- Reviewable:end -->