aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #12202 - peterjoel:issue_8509, r=noxbors-servo2016-09-161-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-151-2/+2
| | | | | | | | Updated test expectations
* | Auto merge of #12910 - creativcoder:swsender, r=jdmbors-servo2016-09-151-10/+34
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-151-25/+29
| |
| * store senders instead of buffering messagesRahul Sharma2016-09-071-5/+9
| |
| * Make service workers talk to their serviceworkerglobalscopesRahul Sharma2016-09-071-0/+16
| |
* | Excise SubpageId and use only PipelineIdsAneesh Agrawal2016-09-131-2/+2
| | | | | | | | | | | | | | 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.
* | Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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 #13130 - samuknet:dblclick, r=noxbors-servo2016-09-101-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '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-071-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | 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-107-33/+142
|\ \ | | | | | | | | | | | | | | | | | | | | | 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 -->
| * | 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-071-0/+9
| | |
| * | 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-092-4/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-072-4/+15
| | |/ | |/|
* | | Implement error reporting for workers.Ms2ger2016-09-091-1/+1
| | | | | | | | | | | | | | | Fixes #3311. Fixes #13158.
* | | Reorder `use` statementsUK9922016-09-096-19/+20
| | |
* | | Auto merge of #13058 - malisas:malisa-responseAPI, r=Manishearth,jdmbors-servo2016-09-081-0/+5
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-061-0/+5
| | |
* | | Implement Reflectable for GlobalRef.Josh Matthews2016-09-071-8/+9
| | |
* | | Extract mutability out of Reflectable trait.Josh Matthews2016-09-073-3/+11
| |/ |/|
* | Auto merge of #13174 - servo:error-workers, r=noxbors-servo2016-09-062-3/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | 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 -->
| * | 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
| |/ /
* / / Add missing IsCallable checks.Ms2ger2016-09-061-2/+12
|/ /
* / Stop using mem::transmute_copy.Ms2ger2016-09-051-2/+8
|/
* Panic when stringifying an primitive fails.Ms2ger2016-09-021-2/+1
| | | | This should not happen.
* Dispatch error events at the window object.Ms2ger2016-09-022-23/+47
|
* Auto merge of #13134 - servo:archery, r=emiliobors-servo2016-08-313-140/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add lots of Arc’s in style, and prepare for using DOMRefCell <!-- Please describe your changes on the following line: --> `DOMRefCell` usage is not there year because of thread-safety questions, but I have this much already that I’d like to land before it bitrots. r? @emilio --- <!-- 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 new tests because refactor <!-- 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/13134) <!-- Reviewable:end -->
| * Move DOMRefCell to style.Simon Sapin2016-08-313-140/+10
| |
| * Make DOMRefCell use style’s copy of RefCellSimon Sapin2016-08-311-1/+1
| |
* | Use Option<T> to return from gettersAnthony Ramine2016-08-301-10/+9
| | | | | | | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code.
* | Compile WebIDL return type "object" to NonZero<*mut JSObject>Anthony Ramine2016-08-302-24/+32
|/
* Remove mutex from TrustedAlan Jeffrey2016-08-291-77/+52
| | | | | Use weak references rather than message passing to garbage-collect dead references.
* Auto merge of #13070 - tp6vup54:master, r=KiChjangbors-servo2016-08-271-71/+195
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert imports in generate_imports into one per line, so that it can… <!-- Please describe your changes on the following line: --> Convert imports in generate_imports into one per line, so that it can easily add new ones with alphabetical order. --- <!-- 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 #13036 (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. --> … easily add new ones with alphabetical order. <!-- 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/13070) <!-- Reviewable:end -->
| * Convert imports in generate_imports into one per line, so that it can easily ↵tp6vup542016-08-271-71/+195
| | | | | | | | add new ones with alphabetical order.
* | Auto merge of #13057 - servo:rpe-ac, r=noxbors-servo2016-08-272-5/+4
|\ \ | |/ |/| | | | | | | | | | | Remove the JSAutoCompartment from report_pending_exception. <!-- 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/13057) <!-- Reviewable:end -->
| * Remove the JSAutoCompartment from report_pending_exception.Ms2ger2016-08-262-5/+4
| | | | | | | | It doesn't really belong there.
* | Make DOMJSClass use JSClass instead of Class (fixes #13031)Tetsuharu OHZEKI2016-08-262-11/+9
|/
* Auto merge of #13044 - nox:webidl, r=Ms2gerbors-servo2016-08-267-46/+73
|\ | | | | | | | | | | | | | | Update the WebIDL parser <!-- 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/13044) <!-- Reviewable:end -->
| * Update the WebIDL parserAnthony Ramine2016-08-264-46/+31
| |
| * Restore abstract.patch which was mistakenly removedAnthony Ramine2016-08-261-0/+12
| |
| * Hoist 7fd65affabd9ab49b254fefce968a9eafabf1fbf as its own patchAnthony Ramine2016-08-262-0/+30
| |