aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #25373 - pshaughn:ce_options_string, r=jdmbors-servo2019-12-233-10/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | let document.createElement[NS] accept a string for options The string actually does nothing, but spec and WPT don't want it to do anything. https://dom.spec.whatwg.org/#dom-document-createelement only cares about the options value when it's a dictionary, and the WPT test on the string case is just that it isn't throwing an exception. --- <!-- 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 #25008 <!-- 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. -->
| * createElement can now take an ignored string for optionsPatrick Shaughnessy2019-12-233-10/+24
| |
* | Auto merge of #25367 - pshaughn:ce_undefined_is, r=jdmbors-servo2019-12-232-19/+37
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apply is: to Document.createElement even when name isn't registered yet The "is" option to Document.createElement should be respected even when the name hasn't been registered yet, in which case the name gets looked up again at the time the element should be upgraded. This change does that. I'm now seeing a few test timeouts that aren't in the metadata, but I suspect they're slowness on my local configuration and not actual breakage. --- <!-- 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 #25009 fix #24997 and fix #24998 <!-- Either: --> - [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. -->
| * | apply is: to Document.createElement even when name isn't registered yetPatrick Shaughnessy2019-12-222-19/+37
| |/
* | Auto merge of #25366 - pshaughn:hasinstance, r=jdmbors-servo2019-12-231-80/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove obsolete HasInstance behavior per heycam/webidl #356 This turns one WPT test from fail to pass and it leaves Servo with a little less platform object special-case code to worry about. --- <!-- 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 #25039 <!-- 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. -->
| * | Remove obsolete behavior per heycam/webidl #356Patrick Shaughnessy2019-12-221-80/+5
| |/
* | Auto merge of #25359 - pshaughn:auto_ct_header, r=jdmbors-servo2019-12-221-4/+18
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autocomputed content-type header now reaches net request The spec expects that for a DOM Request r, r.headers and r.request can actually refer to the same header list in RAM, with changes to one affecting the other. This is mostly unobservable, but it happens to come up at the point in the Request constructor that auto-infers a content type from the body, so now after inferring the content type it injects it into both header lists instead of one. Remaining test failures are due to the way Hyper crates normalize semicolons in MIME types, and an actually separate problem about content-lengths that I haven't sniffed out yet. --- <!-- 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 some WPT results from #24904 <!-- 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. -->
| * Autocomputed content-type header now reaches net requestPatrick Shaughnessy2019-12-211-4/+18
| |
* | Add lint check for `&DomRoot<T>`lberrymage2019-12-216-12/+10
|/ | | | | `&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
* Auto merge of #24123 - gterzian:redo_blob, r=jdmbors-servo2019-12-1919-439/+725
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restructure Blob, structured serialization <!-- Please describe your changes on the following line: --> FIX #24052 and also address the "cloning" half of FIX #23917 --- <!-- 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 #___ (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/24123) <!-- Reviewable:end -->
| * re-structure blob, structured serializationGregory Terzian2019-12-1119-439/+725
| |
* | Remove Optional pipeline_idWarren Fisher2019-12-194-17/+13
| |
* | Implement MessageEvent.InitMessageEventKunal Mohan2019-12-182-12/+46
| | | | | | | | | | | | InitMessageEvent had to be implemented as required by wpt. For this few keys of struct `MessageEvent` are now wrapped inside DomRefCell wrapper.
* | Initial implementation of GPUBuffer for WebGPUIstvan Miklos2019-12-1711-10/+369
| | | | | | | | | | Added WebIDL bindings for GPUBuffer, GPUBufferDescriptor, GPUBufferUsage Implemented the `createBuffer` and `createBufferMapped` functions of GPUDevice
* | Auto merge of #25254 - pshaughn:stop_creating_outofspec_events, r=jdmbors-servo2019-12-174-50/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed createEvent cases, removed now-unused new_uninitializeds <!-- Please describe your changes on the following line: --> document.createEvent was creating some event types WHATWG now says shouldn't be created that way. This was the only caller of a few new_uninitialized methods, so those are removed too. --- <!-- 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 #25137 <!-- 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. -->
| * | Removed createEvent cases, removed now-unused new_uninitializedsPatrick Shaughnessy2019-12-124-50/+2
| | |
* | | Auto merge of #25236 - pshaughn:safelistct, r=jdmbors-servo2019-12-162-92/+97
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | De-deplicate is_cors_safelisted_request_header helper functions <!-- Please describe your changes on the following line: --> Separate is_cors_safelisted_request_header implementations in script::dom::request and net::fetch::methods have been merged to a single implementation in net_traits::request, with additional logic for spec requirements that weren't previously there. This doesn't pass all the failing tests, but it doesn't fail any passing ones either and it reduces confusion about what's supposed to happen where. --- <!-- 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 #25235 and some but not all subcases in #25175 <!-- Either: --> - [X] There are tests for these changes, in that the WPT CORS tests that did already pass still do <!-- 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. -->
| * | | Now just one is_cors_safelisted_request_header, with closer spec alignmentPatrick Shaughnessy2019-12-162-92/+97
| | | |
* | | | Auto merge of #25070 - cagandhi:named-form-getter, r=jdmbors-servo2019-12-163-2/+226
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Named form getter This PR contains changes related to adding named getter in Servo for getting the list of all meaningful property names for a HTMLFormElement object, and getting the value of a specific property name. The following changes have been made: * uncomment the [named getter](https://github.com/servo/servo/blob/f63b404e0cbf30380c4043700861110d06e548bb/components/script/dom/webidls/HTMLFormElement.webidl#L30) from HTMLFormElement.webidl * add the missing `NamedGetter` and `SupportedPropertyNames` methods to [HTMLFormElement](https://github.com/servo/servo/blob/f63b404e0cbf30380c4043700861110d06e548bb/components/script/dom/htmlformelement.rs#L113) * implement `SupportedPropertyNames` according to [the specification](https://html.spec.whatwg.org/multipage/forms.html#the-form-element:supported-property-names): * create an enum to represent the `id`, `name`, and `past` states for the sourced names * create a vector of `(SourcedName, DomRoot<HTMLElement>)` by iterating over `self.controls` and checking the element type and calling methods like `HTMLElement::is_listed_element` --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #16479 (GitHub issue number if applicable)
| * | | | removed duplicate entries from sourcedNamesVec for step 7 of ↵Anshul Jethvani2019-12-161-7/+12
| | | | | | | | | | | | | | | | | | | | SupportedPropertyNames
| * | | | sorting done for Step 6 of SupportedPropertyNamesAnshul Jethvani2019-12-071-12/+28
| | | | |
| * | | | sorting partially done for Step 6 of SupportedPropertyNamesAnshul Jethvani2019-12-061-4/+31
| | | | |
| * | | | partially implemented SupportedPropertyNamesAnshul Jethvani2019-12-061-2/+26
| | | | |
| * | | | run tidy check and added commentsAnshul Jethvani2019-12-061-22/+18
| | | | |
| * | | | updated past_names_map to save time infoAnshul Jethvani2019-12-062-5/+9
| | | | |
| * | | | NamedGetter completed and fixed issuesAnshul Jethvani2019-12-051-33/+15
| | | | |
| * | | | implemented NamedGetter and other suggestionsAnshul Jethvani2019-12-051-3/+85
| | | | |
| * | | | Fixed is_listed_element() call and DomRoot child referencehkshah62019-12-041-5/+5
| | | | |
| * | | | Removed tidy-test errorsjaymodi982019-12-031-14/+27
| | | | |
| * | | | created sourced names w/o past names map partChintan Gandhi2019-12-031-0/+75
| | | | |
| * | | | uncomment the named getter from HTMLFormElement.webidlChintan Gandhi2019-11-271-1/+1
| | | | |
* | | | | Auto merge of #25211 - kunalmohan:6631-Worker-Id, r=jdmbors-servo2019-12-165-16/+10
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `worker_id` type changed to uuid <!-- Please describe your changes on the following line: --> Fixes #6631 `worker_id` is now generate as uuid and saved as string. --- <!-- 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 #6631 (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. -->
| * | | | Undo changes done to change worker_id type to stringKunal Mohan2019-12-101-2/+1
| | | | |
| * | | | `WorkerId` changed to type UUID.Kunal Mohan2019-12-104-14/+9
| | | | |
| * | | | `worker_id` type changed to uuidKunal Mohan2019-12-103-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #6631 `worker_id` is now generate as uuid and saved as string.
* | | | | #23330 fix clear_entries_by_name_and_type bugShinichi Morimoto2019-12-131-2/+2
| | | | |
* | | | | #24468 call update_entry API from process_response_eofShinichi Morimoto2019-12-131-3/+14
| | | | |
* | | | | #24468 add a update_entry method to PerformanceShinichi Morimoto2019-12-131-0/+6
| | | | |
* | | | | #24468 Performance::queue_entries return the index of the added performance ↵Shinichi Morimoto2019-12-134-26/+20
| | | | | | | | | | | | | | | | | | | | entry
* | | | | #24468 call submit_resource_timing after creating the document parserShinichi Morimoto2019-12-131-0/+2
| | | | |
* | | | | #23330 modified performance interface's timing member to attributeShinichi Morimoto2019-12-131-9/+6
| | | | |
* | | | | Auto merge of #25272 - pshaughn:domexception_inherits_tostring, r=Manishearthbors-servo2019-12-123-9/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOMException now inherits its Javascript toString from Error <!-- Please describe your changes on the following line: --> stringifier is out of the DOMException IDL, and Stringifier(&self) is moved into the main body of DOMException where it can continue to be called internally. --- <!-- 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 #25042 <!-- 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. -->
| * | | | | Stringifier is sno longer exposedPatrick Shaughnessy2019-12-123-9/+6
| | |_|/ / | |/| | |
* | | | | Auto merge of #25267 - jdm:devtools-module-script-warning, r=Manishearthbors-servo2019-12-122-0/+30
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue warning to devtools when module scripts in use. This makes it easier to identify why content isn't working in environments which don't have access to the RUST_LOG output.
| * | | | | Issue warning to devtools when module scripts in use.Josh Matthews2019-12-122-0/+30
| | | | | |
* | | | | | Auto merge of #25259 - Manishearth:wpt-fixes, r=asajeffreybors-servo2019-12-1211-105/+172
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various webxr WPT fixes Needs https://github.com/servo/webxr/pull/108 r? @asajeffrey Went through most of the failing tests and fixed them. Many of the remaining ones fail due to unsupported features that I can slowly whittle away.
| * | | | | Allow spawning inline sessions without interactionManish Goregaokar2019-12-111-5/+5
| | | | | |
| * | | | | Construct viewports for inline sessionsManish Goregaokar2019-12-111-3/+5
| | | | | |
| * | | | | Correctly clamp ivfov and depth valuesManish Goregaokar2019-12-111-3/+23
| | | | | |
| * | | | | Set inlineVerticalFieldOfView to null for immersive sessionsManish Goregaokar2019-12-113-10/+19
| | | | | |