Closed Bug 1692838 Opened 5 years ago Closed 4 years ago

Don't show cached messages from private window in the browser console

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(Fission Milestone:M7, firefox-esr78 unaffected, firefox85 unaffected, firefox86 unaffected, firefox87 wontfix, firefox88 fixed)

RESOLVED FIXED
88 Branch
Fission Milestone M7
Tracking Status
firefox-esr78 --- unaffected
firefox85 --- unaffected
firefox86 --- unaffected
firefox87 --- wontfix
firefox88 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression, Whiteboard: dt-fission-m3-mvp)

Attachments

(2 files)

This only occurs when devtools.browsertoolbox.fission is true, as we connect directly to the frame target, and don't exclude private messages from the server.

browser_console_webconsole_private_browsing.js should have prevented the regression,
but in the test we check way to early to see if the messages are here, so we don't see that they actually get rendered later.

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

Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp

First, this patch fixes the existing test that was flawed, checking if messages
weren't displayed too early, so messages didn't have the time to be rendered.
When checking later, we can see that the messages were displayed when they shouldn't have been.
We can't build a server-only solution here, as the browser console will consume
messages from frame targets, and we don't have a way to check if a given target
is consumed from the browser console/browser toolbox.
What we do is add a new isCachedMessage property on css, error and console messages
resources, so we can check it on the client alongside the private one.

Fission Milestone: --- → M8
Severity: -- → S3
Priority: -- → P2
Depends on: 1694148

Tracking DevTools Post-M8 bugs for Fission MVP milestone. They don't block the Fission Release channel experiment, but we would like them to be completed before we roll out Fission by default.

Fission Milestone: M8 → MVP

This property indicates if the resources was existing before we started watching
for this type of resource.
We add some test cases in the various message resources to check the value of the
property.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8dcb37229312 [devtools] Add an `isAlreadyExistingResource` property to resources. r=ochameau. https://hg.mozilla.org/integration/autoland/rev/d30ecc76411c [devtools] Don't show cached message from private windows in browser console. r=ochameau.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Fission Milestone: MVP → M7
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: