aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #11214 - farodin91:windowproxy, r=jdmbors-servo2016-06-108-46/+68
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support WindowProxy return values in bindings 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 - [x] These changes fix #10965 (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/11214) <!-- Reviewable:end -->
| * Support WindowProxy return values in bindingsJansen Jan2016-06-098-46/+68
| | | | | | | | unscopable
* | Auto merge of #11168 - daoshengmu:texSubImage2D, r=emiliobors-servo2016-06-093-109/+315
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement WebGL TexSubImage2D 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 - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because I have run the wpt test of texSubImage2D.html, and it works. Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. I have implemented ```TexSubImage2D``` follow [the spec](https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.8). This is my first version of implementation, and I notice I can reuse the code from ```TexImage2D```. Therefore, I would like to discuss make ```validate_tex_image2D_from_buffer``` and ```validate_tex_image2D_from_source``` to remove duplicate code. Part of #10209 <!-- 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/11168) <!-- Reviewable:end -->
| * | Implement texSubImage2D APIDaosheng Mu2016-06-102-104/+310
| | |
| * | Enable texSubImage2D APIDaosheng Mu2016-06-021-5/+5
| | |
* | | Auto merge of #11552 - izgzhen:add-testing-fix-filemanager, r=Manishearthbors-servo2016-06-092-5/+6
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve implementation and add testing regarding file manager thread First there is a more completed unit test. And in the test running, I found a runtime error `Serde(Custom("bincode does not support Deserializer::deserialize))` when reading response from file manage thread. I analyzed a bit and found that it is probably caused by the `Uuid` field. I temporarily work around it by making the `Id` essentially a string wrapped inside `SelectedFileId`. Related to PR #11131. <!-- 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 <!-- Either: --> - [x] There are tests for these changes <!-- 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/11552) <!-- Reviewable:end -->
| * | Add unit testing to file manager; Replace uuid by stringified version in ↵Zhen Zhang2016-06-102-5/+6
| | | | | | | | | | | | FileManagerThreadMsg
* | | Avoid an index-out-of-bounds error in ScriptMemoryFailsafe.Ms2ger2016-06-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #11059. Fixes #11400. Fixes #11481. Fixes #11671. Fixes #11682.
* | | Auto merge of #11548 - kevgs:default_view2, r=Ms2gerbors-servo2016-06-093-8/+27
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Document::DefaultView return a null value when there's no browsing context Fixes #11469. <!-- 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/11548) <!-- Reviewable:end -->
| * | | Make Document::DefaultView return a null value when there's no browsing contextKosov Eugene2016-06-083-8/+27
| |/ /
* | | Auto merge of #11652 - szeged:blacklistfix, r=jdmbors-servo2016-06-081-1/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add blacklist check to GetIncludedService(s) functions Somehow we missed it from our previous blacklist PR, to add blacklist check for the GetIncludedService() and GetIncludedServices() functions. Link for the spec: https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattservice-getincludedservice <!-- 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 there are no webbluetooth test api implementation yet. <!-- 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/11652) <!-- Reviewable:end -->
| * | | Add blacklist check to GetIncludedSevice(s) functionszakorgyula2016-06-071-1/+9
| | | |
* | | | Auto merge of #11636 - szeged:optservicesfix, r=jdmbors-servo2016-06-081-3/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix an incorect behavior, when converting optional services. As specified in https://webbluetoothcg.github.io/web-bluetooth/#ref-for-blacklisted-2 if any service in the optionalServices are blacklisted, there is no need to throw an error (just remove the service). In this case we don't add the service to the result of conversion. <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because there are no webbluetooth test api implementation yet. <!-- 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/11636) <!-- Reviewable:end -->
| * | | | Fix an incorect behavior, when converting optional services.zakorgyula2016-06-061-3/+2
| | | | |
* | | | | Auto merge of #11668 - GuillaumeGomez:insert_adjacent, r=noxbors-servo2016-06-082-7/+64
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Insert adjacent Fixes #11622. r? @nox <!-- 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/11668) <!-- Reviewable:end -->
| * | | | | Add Element::InsertAdjacentHTMLGuillaume Gomez2016-06-082-0/+37
| | | | | |
| * | | | | Set Adjacent::Position case-insensitiveGuillaume Gomez2016-06-081-5/+5
| | | | | |
| * | | | | Create AdjacentPosition enumGuillaume Gomez2016-06-081-7/+27
| | | | | |
* | | | | | Update Rust to 1.11.0-nightly (ec872dc8a 2016-06-07)Anthony Ramine2016-06-082-4/+4
| |_|_|/ / |/| | | |
* | | | | Auto merge of #11616 - ConnorGBrewster:navigation_delta, r=asajeffreybors-servo2016-06-071-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for navigating by a delta <!-- Please describe your changes on the following line: --> This adds support for passing a delta with `NavigationDirection`. This will be used with `history.go` r? @asajeffrey --- <!-- 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 I am unsure how to write a test for this <!-- 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/11616) <!-- Reviewable:end -->
| * | | | | Added support for navigating by a deltaConnor Brewster2016-06-041-2/+2
| | | | | |
* | | | | | Auto merge of #11644 - asajeffrey:mozbrowser-top-level-browsing-context, ↵bors-servo2016-06-072-5/+18
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=ConnerGBrewster Mozbrowser top level browsing context <!-- Please describe your changes on the following line: --> Got `window.top` and `window.parent` to return the right result inside a `mozbrowser` iframe. --- <!-- 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 <!-- 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/11644) <!-- Reviewable:end -->
| * | | | | | Window::Parent and Window::Top now return the right result inisde a ↵Alan Jeffrey2016-06-072-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | mozbrowser iframe.
* | | | | | | Auto merge of #11656 - Ms2ger:reduce-dom-exposure, r=noxbors-servo2016-06-0730-67/+82
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce the amount of dom code used outside the script crate. <!-- 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/11656) <!-- Reviewable:end -->
| * | | | | | Remove unused ByteString::bytes() and its unit test.Ms2ger2016-06-071-7/+0
| | | | | | |
| * | | | | | Move trim_http_whitespace to net_traits.Ms2ger2016-06-071-24/+1
| | | | | | |
| * | | | | | Stop re-exporting AttrValue.Ms2ger2016-06-0727-36/+38
| | | | | | |
| * | | | | | Move the definition of ServoThreadSafeLayoutNode::iframe_pipeline_id to script.Ms2ger2016-06-071-0/+9
| | | | | | |
| * | | | | | Move the definition of ServoThreadSafeLayoutNode::canvas_data to script.Ms2ger2016-06-071-0/+7
| | | | | | |
| * | | | | | Move the definition of ServoThreadSafeLayoutNode::image_url to script.Ms2ger2016-06-071-0/+12
| | | | | | |
| * | | | | | Move the definition of ServoThreadSafeLayoutNode::selection to script.Ms2ger2016-06-071-0/+15
| | |_|_|/ / | |/| | | |
* | | | | | Auto merge of #11620 - nox:unscopable, r=Ms2gerbors-servo2016-06-074-20/+72
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement [Unscopable] (fixes #11583) <!-- 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/11620) <!-- Reviewable:end -->
| * | | | | | Implement [Unscopable] (fixes #11583)Anthony Ramine2016-06-074-20/+72
| |/ / / / /
* | | | | | Auto merge of #11654 - nox:error, r=Ms2gerbors-servo2016-06-073-8/+12
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make report_pending_exception unsafe <!-- 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/11654) <!-- Reviewable:end -->
| * | | | | Make report_pending_exception unsafeAnthony Ramine2016-06-073-8/+12
| | | | | |
* | | | | | Auto merge of #11572 - nox:placeholder-shown, r=SimonSapinbors-servo2016-06-062-8/+37
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement :placeholder-shown (fixes #10561) <!-- 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/11572) <!-- Reviewable:end -->
| * | | | | Implement :placeholder-shown (fixes #10561)Anthony Ramine2016-06-032-8/+37
| | | | | |
* | | | | | Auto merge of #11632 - achals:master, r=KiChjangbors-servo2016-06-062-1/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement URL.domainToUnicode Fixes #11629 --- <!-- 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 #11629 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes: Some expected test failures have been removed. <!-- 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/11632) <!-- Reviewable:end -->
| * | | | | | Implement URL.domainToUnicodeAchal Shah2016-06-062-1/+6
| | |_|_|/ / | |/| | | |
* | | | | | Auto merge of #11639 - awestroke:anchor-element-base-url, r=noxbors-servo2016-06-061-1/+1
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use base_url instead of url in HTMLAnchorElement::set_url <!-- Please describe your changes on the following line: --> `script::dom::HTMLAnchorElement::set_url` now uses `document::base_url` instead of `document::url`, allowing correct parsing of relative urls on about:blank and pages with a `<base href="some_url"/>` set. spec: https://html.spec.whatwg.org/multipage/infrastructure.html#resolving-urls --- <!-- 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 #11628 <!-- Either: --> - [x] There are tests for these changes: Some expected test failures have been removed. <!-- 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/11639) <!-- Reviewable:end -->
| * | | | | Use base_url instead of url when parsing hrefOrvar Segerström2016-06-061-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | spec: https://html.spec.whatwg.org/multipage/infrastructure.html#resolving-urls This change makes more url parsing tests pass.
* / / / / Move LengthOrPercentageOrAuto to style::attr.Ms2ger2016-06-067-9/+7
|/ / / /
* | | | Auto merge of #11587 - nox:element, r=Ms2gerbors-servo2016-06-051-11/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup Element interface <!-- 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/11587) <!-- Reviewable:end -->
| * | | | Cleanup Element interfaceAnthony Ramine2016-06-031-11/+11
| | | | |
* | | | | Removed references to DOMSettableTokenListKosov Eugene2016-06-057-10/+6
| | | | |
* | | | | Auto merge of #11610 - nox:dom3events, r=emiliobors-servo2016-06-047-23/+23
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix all the links to the UI Events spec <!-- 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/11610) <!-- Reviewable:end -->
| * | | | | Fix all the links to the UI Events specAnthony Ramine2016-06-047-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | DOM3Events is no more.
* | | | | | Auto merge of #11586 - nox:document, r=Ms2gerbors-servo2016-06-041-7/+4
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup Document interface <!-- 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/11586) <!-- Reviewable:end -->
| * | | | | Cleanup Document interfaceAnthony Ramine2016-06-031-7/+4
| | |/ / / | |/| | |
* | | | | Auto merge of #11605 - rafaqtro:local_r, r=KiChjang,emiliobors-servo2016-06-043-13/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename the variants of the SubmittedFrom and ResetFrom enums to be less repetitive <!-- Please describe your changes on the following line: --> delete suffixes for variants SubmittedFrom, ResetFrom --- <!-- 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 #11557 (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/11605) <!-- Reviewable:end -->