mirror of
https://github.com/servo/servo.git
synced 2025-09-11 07:28:19 +01:00
Auto merge of #13747 - scotttrinh:canvas-webidl, r=Ms2ger
Partial fix for #12415: expose Canvas interfaces <!-- Please describe your changes on the following line: --> Fix interface exposure per [the specs](https://html.spec.whatwg.org/multipage/scripting.html#2dcontext). One lingering question I have is if [`CanvasPath`](https://html.spec.whatwg.org/multipage/scripting.html#canvaspath) needs to be added to `interfaces.worker.js` since it *is* exposed to the `Worker` environment. I tried adding it to the `interfaces.worker.js` list but it failed tests at https://github.com/servo/servo/blob/master/tests/wpt/mozilla/tests/mozilla/interfaces.js#L82 --- <!-- 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 contain a partial fix for #12415 (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/13747) <!-- Reviewable:end -->
This commit is contained in:
commit
97bcd97ebd
6 changed files with 15 additions and 36 deletions
|
@ -9,21 +9,9 @@
|
|||
[The DOMImplementation interface object should not be exposed.]
|
||||
expected: FAIL
|
||||
|
||||
[The HTMLCanvasElement interface object should not be exposed.]
|
||||
expected: FAIL
|
||||
|
||||
[The MouseEvent interface object should not be exposed.]
|
||||
expected: FAIL
|
||||
|
||||
[The CanvasRenderingContext2D interface object should not be exposed.]
|
||||
expected: FAIL
|
||||
|
||||
[The CanvasGradient interface object should not be exposed.]
|
||||
expected: FAIL
|
||||
|
||||
[The CanvasPattern interface object should not be exposed.]
|
||||
expected: FAIL
|
||||
|
||||
[The PopStateEvent interface object should not be exposed.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -10,9 +10,6 @@ test_interfaces([
|
|||
"Attr",
|
||||
"BeforeUnloadEvent",
|
||||
"Blob",
|
||||
"CanvasGradient",
|
||||
"CanvasRenderingContext2D",
|
||||
"CanvasPattern",
|
||||
"CharacterData",
|
||||
"CloseEvent",
|
||||
"CSS",
|
||||
|
@ -45,7 +42,6 @@ test_interfaces([
|
|||
"HashChangeEvent",
|
||||
"Headers",
|
||||
"History",
|
||||
"HTMLCanvasElement",
|
||||
"HTMLCollection",
|
||||
"HTMLElement",
|
||||
"HTMLFormControlsCollection",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue