Closed Bug 1921384 Opened 1 month ago Closed 27 days ago

Built-in console functions no longer work in the Service Worker console

Categories

(DevTools :: Console, defect)

Firefox 131
defect

Tracking

(firefox-esr128 unaffected, firefox131 wontfix, firefox132 fixed, firefox133 fixed)

RESOLVED FIXED
133 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox131 --- wontfix
firefox132 --- fixed
firefox133 --- fixed

People

(Reporter: yojiwof645, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Steps to reproduce:

  1. In the latest Firefox Developer Edition (131.0b9) or Nightly, open a website with a Service Worker.

  2. Navigate to about:debugging#/runtime/this-firefox and inspect the Service Worker.

  3. 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.

I can reproduce. I didn't double checked, but this is probably coming from Bug 1901644

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 1901644

: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.

Flags: needinfo?(poirot.alex)

Add test case in about debugging for console API messages, and fix the
helper function that was asserting evaluation results, which was broken.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Flags: needinfo?(poirot.alex)
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/69fb148b68df [devtools] Pass expected shape to onAvailableArray in legacy console messages listener. r=ochameau,devtools-reviewers.

Looks like the test was a bit flaky when pausing in the debugger, I tried to fix this

Flags: needinfo?(nchevobbe)
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc70b1e542b4 [devtools] Pass expected shape to onAvailableArray in legacy console messages listener. r=ochameau,devtools-reviewers.

Set release status flags based on info from the regressing bug 1901644

Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch

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 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(nchevobbe)

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

Attachment #9428507 - Flags: approval-mozilla-beta?

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
Flags: needinfo?(nchevobbe)
Flags: in-testsuite+
Attachment #9428507 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: → 1923648
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: