Closed Bug 1766260 Opened 2 years ago Closed 2 years ago

A transferred MessagePort is slower than setTimeout(0)

Categories

(Core :: DOM: postMessage, defect)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: saschanaz, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

This is probably the core issue behind the failing tests in streams/transferable.

Gecko fails to pass the second assert_true in the attached test, while Chrome passes both.

Attached file WIP: Bug 1766260 - Add test (obsolete) —
Attached file test.html

Raw HTML version of the same test.

Hi Olli, this is my minimal test case for the issue we talked earlier (https://phabricator.services.mozilla.com/D139525?id=568935#inline-795931), do you have any idea?

Flags: needinfo?(bugs)

Per :nika and :asuth the spec specifies that the MessagePort behavior changes after transfer: https://html.spec.whatwg.org/multipage/web-messaging.html#unshipped-port-message-queue (where the has been shipped flag changes after transfer). I'll fix the streams/transferable tests based on this.

Flags: needinfo?(bugs)
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Attachment #9273656 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: