Closed Bug 1692639 Opened 3 years ago Closed 3 years ago

Change dom/broadcastchannel/tests/test_bfcache.html to use BroadcastChannel

Categories

(Core :: DOM: Navigation, task, P3)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: annyG, Assigned: smaug)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Assignee: nobody → agakhokidze
Severity: -- → N/A
Priority: -- → P3

This changes the test a bit. It doesn't test BroadcastChannel's postMessage anymore, but receiving the message.
I can't see how postMessage could be tested, since given the new setup, no one should have access to it anymore.

This is functionally now very similar to another test I wrote recently, but I think it is fine to keep this too.

Attachment #9205549 - Attachment is obsolete: true
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f77ab0956d89
Change dom/broadcastchannel/tests/test_bfcache.html to use BroadcastChannel, r=annyG

Backed out for failures on test_bfcache.html

backout: https://hg.mozilla.org/integration/autoland/rev/2c4ad70732411b23ca13a77b046f11a98b254a86

push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&revision=f77ab0956d896006f251507746335479d66b204e&selectedTaskRun=TtS03582QAKaxZqv_OdUlA.0

failure log: https://treeherder.mozilla.org/logviewer?job_id=334618535&repo=autoland&lineNumber=1803

[task 2021-03-27T00:36:21.514Z] 00:36:21 INFO - TEST-PASS | dom/broadcastchannel/tests/test_bfcache.html | test page should have been persisted initially
[task 2021-03-27T00:36:21.514Z] 00:36:21 INFO - Posting a message.
[task 2021-03-27T00:36:21.514Z] 00:36:21 INFO - Going back
[task 2021-03-27T00:36:21.514Z] 00:36:21 INFO - Buffered messages finished
[task 2021-03-27T00:36:21.515Z] 00:36:21 WARNING - TEST-UNEXPECTED-FAIL | dom/broadcastchannel/tests/test_bfcache.html | test page should have been persisted in pageshow - got true, expected false
[task 2021-03-27T00:36:21.515Z] 00:36:21 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:500:14
[task 2021-03-27T00:36:21.515Z] 00:36:21 INFO - page1Shown@dom/broadcastchannel/tests/test_bfcache.html:43:9
[task 2021-03-27T00:36:21.515Z] 00:36:21 INFO - bc1.onmessage@dom/broadcastchannel/tests/test_bfcache.html:30:15
[task 2021-03-27T00:36:21.515Z] 00:36:21 INFO - Closed
[task 2021-03-27T00:36:21.516Z] 00:36:21 INFO - TEST-OK | dom/broadcastchannel/tests/test_bfcache.html | took 1683ms

Flags: needinfo?(bugs)

Fun, I broke Android o_O

Flags: needinfo?(bugs)
Assignee: agakhokidze → bugs
Status: NEW → ASSIGNED
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bf06838068c7
Change dom/broadcastchannel/tests/test_bfcache.html to use BroadcastChannel, r=annyG
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Type: defect → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: