Closed
Bug 829383
Opened 11 years ago
Closed 11 years ago
gNumberOfAlwaysOpenPrivateDocShells will be incorrect when hidden private window contains child docshells
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
RESOLVED
FIXED
Firefox 21
People
(Reporter: jdm, Assigned: jdm)
References
Details
Attachments
(1 file)
12.00 KB,
patch
|
bzbarsky
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Won't the number of always open private docshells be equal to the 0 or 1 + the number of child docshells of the hidden private window? This looks like it will break once Jetpack starts adding panels to it.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → josh
Comment 1•11 years ago
|
||
As discussed on IRC, let's store a flag on the docshell, something like mDontGiveACrap (with a better name), set it to true on the hidden window docshell, propagate it to children, and bypass this whole business of increasing and decreasing the private docshell count when that flag is set... We should also get a test for this. You can stick an iframe or something under the private hidden window...
Assignee | ||
Comment 2•11 years ago
|
||
Every time I change this code I find cause to feel slightly dirtier.
Attachment #702337 -
Flags: review?(bzbarsky)
Comment 3•11 years ago
|
||
Comment on attachment 702337 [details] [diff] [review] Ensure hidden private window docshells aren't counted towards private session lifetime. Let's assume that Josh has rev'ed nsIDocShell's uuid.
![]() |
||
Comment 4•11 years ago
|
||
Comment on attachment 702337 [details] [diff] [review] Ensure hidden private window docshells aren't counted towards private session lifetime. Don't you need to IncreasePrivatDocShellCount() if aAffectLifetime && !mAffectPrivateSessionLifetime && mInPrivateBrowsing? r=me with that fixed.
Attachment #702337 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc665373ff61
Assignee | ||
Comment 6•11 years ago
|
||
This is going to affect 20, so it will need an uplift.
tracking-firefox20:
--- → ?
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 702337 [details] [diff] [review] Ensure hidden private window docshells aren't counted towards private session lifetime. [Approval Request Comment] Bug caused by (feature/regressing bug #): 815847 User impact if declined: Private browsing data that doesn't get cleared when using certain jetpack addons. Testing completed (on m-c, etc.): m-c, automated test Risk to taking this patch (and alternatives if risky): Not risky. Well-scoped functionality change to one component. String or UUID changes made by this patch: nsIDocShell UUID
Attachment #702337 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 8•11 years ago
|
||
Backed out for failing OS X test: https://hg.mozilla.org/integration/mozilla-inbound/rev/1aa6bf0a46a2
Assignee | ||
Comment 9•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=53506e00cbf4
Assignee | ||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ee7cb4422133
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ee7cb4422133
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
Updated•11 years ago
|
Comment 13•11 years ago
|
||
Comment on attachment 702337 [details] [diff] [review] Ensure hidden private window docshells aren't counted towards private session lifetime. Approving for aurora since we need/want this for the pb feature in 20.
Attachment #702337 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 14•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/326cf46aa524
Comment 15•11 years ago
|
||
The test landed here only makes sense in per-window PB builds. This patch marks it as such: https://hg.mozilla.org/integration/mozilla-inbound/rev/e775b0323811 https://hg.mozilla.org/releases/mozilla-aurora/rev/b1c12aa591e0
You need to log in
before you can comment on or make changes to this bug.
Description
•