aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
...
| * clean up spurious changes and todos with no action neededDelan Azabani2023-03-232-5/+3
| |
| * clean up lints and tidy errorsDelan Azabani2023-03-231-2/+1
| |
| * revert: Introduce `Untransplantable` trait to indicate transplantability at ↵Delan Azabani2023-03-236-315/+36
| | | | | | | | | | | | the type level (8f7b0cff87f0eab921e13e6990d76e12935e8675)
| * apply yvt/servo/fix-named-window-getterDelan Azabani2023-03-236-36/+315
| |
| * apply pylbrecht/servo/named.window.getter (closes #27952)Delan Azabani2023-03-239-229/+385
| |
* | Auto merge of #29465 - 2shiori17:issue-29388, r=jdmbors-servo2023-03-282-41/+71
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Headers.prototype.getSetCookie <!-- 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 #29388 <!-- 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. -->
| * Fix return value of concept-header-list-get to Option<Vec<u8>>2shiori172023-03-261-7/+6
| |
| * Fix concept-headers-append2shiori172023-03-261-1/+1
| |
| * Add comments for concept-headers-append2shiori172023-03-211-9/+32
| |
| * Remove net from dependencies2shiori172023-03-201-2/+3
| |
| * Fix dom-headers-get2shiori172023-03-111-5/+4
| |
| * Fix header ordering2shiori172023-03-111-5/+8
| |
| * Fix concept-headers-append2shiori172023-03-111-38/+22
| |
| * Implement concept-header-list-sort-and-combine2shiori172023-03-061-11/+21
| |
| * Implement Headers.prototype.getSetCookie2shiori172023-03-052-0/+11
| |
* | Auto merge of #29384 - sagudev:idl, r=jdmbors-servo2023-03-22196-5141/+19026
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update WebIDL.py Update WebIDL.py to latest version from mozilla-central. There were two major changes: - [Rename legacy extended attributes in webidls](https://github.com/servo/servo/commit/55dac83d9a90fa074cbae74a9ea2711b272fffc2) [bug 1631581](https://bugzilla.mozilla.org/show_bug.cgi?id=1631581) - [removal of ReadableStream from WebIDL](https://phabricator.services.mozilla.com/D143074), which was solved with porting reverted removal patch (https://github.com/servo/servo/commit/2801cc82b035c91368b42ff899b1848fe3970788) WebIDL.Parser now has `use_builtin_readable_streams` field by default set to `true` (to use SM readable stream implementation), which could help with #29088. My try build: https://github.com/sagudev/servo/actions/runs/4216638911 --- <!-- 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 - [ ] 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. -->
| * | Fix Codegensagudev2023-02-203-40/+40
| | |
| * | ReadableStream WebIDL.py patchsagudev2023-02-203-5/+202
| | |
| * | Rename legacy extended attributes in webidlssagudev2023-02-1951-83/+83
| | | | | | | | | | | | https://github.com/whatwg/webidl/pull/870
| * | Update plysagudev2023-02-1960-297/+9624
| | |
| * | Update WebIDLsagudev2023-02-1977-4712/+9079
| | |
| * | Fix WebIDL.py patchessagudev2023-02-193-26/+20
| | |
* | | Auto merge of #29451 - servo:fix-blob-slice-text, r=Loirooriolbors-servo2023-03-021-6/+9
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | script: fix BorrowError in (new Blob).slice(0,0).text() When getting the text of a sliced Blob, we call GlobalScope.get_blob_url_id, which borrows the blob_state field mutably and calls the get_blob_size method (aka [Blob#size](https://w3c.github.io/FileAPI/#dfn-size)), which tries to borrow the same field immutably, causing a panic. This patch inlines the relevant parts of get_blob_size into get_blob_url_id, so we can reuse the mutable borrow. * /FileAPI/Blob-methods-from-detached-frame.html was 4/4 FAIL, will be 4/4 PASS once #29396 also lands * /fetch/api/basic/scheme-blob.sub.any.html was CRASH, now 10/17 PASS and 7/17 FAIL * /fetch/api/basic/scheme-blob.sub.any.worker.html was CRASH, now 10/17 PASS and 7/17 FAIL --- <!-- 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 #29450 <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___
| * | script: fix BorrowError in (new Blob).slice(0,0).text()Delan Azabani2023-03-011-6/+9
| |/
* | Make HTMLInputElement.list an HTMLDataListElement2shiori172023-03-022-7/+4
| | | | | | | | Signed-off-by: 2shiori17 <98276492+2shiori17@users.noreply.github.com>
* | Implement URLSearchParams's size2shiori172023-03-022-0/+6
|/ | | | Signed-off-by: 2shiori17 <98276492+2shiori17@users.noreply.github.com>
* 26488 Move worklet drop implementation into single droppable memberBenjamin Freist2023-02-131-11/+18
| | | | Signed-off-by: Benjamin Freist <bfreist@soundhound.com>
* Bump euclid to 0.22Martin Robinson2023-01-269-57/+46
| | | | | | | | | | | | | - Also updates raqote to latest with an upgrade of font-kit to 0.11 applied on as a patch - Update lyon_geom to the latest version Major change: - All matrices are now stored in row major order. This means that parameters to rotation functions no longer should be negated. - `post_...()` functions are now named `then()`. `pre_transform()` is removed, so `then()` is used and the order of operations changed.
* Auto merge of #29250 - fabricedesre:no-deprecated-symbol-to-jsid, r=delanbors-servo2023-01-181-11/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace use of the deprecated RUST_SYMBOL_TO_JSID by SymbolId <!-- Please describe your changes on the following line: --> A simple replacement of a deprecated function, according to changes in https://github.com/servo/mozjs/pull/315 That removes the only build warning I saw when doing a clobber. --- <!-- 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 no behavior change is expected. <!-- 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. -->
| * Replace use of the deprecated RUST_SYMBOL_TO_JSID by SymbolIdThe Capyloon Team2023-01-161-11/+4
| |
* | Auto merge of #29236 - servo:application-json, r=jdmbors-servo2023-01-171-22/+24
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow displaying content with "application/json" mime type For me this allows the WPT test performance-timeline/tentative/include-frames-one-remote-child.sub.html to match expected results. The wptserver is sending a 404 JSON response because the URL that the test requests is not found. <!-- 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 #29136. - [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. -->
| * | Allow displaying content with "application/json" mime typeMartin Robinson2023-01-161-22/+24
| |/ | | | | | | | | | | | | For me this allows the WPT test performance-timeline/tentative/include-frames-one-remote-child.sub.html to match expected results. The wptserver is sending a 404 JSON response because the URL that the test requests is not found.
* / Stringify unknown JavaScript objects in global exception handlersMartin Robinson2023-01-121-30/+38
|/ | | | | | | | | | | | | | | | | | | When turning DOM exceptions into `ErrorInfo` always try to stringify the JavaScript value, even if it's an object that isn't a `DOMException` or native exception. This means that exceptions that extend the `Error` prototype are now stringified. The result is that test output for WPT global assertion failures is more useful. For instance for the test include-frames-from-child-same-origin-grandchild.sub.html: Before: ``` uncaught exception: unknown (can't convert to string) ``` After: ``` uncaught exception: Error: assert_equals: expected 4 but got 3 ```
* Auto merge of #29229 - servo:intermittent-video-poster, r=jdmbors-servo2023-01-122-21/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix intermittency when loading poster images Wait until a poster image is cached to in order to unblock document load. If not, the document may continue loading before the image is ready to use, leading to intermittency in test output. Now load is unblocked when getting the ImageResponse from the cache, which allows the code to properly unblock the load when the entire load fails or succeeds. This reveals several false passes in the `object-view-box` test suite which were very flaky. <!-- 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 #29204. - [x] These changes fix #29188. - [x] These changes fix #29179. <!-- 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. -->
| * Fix intermittency when loading poster imagesMartin Robinson2023-01-112-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wait until a poster image is cached to in order to unblock document load. If not, the document may continue loading before the image is ready to use, leading to intermittency in test output. Now load is unblocked when getting the ImageResponse from the cache, which allows the code to properly unblock the load when the entire load fails or succeeds. This reveals several false passes in the `object-view-box` test suite which were very flaky. Fixes #29204. Fixes #29188. Fixes #29179. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* | Fix some build warningsMartin Robinson2023-01-112-2/+3
|/ | | | | | | | - Mark some instances of unused fields and variables as as allowed, when they are used for memory management. - Remove the use of some deprecated function.s Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Format.Josh Matthews2022-11-237-25/+42
|
* Changes for spidermomkey upgrade.Josh Matthews2022-11-2312-139/+139
|
* Fix for loop over option warningsMichael Mc Donnell2022-11-101-2/+2
|
* Update image/png.Josh Matthews2022-04-011-1/+1
|
* Update arrayvec.Josh Matthews2022-04-011-1/+1
|
* Auto merge of #28663 - saschanaz:void-undefined, r=jdmbors-servo2022-01-16159-1144/+1162
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert Web IDL void to undefined <!-- Please describe your changes on the following line: --> Thanks to my tool https://github.com/saschanaz/gecko-webidl 🙌 Build is failing on my current VS2022+Python 3.10 environment, but the IDL tests are passing anyway, so... --- <!-- 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 #27660 <!-- 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. -->
| * tidyKagami Sascha Rosylight2022-01-054-4/+22
| |
| * Update CodegenRust.pyKagami Sascha Rosylight2022-01-051-7/+7
| |
| * Try rolling back python fixKagami Sascha Rosylight2022-01-051-1/+1
| |
| * Convert Web IDL void to undefinedKagami Sascha Rosylight2022-01-05158-1138/+1138
| | | | | | | | Fixes #27660
* | Upgrade HyperNaveen Gattu2022-01-164-5/+5
|/
* concept-response-clone: Ensure header guard is cloned after headersNaveen Gattu2021-12-171-1/+1
| | | | | | | | | | | | | | | | | | | https://fetch.spec.whatwg.org/#concept-response-clone If the header guard of the response to clone is `immutable`, then copying the headers to the new response will fail with `Guard is immutable` unless we ensure the guard is copied _after_ the headers. https://github.com/servo/servo/blob/8650794391729c6fee34bc2644ccbb85bd8fd58d/components/script/dom/response.rs#L331-L334 fn Append(&self, name: ByteString, value: ByteString) -> ErrorResult { // Step 1 let value = normalize_value(value); // Step 2 let (mut valid_name, valid_value) = validate_name_and_value(name, value)?; valid_name = valid_name.to_lowercase(); // Step 3 if self.guard.get() == Guard::Immutable { return Err(Error::Type("Guard is immutable".to_string())); }
* Update rustc.Josh Matthews2021-12-021-2/+2
|
* semicolonNaveen Gattu2021-12-011-1/+1
|