aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Implement WebDriver FindElementFromElement commandGeorge Roman2019-03-092-0/+26
| |/ /
* | | Auto merge of #23013 - servo:rm-rooted-reference, r=jdmbors-servo2019-03-1135-214/+208
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify RootedReference and make it specifically about slices It's now called `DomSlice<T>`. <!-- 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/23013) <!-- Reviewable:end -->
| * | | Simplify RootedReference and make it specifically about slicesIt's now ↵Anthony Ramine2019-03-116-17/+22
| | | | | | | | | | | | | | | | called DomSlice<T>.
| * | | Don't use RootedReference for Option<T> in codegen anymoreAnthony Ramine2019-03-102-16/+4
| | | |
| * | | Remove most RootedReference usesAnthony Ramine2019-03-1034-185/+186
| | |/ | |/| | | | | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* | | Auto merge of #22802 - gterzian:only_run_tasks_for_fully_active_docs, r=noxbors-servo2019-03-114-9/+154
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In BC event-loop, only run tasks related to fully-active documents <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22792 (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/22802) <!-- Reviewable:end -->
| * | | in BC event-loop, only run tasks related to fully-active documentsGregory Terzian2019-03-064-9/+154
| | | |
* | | | Auto merge of #22966 - Goncalerta:22962, r=jdmbors-servo2019-03-111-32/+11
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify VideoTrackList::set_selected --- <!-- 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 - [x] These changes fix #22962 (GitHub issue number if applicable) - [x] These changes do not require tests because just refactors existing 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/22966) <!-- Reviewable:end -->
| * | | Simplify VideoTrackList::set_selectedPedroGonçaloCorreia2019-03-051-32/+11
| | | |
* | | | Auto merge of #22851 - georgeroman:make_blank_target_imply_noopener, r=cybai,jdmbors-servo2019-03-091-1/+8
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make blank target imply noopener, implement "opener" link type <!-- 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 part of #22845 <!-- 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/22851) <!-- Reviewable:end -->
| * | | Make blank target imply noopenerGeorge Roman2019-02-121-1/+8
| | | |
* | | | Auto merge of #22995 - servo:jdm-patch-28, r=noxbors-servo2019-03-081-1/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove an unnecessary synchronous full reflow. We already reflow any nodes that are dirtied during any turn of the event loop. There is no reason to synchronously reflow the entire document, especially when we don't even modify it in this method. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22988 - [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/22995) <!-- Reviewable:end -->
| * | | | Remove an unnecessary synchronous full reflow.Josh Matthews2019-03-071-1/+0
| | | | |
* | | | | Auto merge of #22999 - jdm:iframe-replace, r=asajeffrey,cbrewsterbors-servo2019-03-072-4/+21
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix replacement logic when navigating nested browsing contexts These changes also fix a bug where traversing the session history in a nested browsing context did not update the iframe's contentWindow appropriately. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22996 - [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/22999) <!-- Reviewable:end -->
| * | | | | Make nested browsing context navigations check the loaded status of the ↵Josh Matthews2019-03-071-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | active document of the nested browsing context.
| * | | | | Ensure iframe's contentWindow is updated when traversing the session history.Josh Matthews2019-03-071-1/+20
| |/ / / /
* / / / / Remove offscreen_gl_context dependency from canvas_traits and script.Josh Matthews2019-03-076-13/+9
|/ / / /
* | | | Add support for default dict values being boolean, use in MediaStreamConstraintsManish Goregaokar2019-03-042-5/+11
| | | |
* | | | Add aspect/frameRate/sampleRate parametersManish Goregaokar2019-03-043-13/+37
| | | |
* | | | Add support for basic MediaTrackConstraintsManish Goregaokar2019-03-042-38/+75
| | | |
* | | | Auto merge of #22958 - Manishearth:attrs-on-types, r=noxbors-servo2019-03-0422-666/+989
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for attributes on types in WebIDL WebIDL moved `[Clamp]`, `[RangeEnforced]`, and `[TreatNullAs]` to applying directly to types in https://github.com/heycam/webidl/pull/286. I implemented parser support for this upstream in [bug 1359269](https://bugzilla.mozilla.org/show_bug.cgi?id=1359269). This pull request downstreams those changes and updates codegen as well as any webidls to conform. Needed to land #22874 r? @nox <!-- 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/22958) <!-- Reviewable:end -->
| * | | | Update WebIDL.py to 4166cae81546Manish Goregaokar2019-03-0421-666/+962
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://hg.mozilla.org/integration/autoland/rev/4166cae81546f54accae807413f806d20bf30920 Pulls in changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1359269
| * | | | Move pref-main-thread.patch backManish Goregaokar2019-03-021-0/+27
| | | | |
* | | | | Auto merge of #22963 - servo:rustup, r=jdmbors-servo2019-03-032-2/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.34.0-nightly (0ea22717a 2019-03-02) <!-- 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/22963) <!-- Reviewable:end -->
| * | | | Upgrade to rustc 1.34.0-nightly (0ea22717a 2019-03-02)Simon Sapin2019-03-032-2/+1
| |/ / /
* | | | Auto merge of #22622 - sreeise:audio_video_tracks, r=jdmbors-servo2019-03-0314-8/+839
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList inte… …rfaces <!-- Please describe your changes on the following line: --> Added AudioTrack, AudioTrackList, VideoTrack, VideoTrackList, and TrackEvent interfaces to support multiple media tracks. --- <!-- 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 #22301 (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/22622) <!-- Reviewable:end -->
| * | | | Added AudioTrack, AudioTrackList, VideoTrack, VideoTrackList, and TrackEvent ↵sreeise2019-03-0314-8/+839
| |/ / / | | | | | | | | | | | | interfaces
* / / / implement historical cancelBubble attribute for Event interfaceYuki Toyoda2019-03-032-0/+13
|/ / /
* | | Auto merge of #22933 - pngai:implement-returnValue-attribute, r=jdmbors-servo2019-03-012-0/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement historical returnValue attribute for Event interface <!-- Please describe your changes on the following line: --> Implementation of `returnValue` attribute for Event interface. --- <!-- 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 #22881 (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/22933) <!-- Reviewable:end -->
| * | | Implement historical returnValue attribute for Event interfacePatrick Ngai2019-02-282-0/+13
| | | |
* | | | Auto merge of #22934 - Manishearth:update-webidl, r=noxbors-servo2019-03-0112-93/+191
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update WebIDL.py I'm working on getting [attributes on types landed in upstream webidl](https://bugzilla.mozilla.org/show_bug.cgi?id=1359269). In preparation for that, I'd like to update WebIDL.py and deal with all the conflicts first so that updating for that bug is easier. (This PR doesn't need to be reviewed and landed right now, I can just roll it into the PR for implementing attributes on types, but I suspect it would be easier to land this first) Probably should squash before landing, the steps are separated out for ease of review. r? @nox @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/22934) <!-- Reviewable:end -->
| * | | | Update webidl.py from upstreamManish Goregaokar2019-03-0112-93/+191
| |/ / /
* | | | Auto merge of #22917 - ksqsf:master, r=KiChjangbors-servo2019-02-271-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add optional annotations for initEvent method of Event interface Added `optional` and default values to parameters `bubbles` and `cancelable` of `initEvent` of `Event`. I tried to update test results, but there seem to be no differences at all. I checked similar code where `optional` is used, and there seems to be no special handling in Rust. If that is not the case with this issue, please let me know and I'll commit more follow-ups. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22883 <!-- Either: --> - [x] There are tests for these changes OR <!-- 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/22917) <!-- Reviewable:end -->
| * | | | Add optional annotations for initEvent method of Event interface_rika2019-02-261-1/+1
| |/ / /
* | | | Auto merge of #22938 - asajeffrey:webvr-future-frame-data, r=paulrougetbors-servo2019-02-271-5/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use webvr future_frame_data to avoid blocking the WebGL thread <!-- Please describe your changes on the following line: --> This PR fixes a potential deadlock caused by the WebGL thread being blocked on a VR device. Rather than blocking on the VR device, it forwards a future to the script thread, and then then script thread blocks. --- <!-- 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 it's fixing a potential deadlock <!-- 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/22938) <!-- Reviewable:end -->
| * | | | Use webvr future_frame_data to avoid blocking the WebGL threadAlan Jeffrey2019-02-261-5/+5
| | | | |
* | | | | ReformatSimon Sapin2019-02-262-8/+11
|/ / / /
* | | | Auto merge of #22347 - stevesweetney:master, r=ferjmbors-servo2019-02-252-2/+44
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement HTMLMediaElement muted and defaultMuted attributes <!-- Please describe your changes on the following line: --> PR for issue #22291 --- <!-- 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 #22291 (github issue number if applicable). - [X] There are tests for these changes OR <!-- 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/22347) <!-- Reviewable:end -->
| * | | Implement HTMLMediaElement muted and defaultMuted attributesSteve Sweetney2019-02-182-2/+44
| | | |
* | | | Handle erroring out when there are multiple immersive sessionsManish Goregaokar2019-02-192-9/+59
| | | |
* | | | Add XREnvironmentBlendModeManish Goregaokar2019-02-192-1/+10
| | | |
* | | | Auto merge of #22872 - Manishearth:mediaup, r=asajeffreybors-servo2019-02-134-5/+6
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update servo-media Pulls in https://github.com/servo/media/pull/199, doesn't use it yet <!-- 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/22872) <!-- Reviewable:end -->
| * | | Update servo-mediaManish Goregaokar2019-02-134-5/+6
| | | |
* | | | Auto merge of #22864 - emilio:gecko-sync, r=emiliobors-servo2019-02-111-35/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Rename MozLength to Size, and MaxLength to MaxSize. MozLength is not a very descriptive name. If we're going to use it in both Gecko and Servo we may as well name it something more accurate. I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence of box-sizing. I don't have better ideas than `Size`, given that. [1]: https://drafts.csswg.org/css2/visudet.html#propdef-width [2]: https://drafts.csswg.org/css2/box.html#content-width Differential Revision: https://phabricator.services.mozilla.com/D19280 <!-- 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/22864) <!-- Reviewable:end -->
| * | | | style: Rename MozLength to Size, and MaxLength to MaxSize.Emilio Cobos Álvarez2019-02-121-35/+25
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MozLength is not a very descriptive name. If we're going to use it in both Gecko and Servo we may as well name it something more accurate. I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence of box-sizing. I don't have better ideas than `Size`, given that. [1]: https://drafts.csswg.org/css2/visudet.html#propdef-width [2]: https://drafts.csswg.org/css2/box.html#content-width Differential Revision: https://phabricator.services.mozilla.com/D19280
* | | | Auto merge of #22798 - jdm:webgl-trace, r=noxbors-servo2019-02-111-2/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report all messages processed by the webgl thread. This might be useful for figuring out what a WebGL-based page is doing when it's not behaving correctly. --- - [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 they are debug-logging changes only. <!-- 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/22798) <!-- Reviewable:end -->
| * | | Report all messages processed by the webgl thread.Josh Matthews2019-01-311-2/+2
| | | |
* | | | Auto merge of #22850 - ↵bors-servo2019-02-112-2/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | georgeroman:implement_htmlareaelement_target_attribute, r=ferjm Implement the target attribute for HTMLAreaElement <!-- 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 #22515 <!-- 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/22850) <!-- Reviewable:end -->
| * | | | Implement the target attribute for HTMLAreaElementGeorge Roman2019-02-112-2/+8
| | | | |
* | | | | Fix servo build.Emilio Cobos Álvarez2019-02-103-30/+40
|/ / / /