Closed Bug 1823610 Opened 2 years ago Closed 2 years ago

Console messages timestamps are not printed in saved file

Categories

(DevTools :: Console, defect)

Firefox 111
Desktop
All
defect

Tracking

(firefox-esr102 unaffected, firefox111 wontfix, firefox112 verified, firefox113 verified)

VERIFIED FIXED
113 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox111 --- wontfix
firefox112 --- verified
firefox113 --- verified

People

(Reporter: anmolkuchhal003, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached video Firefox.mp4

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

Steps to reproduce:

  • Enable Timestamps and Log Persistence on the console window
  • Save the file as .txt

Actual results:

The timestamps do not show up

Expected results:

The file should show timestamps present as it was enabled

Hello,
Thank you for reporting this.

I reproduced de issue on MacOS12, Win 11 and Ubuntu 22 and with Fx versions: 111.0.1 (64-bit), 112.0b6 (64-bit) and Nightly 113.0a1 (2023-03-23)
with the following steps:

  1. Launch Firefox
  2. R-click on the page and select Inspect.
  3. Go to the Console tab
  4. Click on the Console Settings button and make sure “Show Timestamps” and “Persist Logs” options are checked.
  5. In the same Fx tab, in the address bar, go to https://utest.com/
  6. In the Console tab, R-click anywhere on the displayed messages and select “Save all Messages to file”
  7. Save the file.
  8. Open the file and observ its content.

It does not reproduce in Fx versions: 102.9.0esr, 110.0a1 (2022-12-12).

Regression range
Last known good: 111.0a1 (2023-02-05)
First known bad: 111.0a1 (2023-02-06)
pushlog_url: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=d8601249f1eb8c52c742b0c19c9ca0fa8f2e31fe&tochange=b06e825a4d8137434a1524b1ef7049f85cdc60d1

Additional notes
On the message:
R-click ->Copy Message -> both the message and the timestamp are copied
R-click ->Copy all Messages ->only the messages is copied

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Hardware: Unspecified → Desktop
Version: Firefox 112 → other
Summary: timestamps → Console messages timestamps are not printed in saved file

:nchevobbe looks like this was regressed by Bug 1814855?
Could you take a look?
It's too late for 111, but if there's anything we can do for 112?

Component: Untriaged → Console
Flags: needinfo?(nchevobbe)
Product: Firefox → DevTools
Version: other → Firefox 111

Sure, looks like the container query added in Bug 1814855 is causing this

Flags: needinfo?(nchevobbe)
Regressed by: 1814855

The media query we introduced not long ago to hide
timestamp on narrow output was also effective for
the element we use for the export (as it has a width
of 0), which means timestamp wouldn't be included
in the export.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3d7d50176a3b [devtools] Don't hide timestamp when exporting console messages. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 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-firefox112 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(nchevobbe)

Comment on attachment 9325502 [details]
Bug 1823610 - [devtools] Don't hide timestamp when exporting console messages. r=#devtools-reviewers.

Beta/Release Uplift Approval Request

  • User impact if declined: timestamps missing from webconsole exported message
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): devtools only, one-liner CSS change covered by mochitest
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(nchevobbe)
Attachment #9325502 - Flags: approval-mozilla-beta?

Comment on attachment 9325502 [details]
Bug 1823610 - [devtools] Don't hide timestamp when exporting console messages. r=#devtools-reviewers.

Approved for 112.0b9

Attachment #9325502 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified - fixed on MacOS 12, Win 11 and Ubuntu 18 in Fx versions 112.0b9 and latest Nightly 113.0a1 (2023-03-30).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: