Closed Bug 1603190 Opened 6 years ago Closed 5 years ago

Enable windowless-service-workers in Nightly

Categories

(DevTools :: Debugger, task, P3)

task

Tracking

(firefox77 fixed)

RESOLVED FIXED
Firefox 77
Tracking Status
firefox77 --- fixed

People

(Reporter: Harald, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Enable devtools.debugger.features.windowless-service-workers on Nightly so we can start gathering feedback.

Blocks: 1603203
Depends on: 1604526
Assignee: nobody → odvarko
Status: NEW → ASSIGNED

I tested fix for Bug 1604526 and it works for me just fine now.
Enabling on Nightly

Honza

Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47f8d76aa4fc Enable windowless-service-workers in Nightly r=jlast
Depends on: 1609201

Thanks Brian for working on this!

Honza

Flags: needinfo?(odvarko)
Depends on: 1621211
Assignee: odvarko → jdescottes
Depends on: 1622429
Depends on: 1623382
No longer depends on: 1623382

Harald, anything blocking us from enabling on Nightly?

Honza

Flags: needinfo?(hkirschner)

Julian, should bug 1618546 block enabling this or do you see any remaining blockers?

Flags: needinfo?(hkirschner) → needinfo?(jdescottes)

As far as I know, only Bug 1618546 is a critical blocker.

Depends on: 1618546
Flags: needinfo?(jdescottes)
Blocks: 1623382

Honza, since 1618546 is closed – shall we try again?

Flags: needinfo?(odvarko)

(In reply to :Harald Kirschner :digitarald from comment #10)

Honza, since 1618546 is closed – shall we try again?

Yes, just checked with Julian. There are no other blockers, so let's enable it.
Julian will submit a patch.

Just for the record, enabling SW on DevEdition (bug 1603203) depends on results of an experiment, which is supposed to run on Beta soon.

Honza

Flags: needinfo?(odvarko)

Will try to land this today, I'm just testing the existing patch a bit.
It looks odd as it modifies tests. If tests need to be modified to work on Nightly (with the pref on) then they would break on Beta I suppose, which isn't acceptable.

The test modifications don't seem necessary, doing a final cleanup of the patch and re-requesting review.

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/116c370683f6 Enable windowless-service-workers in Nightly r=jlast,Honza
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77
Regressions: 1592839

Along with the 1592839 issues, I think this change also created other intermittent failures:

devtools/client/debugger/test/mochitest/browser_dbg-asyncstacks.js | A promise chain failed to handle a rejection: Can not send request 'listServiceWorkerRegistrations' because front 'root' is already destroyed. - stack: generateRequestMethods/</frontProto[name]@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:29:15
1632695Intermittent devtools/client/debugger/test/mochitest/browser_dbg-asyncstacks.js | A promise chain failed to handle a rejection: can't access property "send", this.transport is null - stack: send@resource://devtools/server/devtools-server-connection.js:91:
1632752Intermittent devtools/client/debugger/test/mochitest/browser_dbg-asyncstacks.js | A promise chain failed to handle a rejection: Can not send request 'listServiceWorkerRegistrations' because front 'root' is already destroyed. - stack: generateRequestMethod

(In reply to David Walsh :davidwalsh from comment #16)

Along with the 1592839 issues, I think this change also created other intermittent failures:

devtools/client/debugger/test/mochitest/browser_dbg-asyncstacks.js | A promise chain failed to handle a rejection: Can not send request 'listServiceWorkerRegistrations' because front 'root' is already destroyed. - stack: generateRequestMethods/</frontProto[name]@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:29:15
1632695Intermittent devtools/client/debugger/test/mochitest/browser_dbg-asyncstacks.js | A promise chain failed to handle a rejection: can't access property "send", this.transport is null - stack: send@resource://devtools/server/devtools-server-connection.js:91:
1632752Intermittent devtools/client/debugger/test/mochitest/browser_dbg-asyncstacks.js | A promise chain failed to handle a rejection: Can not send request 'listServiceWorkerRegistrations' because front 'root' is already destroyed. - stack: generateRequestMethod

It's entirely possible that flipping this pref made more tests intermittent. By definition, when you listen for service worker updates, you need to update the list every time a process spawns or dies, which can be pretty frequent. And often the test will end while we are trying to fetch a worker update.

To make the debugger tests less intermittent, first we should try to make process updates less "random" by setting await pushPref("dom.ipc.processPrelaunch.enabled", false); before we run any test in the debugger test suite. If that's not enough, it might be a sign that the debugger tests are not waiting properly for some event/action. We could look at individual tests and see if using waitForRequestsToSettle can help. And if it's still not enough, depending on how many tests are impacted, we might ignore promise rejections in a few tests.

Thanks for the input Julian!

To make the debugger tests less intermittent, first we should try to make process updates less "random" by setting await
pushPref("dom.ipc.processPrelaunch.enabled", false); before we run any test in the debugger test suite.

Should we file a bug for this?

Flags: needinfo?(jdescottes)

Should we file a bug for this?

No need for now, I will try to do this for the intermittent Bug 1592839 which has spiked since we landed this.

Flags: needinfo?(jdescottes)

(In reply to Julian Descottes [:jdescottes] from comment #19)

Should we file a bug for this?

No need for now, I will try to do this for the intermittent Bug 1592839 which has spiked since we landed this.

Sorry just looked at Bug 1592839 and it seems to be a different issue. I'll file a separate bug.

Blocks: 1633703
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: