Closed
Bug 1191931
Opened 10 years ago
Closed 10 years ago
Add tests for using `pushManager` from a worker
Categories
(Core :: DOM: Push Subscriptions, defect)
Core
DOM: Push Subscriptions
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: lina, Assigned: lina)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
No description provided.
| Assignee | ||
Comment 1•10 years ago
|
||
Assignee: nobody → kcambridge
| Assignee | ||
Updated•10 years ago
|
Attachment #8644491 -
Attachment is obsolete: true
| Assignee | ||
Comment 2•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/32695/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/32695/
Attachment #8713220 -
Flags: review?(martin.thomson)
| Assignee | ||
Comment 3•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/32773/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/32773/
Attachment #8713221 -
Flags: review?(martin.thomson)
| Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Comment 4•10 years ago
|
||
Comment on attachment 8713220 [details]
MozReview Request: Bug 1191931, Part 1 - Use tasks in the Push subscription tests. r?mt
https://reviewboard.mozilla.org/r/32695/#review29605
::: dom/push/test/test_register.html:41
(Diff revision 1)
> - function checkPermissionState(swr) {
> - return swr.pushManager.permissionState().then(function(state) {
> - ok(state === "granted", "permissionState() should resolve to granted.");
> + var controlledFrame;
> + add_task(function* createControlledIFrame() {
> + controlledFrame = yield injectControlledIFrame();
I wonder if you might not go a little further with this change and make the "controlledFrame" variable a wrapper. The call to controlledFrame.contentWindow.waitOnPushMessage() might be wrapped more cleanly, or even combined with the push itself. And the controlledFrame.parentNode.removeChild() call might be turned into a .remove() function.
It's not much, so your call.
Attachment #8713220 -
Flags: review?(martin.thomson) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8713221 [details]
MozReview Request: Bug 1191931, Part 2 - Test resubscribing from a worker. r?mt
https://reviewboard.mozilla.org/r/32773/#review29607
::: dom/push/test/worker.js:93
(Diff revision 1)
> + }).then(subscription => {
> + return {
> + endpoint: subscription.endpoint,
> + };
> }));
Hmm, this reminds me, are we able to structured clone subscriptions.
Attachment #8713221 -
Flags: review?(martin.thomson) → review+
Comment 7•10 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/02bcedf966fd
https://hg.mozilla.org/mozilla-central/rev/6df33c3ef63b
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 9•10 years ago
|
||
backed out since we still have perma failures like https://treeherder.mozilla.org/logviewer.html#?job_id=3216622&repo=mozilla-central
Flags: needinfo?(kcambridge)
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 10•10 years ago
|
||
| Assignee | ||
Comment 11•10 years ago
|
||
Re-landing for now. We might still see intermittent oranges, since we're talking to the production server. Bug 1244816 tracks the work to switch us to mocks. I'm sorry for the trouble, Tomcat.
Flags: needinfo?(kcambridge)
Comment 12•10 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9e8c9326500b
https://hg.mozilla.org/mozilla-central/rev/d95ddccaece5
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Whiteboard: [checkin-needed-aurora]
Comment 13•9 years ago
|
||
| bugherder uplift | ||
https://hg.mozilla.org/releases/mozilla-aurora/rev/1e1d298ce609
https://hg.mozilla.org/releases/mozilla-aurora/rev/20fd8603e83d
status-firefox46:
--- → fixed
Whiteboard: [checkin-needed-aurora]
You need to log in
before you can comment on or make changes to this bug.
Description
•