aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #13280 - tizianasellitto:issue_13019, r=jdmbors-servo2016-09-151-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make DOMTokenList Iterable Make DOMTokenList Iterable. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13019 - [X] There are tests for these changes (It adds tests/wpt/web-platform-tests/dom/lists/DOMTokenList-Iterable.html) <!-- 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/13280) <!-- Reviewable:end -->
| * Make DOMTokenList IterableTiziana Sellitto2016-09-151-0/+1
| |
* | Auto merge of #13184 - szeged:requestdevice-refactor, r=jdmbors-servo2016-09-152-83/+201
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Webbluetooth requestDevice refactor and update <!-- Please describe your changes on the following line: --> Refactor requestDevice function according to the specification changes. 1. Moved the `request_bluetooth_devices` algorithm out from the `requestDevice` function. 2. Two new members in `BluetoothRequestDeviceFilter` and one new member in `RequestDeviceOptions`. 3. Also added annotations to the related functions. Related links: https://webbluetoothcg.github.io/web-bluetooth/#device-discovery, https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetooth-requestdevice, https://webbluetoothcg.github.io/web-bluetooth/#request-bluetooth-devices, https://webbluetoothcg.github.io/web-bluetooth/#matches-a-filter --- <!-- 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 #12614 <!-- Either: --> - [x] These changes do not require tests because , there is no WebBluetooth Test API implementation 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/13184) <!-- Reviewable:end -->
| * | Annotations for requestDevice, request_bluetooth_devices and matches_filter ↵zakorgyula2016-09-141-1/+61
| | | | | | | | | | | | functions
| * | requestDevice updatezakorgyula2016-09-142-26/+67
| | |
| * | requestDevice refactorzakorgyula2016-09-141-78/+95
| | |
* | | Auto merge of #13278 - servo:rustup, r=jdmbors-servo2016-09-151-2/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14) <!-- 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/13278) <!-- Reviewable:end -->
| * | | Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14)Anthony Ramine2016-09-151-2/+3
| | |/ | |/|
* | | Auto merge of #12910 - creativcoder:swsender, r=jdmbors-servo2016-09-159-97/+175
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement postMessage for ServiceWorkers <!-- Please describe your changes on the following line: --> Fixes #12773 r? @jdm Changes: * Implements `postMessage` on `ServiceWorker` object. * Removes unused channels from sw and their scopes. * Fixes a crash when calling `scope.script_chan()` in sw-scopes event 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 #12773 <!-- Either: --> - [X] There are tests for these changes at `tests/html/service-worker` <!-- 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/12910) <!-- Reviewable:end -->
| * | make structured clone an enumRahul Sharma2016-09-155-55/+50
| | |
| * | store senders instead of buffering messagesRahul Sharma2016-09-077-148/+120
| | |
| * | Make service workers talk to their serviceworkerglobalscopesRahul Sharma2016-09-078-44/+155
| | |
* | | Excise SubpageId and use only PipelineIdsAneesh Agrawal2016-09-137-121/+74
| | | | | | | | | | | | | | | | | | | | | SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children.
* | | Consistently use parent_pipeline_idAneesh Agrawal2016-09-133-33/+33
| | | | | | | | | | | | | | | Instead of containing_pipeline_id, use parent_pipeline_id because it is more clear that it refers to the immediate parent.
* | | Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-1319-48/+47
| |/ |/| | | | | | | | | | | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* | Auto merge of #13245 - servo:reset-stop-propagation, r=noxbors-servo2016-09-121-5/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | Correct an unsound optimization in event dispatch. <!-- 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/13245) <!-- Reviewable:end -->
| * | Correct an unsound optimization in event dispatch.Ms2ger2016-09-121-5/+9
| | |
* | | Auto merge of #13004 - jeenalee:combine-headers, r=jdmbors-servo2016-09-121-3/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update DOM headers `append` and `delete` <!-- Please describe your changes on the following line: --> Two changes are included in this PR: 1. A resolved TODO comment in `delete` is removed. 2. `append` method adds a space after a comma when combining header values. Expected wpt results are updated with this change. --- <!-- 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: --> - [X] 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13004) <!-- Reviewable:end -->
| * | Refactor combine method, and update expected wpt resultsJeena Lee2016-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of creating an array with length of 1 of `b','`, then pushing the first element of that array to `combined_value`, push a `b','` directly to `combined_value`. The web platform test for combining headers has been updated to reflect the Fetch spec (https://github.com/w3c/web-platform-tests/pull/3646). The expected web platform test results that will be affected by this change are updated.
| * | Remove TODO from step 4 of `delete`Jeena Lee2016-08-231-2/+0
| | | | | | | | | | | | The confusion around step 4 of `delete` method has been resolved through https://github.com/whatwg/fetch/issues/372.
* | | Auto merge of #13130 - samuknet:dblclick, r=noxbors-servo2016-09-102-1/+59
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'dblclick' event <!-- Please describe your changes on the following line: --> * Add field to document struct to store information about last 'click' event * Add code to `handle_mouse_event` function to detect and fire double click events --- <!-- 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 #12767 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X ] These changes do not require tests because it is input related <!-- 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/13130) <!-- Reviewable:end -->
| * | | Working implementation of dblclick.Sam Wood2016-09-072-1/+59
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sam Wood <sam@sam.uk.net> Fix mach test tidy Signed-off-by: Sam Wood <sam@sam.uk.net> Fix import newline Signed-off-by: Sam Wood <sam@sam.uk.net>
* | | Auto merge of #13185 - nox:namespaces, r=jdm,Ms2gerbors-servo2016-09-1013-117/+220
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make console a namespace (fixes #13010) <!-- 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/13185) <!-- Reviewable:end -->
| * | | Make console a namespace (fixes #13010)Anthony Ramine2016-09-106-70/+27
| | | |
| * | | Implement WebIDL namespacesAnthony Ramine2016-09-085-30/+123
| | | |
| * | | Fix descriptor argument in CGCallGenerator.__init__Anthony Ramine2016-09-071-3/+3
| | | | | | | | | | | | | | | | It's a descriptor, not a descriptor provider.
| * | | Store Console timers in globalsAnthony Ramine2016-09-074-21/+67
| | | |
| * | | Implement Borrow<str> for DOMStringAnthony Ramine2016-09-071-1/+8
| | | | | | | | | | | | | | | | Useful to use DOMString as a HashMap key type.
* | | | Auto merge of #13201 - KiChjang:codegen-typedefs, r=noxbors-servo2016-09-094-6/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly generate typedef identities in unions Fixes #10605. <!-- 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/13201) <!-- Reviewable:end -->
| * | | | Properly generate typedef identities in unionsKeith Yeung2016-09-074-6/+23
| | |/ / | |/| |
* | | | Auto merge of #13094 - GuillaumeGomez:the_comeback, r=KiChjangbors-servo2016-09-093-6/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Put back video metadata I updated the `video-metadata-rs` crate: now, no more ffmpeg, just pure rust. The webm format isn't checked 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/13094) <!-- Reviewable:end -->
| * | | | Put back video metadataGuillaume Gomez2016-09-093-6/+21
| | |/ / | |/| |
* | | | Note the lacking support for muted errors.Ms2ger2016-09-092-0/+2
| | | |
* | | | Implement error reporting for workers.Ms2ger2016-09-095-7/+103
| | | | | | | | | | | | | | | | | | | | Fixes #3311. Fixes #13158.
* | | | Reorder `use` statementsUK9922016-09-0946-141/+143
| | | |
* | | | Auto merge of #13058 - malisas:malisa-responseAPI, r=Manishearth,jdmbors-servo2016-09-089-17/+351
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Response API <!-- Please describe your changes on the following line: --> This PR adds the [dom::Response](https://fetch.spec.whatwg.org/#response-class) implementation and addresses #11896. The relevant passing tests` expectations have been updated. In order to allow non-UTF-8-encoded status messages, `net_traits::response::Response`'s `raw_status` field has been changed from type [`Option<RawStatus>`](https://doc.servo.org/hyper/http/struct.RawStatus.html) to type `Option<(u16, Vec<u8>)>`. As a result, a few other files which rely on the `raw_status` field were affected and updated. TODOs: - The `body` and `trailer` methods. Relies on implementation of `ReadableStream` and `Promise`s. - Similarly, replace the dummy constructor `_body: Option<USVString>` argument with `body: ResponseBodyInit`. - Currently, whenever `r's response's header list` or `r's Headers object` are mentioned, I always modify the `headers_reflector` field (of type dom::Headers, or `r's Headers object`) and not the corresponding hyper::Headers list in the net_traits::Response field. A completely accurate interpretation of the spec might consider making both of these lists the same thing via a reference. [Discussion](https://github.com/whatwg/fetch/issues/358) was [had](https://github.com/servo/servo/pull/12884). --- <!-- 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: --> - [X] 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13058) <!-- Reviewable:end -->
| * | | | dom::Response implementationMalisa Smith2016-09-069-17/+351
| | | | |
* | | | | Auto merge of #13190 - servo:cssparser-up, r=Manishearthbors-servo2016-09-081-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update cssparser <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13190) <!-- Reviewable:end -->
| * | | | Update cssparserSimon Sapin2016-09-071-1/+1
| | |/ / | |/| |
* | | | Implement Reflectable for GlobalRef.Josh Matthews2016-09-072-8/+10
| | | |
* | | | Extract mutability out of Reflectable trait.Josh Matthews2016-09-074-4/+12
|/ / /
* | | Auto merge of #13174 - servo:error-workers, r=noxbors-servo2016-09-065-79/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare for error reporting in workers. <!-- 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/13174) <!-- Reviewable:end -->
| * | | Remove dead error handling code.Ms2ger2016-09-053-76/+4
| | | |
| * | | Implement report_an_error on GlobalRef.Ms2ger2016-09-052-3/+11
| | | |
* | | | Auto merge of #13183 - nox:cleanup-interface, r=Ms2gerbors-servo2016-09-064-214/+215
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up stuff in bindings::interface <!-- 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/13183) <!-- Reviewable:end -->
| * | | | Fix case of InterfaceObjectClass in codegenAnthony Ramine2016-09-061-2/+2
| | | | |
| * | | | Reorder some stuff in bindings::interfaceAnthony Ramine2016-09-061-101/+101
| | | | |
| * | | | Remove NonNullJSNativeAnthony Ramine2016-09-062-8/+4
| | | | |
| * | | | Move WebIDL constants machinery to bindings::constantAnthony Ramine2016-09-064-67/+77
| | | | |
| * | | | Simplify InterfaceConstructorBehaviorAnthony Ramine2016-09-062-36/+31
| | | | |