Closed Bug 1605375 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 20889 - [RFC] Refactor data-feeding for ImageDocument/ImageDocumentParser

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 20889 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/20889
Details from upstream follow.

Fredrik Söderquist <fs@opera.com> wrote:

[RFC] Refactor data-feeding for ImageDocument/ImageDocumentParser

ImageDocumentParser keeps the ImageResource for ImageDocument and passes
the associated ImageResourceContent to the HTMLImageElement used for the
ImageDocument.

This eliminates ImageDocument::CachedImageResourceDeprecated and cleans
up ImageDocument\<->ImageDocumentParser interaction a bit.
The creation of the ImageResource now takes place in the first call to
ImageDocumentParser::AppendBytes rather than indirectly via a call to
ImageDocument::CachedImage.

Set ImageLoader::image_complete_ in the same as for regular image-loads,
and start dispatching 'load' (and 'error') events for the \<img> element
in the image document. This behavior matches Gecko.

Bug: 958339
Change-Id: Iacdab89f6894adf70163f0d5300aefc9b2fce4e8
Reviewed-on: https://chromium-review.googlesource.com/1975921
WPT-Export-Revision: cddaa5e5d4ebea3a420ffadf4c9bbe837a73021b

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS : 3
TIMEOUT: 2
NOTRUN : 1

Chrome

CRASH : 1
FAIL : 1
TIMEOUT: 2
NOTRUN : 2

Safari

FAIL : 1
TIMEOUT: 4
NOTRUN : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded): TIMEOUT (Chrome: NOTRUN, Safari: NOTRUN)
HTMLImageElement.prototype.decode(), iframe tests. Decode from iframe, later removed, fails (img not loaded): NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS : 3
TIMEOUT: 2
NOTRUN : 1

Chrome

CRASH : 1
FAIL : 1
TIMEOUT: 2
NOTRUN : 2

Safari

FAIL : 1
TIMEOUT: 4
NOTRUN : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded): TIMEOUT (Chrome: NOTRUN, Safari: NOTRUN)
HTMLImageElement.prototype.decode(), iframe tests. Decode from iframe, later removed, fails (img not loaded): NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS : 3
TIMEOUT: 2
NOTRUN : 1

Chrome

CRASH : 1
FAIL : 1
TIMEOUT: 2
NOTRUN : 2

Safari

FAIL : 1
TIMEOUT: 4
NOTRUN : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded): TIMEOUT (Chrome: NOTRUN, Safari: NOTRUN)
HTMLImageElement.prototype.decode(), iframe tests. Decode from iframe, later removed, fails (img not loaded): NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a1d92e2a3a1
[wpt PR 20889] - Refactor data-feeding for ImageDocument/ImageDocumentParser, a=testonly
https://hg.mozilla.org/integration/autoland/rev/04dd59867d61
[wpt PR 20889] - Update wpt metadata, a=testonly

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS : 3
TIMEOUT: 2
NOTRUN : 1

Chrome

CRASH : 1
FAIL : 1
TIMEOUT: 2
NOTRUN : 2

Safari

FAIL : 1
TIMEOUT: 4
NOTRUN : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded): TIMEOUT (Chrome: NOTRUN, Safari: NOTRUN)
HTMLImageElement.prototype.decode(), iframe tests. Decode from iframe, later removed, fails (img not loaded): NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.