Built-in console functions no longer work in the Service Worker console
Categories
(DevTools :: Console, defect)
Tracking
(firefox-esr128 unaffected, firefox131 wontfix, firefox132 fixed, firefox133 fixed)
Tracking | Status | |
---|---|---|
firefox-esr128 | --- | unaffected |
firefox131 | --- | wontfix |
firefox132 | --- | fixed |
firefox133 | --- | fixed |
People
(Reporter: yojiwof645, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
Steps to reproduce:
-
In the latest Firefox Developer Edition (131.0b9) or Nightly, open a website with a Service Worker.
-
Navigate to
about:debugging#/runtime/this-firefox
and inspect the Service Worker. -
In the Console tab, attempt to use
console.log("hi")
.
Actual results:
It prints undefined
and a blank line.
Expected results:
It should have printed undefined
and a line with hi
.
Note: This bug does not exist in the latest release version of Firefox (130.0.1) and it didn't exist in Firefox Developer Edition a couple of months ago (the last time I needed to look at logs in a Service Worker). Also, it seems to apply to more than just console.log
. console.info
, console.error
, etc all fail to print and built-in functions like clear
and dir
return an Uncaught ReferenceError: clear is not defined
.
Assignee | ||
Comment 2•4 months ago
|
||
I can reproduce. I didn't double checked, but this is probably coming from Bug 1901644
Comment 3•4 months ago
|
||
:ochameau, since you are the author of the regressor, bug 1901644, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Assignee | ||
Comment 4•4 months ago
|
||
Add test case in about debugging for console API messages, and fix the
helper function that was asserting evaluation results, which was broken.
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
Comment 6•4 months ago
|
||
Backed out changeset 69fb148b68df (Bug 1921384) for causing devtools failures in browser_aboutdebugging_serviceworker_console.js CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=476298073&repo=autoland&lineNumber=2954
Backout: https://hg.mozilla.org/integration/autoland/rev/9f9b1507c130b830d0471850aa40f81d8ac11195
Assignee | ||
Comment 7•4 months ago
|
||
Looks like the test was a bit flaky when pausing in the debugger, I tried to fix this
Comment 9•4 months ago
|
||
Set release status flags based on info from the regressing bug 1901644
Updated•4 months ago
|
Comment 10•4 months ago
|
||
bugherder |
Comment 11•4 months ago
|
||
The patch landed in nightly and beta is affected.
:nchevobbe, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox132
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 12•4 months ago
|
||
Add test case in about debugging for console API messages, and fix the
helper function that was asserting evaluation results, which was broken.
Original Revision: https://phabricator.services.mozilla.com/D224088
Updated•4 months ago
|
Comment 13•4 months ago
|
||
beta Uplift Approval Request
- User impact if declined: Console API message (e.g. console.log) are not visible in the console
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: -
- Risk associated with taking this patch: low
- Explanation of risk level: one-liner devtools fix, covered by automated test
- String changes made/needed: -
- Is Android affected?: no
Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Comment 14•4 months ago
|
||
uplift |
Description
•