Closed Bug 1612783 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 21544 - Split up Native File System postmessage() tests

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Steve Becker <stevebe@microsoft.com> wrote:

Split up Native File System postmessage() tests

Splits each of the following tests into 3 separate tests to avoid
timeouts:

native_FileSystemBaseHandle-postMessage-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-MessagePort-manual.https.tentative.html

These tests take 5 to 7 seconds to pass, which is dangerously close to
the 7 second timeout. A previous attempt added \<meta timeout=long> to
address the timeouts. However, wpt.py does not respect
\<meta timeout=long> for tests with filenames that contain "manual".
The following bug requests a fix for wpt.py:

https://github.com/web-platform-tests/wpt/issues/21527

This change solves the timeout by splitting each test into 3 groups:
iframe tests, window.open() tests and worker tests. The change adds the
following 12 test files since each test runs twice, once for the native
file system and once for the virtual file system:

Native file system tests:

native_FileSystemBaseHandle-postMessage-frames-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-windows-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-workers-manual.https.tentative.html

native_FileSystemBaseHandle-postMessage-MessagePort-frames-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-MessagePort-windows-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-MessagePort-workers-manual.https.tentative.html

Virtual file system tests:

sandboxed_FileSystemBaseHandle-postMessage-frames.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-windows.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-workers.tentative.https.window.js

sandboxed_FileSystemBaseHandle-postMessage-MessagePort-frames.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-MessagePort-windows.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-MessagePort-workers.tentative.https.window.js

Bug: 1046634
Bug: 1044519
Change-Id: Ide552f708d7514e299a68887b91659ac2226018d

Reviewed-on: https://chromium-review.googlesource.com/2035055
WPT-Export-Revision: 2a74f89de7b7838c0d47169601cd2ef86d372ee4

CI Results

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

Total 51 tests

Status Summary

Firefox

OK : 8
PASS: 43
FAIL: 31

Chrome

OK : 8
PASS: 31

Safari

OK : 8
FAIL: 29

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-Error.tentative.https.window.html
Fail to send messages to a data URI iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send and receive messages using a cross origin window.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send and receive messages using a cross origin message port in an iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send messages using a message port in a data URI iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send and receive messages using a cross origin message port in a window.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send messages using a message port to a sandboxed iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send to a sandboxed iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send messages using a message port to a sandboxed window.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send and receive messages using a cross origin iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Fail to send messages to a sandboxed window.: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-windows.tentative.https.window.html
Send and receive messages using a message port in a blob window.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a message port in a sandboxed same origin window.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a message port in a same origin window.: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-windows.tentative.https.window.html
Send and receive messages using a same origin window.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a blob window.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a sandboxed same origin window.: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-frames.tentative.https.window.html
Send and receive messages using a message port in a same origin iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a message port in a sandboxed same origin iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a message port in a blob iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a message port in an iframe srcdoc.: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-BroadcastChannel.tentative.https.window.html
Send and receive messages using a broadcast channel in an iframe, dedicated worker and service worker.: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-workers.tentative.https.window.html
Send and receive messages using a dedicated worker.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a shared worker.: FAIL (Chrome: PASS)
Send and receive messages using a service worker.: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-workers.tentative.https.window.html
Send and receive messages using a message port in a shared worker.: FAIL (Chrome: PASS)
Send and receive messages using a message port in a service worker.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a message port in a dedicated worker.: FAIL (Chrome: PASS, Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-frames.tentative.https.window.html
Send and receive messages using a sandboxed same origin iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using an iframe srcdoc.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a same origin iframe.: FAIL (Chrome: PASS, Safari: FAIL)
Send and receive messages using a blob iframe.: FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e752aeb530f2 [wpt PR 21544] - Split up Native File System postmessage() tests, a=testonly https://hg.mozilla.org/integration/autoland/rev/b52f123083b8 [wpt PR 21544] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.