Closed Bug 1264467 Opened 9 years ago Closed 9 years ago

Investigate crossOrigin related test failures in testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox48 --- affected
firefox49 --- fixed

People

(Reporter: edgar, Assigned: edgar)

References

Details

(Whiteboard: [tw-dom] btpp-active)

Attachments

(1 file, 1 obsolete file)

Steps to reproduce: Open http://w3c-test.org/html/semantics/embedded-content/the-img-element/relevant-mutations.html Actual results: Test failed in * crossorigin state not changed: empty to anonymous, assert_unreached: update the image data was run Reached unreachable code * crossorigin state not changed: anonymous to foobar, assert_unreached: update the image data was run Reached unreachable code * crossorigin state not changed: use-credentials to USE-CREDENTIALS, assert_unreached: update the image data was run Reached unreachable code Expected results: Ideally, 100% of these tests would pass.
(In reply to Edgar Chen [:edgar][:echen] from comment #0) > Test failed in > * crossorigin state not changed: empty to anonymous, assert_unreached: > update the image data was run Reached unreachable code > * crossorigin state not changed: anonymous to foobar, assert_unreached: > update the image data was run Reached unreachable code > * crossorigin state not changed: use-credentials to USE-CREDENTIALS, > assert_unreached: update the image data was run Reached unreachable code The relevant mutations for an img element includes "The element's crossorigin attribute's state is changed". But in above three cases, the crossorigin's state isn't changed. See: https://html.spec.whatwg.org/multipage/embedded-content.html#relevant-mutations https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-attribute
Attached patch Patch, v1 (obsolete) — Splinter Review
Whiteboard: [tw-dom] → [tw-dom] btpp-active
Summary: Investigate corssOrigin related test failures in testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html → Investigate crossOrigin related test failures in testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html
Attached patch Patch, v2Splinter Review
Attachment #8741185 - Attachment is obsolete: true
Blocks: 1087614
Comment on attachment 8748994 [details] [diff] [review] Patch, v2 Review of attachment 8748994 [details] [diff] [review]: ----------------------------------------------------------------- Force a reload only when the cross origin policy is changed, and do reload after attribute has been set in order to use new cross origin policy correctly.
Attachment #8748994 - Flags: review?(josh)
Comment on attachment 8748994 [details] [diff] [review] Patch, v2 Review of attachment 8748994 [details] [diff] [review]: ----------------------------------------------------------------- Nice.
Attachment #8748994 - Flags: review?(josh) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: