aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #13306 - Jenselme:13247-decode-utf8-with-utf8-lossy, r=Ms2gerbors-servo2016-09-191-7/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decode UTF-8 with from_utf8_lossy in DedicatedWorkerGlobalScope <!-- 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 #13247 <!-- Either: --> - [X] There are tests for these changes: `./mach test-wpt /workers/semantics/encodings/004.worker` passes <!-- 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/13306) <!-- Reviewable:end -->
| * Decode UTF-8 with from_utf8_lossy in DedicatedWorkerGlobalScopeJulien Enselme2016-09-191-7/+7
| |
* | Fix my typo on commit. Rest of the fixes will be here soon.Arthur Marble2016-09-181-4/+4
| |
* | Made fixes for PR.Arthur Marble2016-09-1812-108/+108
| |
* | One last refactoring before fixingArthur Marble2016-09-181-1/+1
| |
* | Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-1885-467/+467
| |
* | More code refactoring (exampleVar to example_var)Arthur Marble2016-09-185-38/+38
| |
* | Refactored a bluetooth* related files from codeStyle to code_style.Arthur Marble2016-09-185-32/+32
| |
* | Refactored a couple of files from codeStyle to code_style.Arthur Marble2016-09-173-10/+10
| |
* | Refactor isClosed_ to is_closed and relativeContentType to ↵Arthur Marble2016-09-171-7/+7
| | | | | | | | relative_content_type.
* | Replace typeString with type_string.Arthur Marble2016-09-172-7/+7
| |
* | Refactored metaKey to meta_key where possibleArthur Marble2016-09-176-10/+10
| |
* | This commit refactors altKey to alt_key when possible.Arthur Marble2016-09-176-10/+10
| |
* | This commit refactors shiftKey to shift_key where possible.Arthur Marble2016-09-176-10/+10
| |
* | This commit refactors ctrlKey to ctrl_key wherever possible.Arthur Marble2016-09-176-10/+10
|/
* implement ExtendableEvent as base type for ServiceWorker eventsRahul Sharma2016-09-176-3/+218
|
* Auto merge of #12703 - sjmelia:12343_test_activation, r=Manishearthbors-servo2016-09-163-0/+37
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Issue 12343: Add pref-gated methods and test for activatable element <!-- Please describe your changes on the following line: --> Add methods to activatable elements; gated by a preference, for use in servo-specific WPT tests. I cargo-culted over the "redundant check" from #12322, I don't really understand the possible exploit. Obvious flaw is the copypasta for each element. I understand that the webidl codegen will produce a trait for ActivatableElement, but I can't see how I can provide a default implementation for this? I guess otherwise could be an improvement to have each element just delegate to an Enter.../Exit... method on the Activatable trait? --- <!-- 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 #12343 (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. --> …states <!-- 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/12703) <!-- Reviewable:end -->
| * Issue 12343: Add pref-gated methods and test for activatable element statesSteve Melia2016-08-083-0/+37
| |
* | Auto merge of #13294 - 6112:referrer-typo-fix, r=jdmbors-servo2016-09-162-11/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix most typoes for: "referer" -> "referrer" Replace most uses of the word "referer" with "referrer", except for `hyper::header::Referer`. Also update the unit tests to compile & pass after those changes. --- <!-- 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 #13286 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they're only typo fixes. <!-- 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/13294) <!-- Reviewable:end -->
| * | Fix most typoes for: "referer" -> "referrer"Nicolas2016-09-162-11/+11
| | |
* | | Auto merge of #12202 - peterjoel:issue_8509, r=noxbors-servo2016-09-166-2/+1201
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOMMatrix and DOMMatrixReadOnly <!-- 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 #8509. <!-- 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/12202) <!-- Reviewable:end -->
| * | DOMMatrix and DOMMatrixReadOnlyPeter2016-09-156-2/+1201
| | | | | | | | | | | | Updated test expectations
* | | 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-157-51/+105
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-154-53/+48
| | | |
| * | | store senders instead of buffering messagesRahul Sharma2016-09-075-73/+48
| | | |
| * | | Make service workers talk to their serviceworkerglobalscopesRahul Sharma2016-09-076-32/+116
| | | |
* | | | Excise SubpageId and use only PipelineIdsAneesh Agrawal2016-09-136-69/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-132-3/+3
| | | | | | | | | | | | | | | | | | | | 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-1317-42/+41
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.