nsTransferable disk-leaks when private browsing mode is enabled by default
Categories
(Core :: Widget, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: pierov, Assigned: pierov)
References
Details
(Whiteboard: [tor 21830])
Attachments
(3 files)
#1123480 modified nsTransferable
to prevent disk leakings when copying data in incognito mode.
However, it still leaks if private mode is enabled by default.
This happens because nsTransferable::Init
is called with a nullptr
context.
To confirm that this is happening, you can set browser.privatebrowsing.autostart
to true, and then either add a breakpoint to DataStruct::SetData
, and check its first parameter (you will notice that it is always false
), or monitor in any other way the temporary files.
In Tor Browser we are using a patch developed by Neill Miller that I am attaching, and we think that all Firefox users would benefit from it.
Thanks!
Comment 1•3 years ago
|
||
The severity field is not set for this bug.
:spohl, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•3 years ago
|
||
David, do you think you could take a look and possibly get this patch reviewed, or reassign it to someone?
Updated•3 years ago
|
Comment 4•3 years ago
|
||
David, the patch is pretty small, can we take it?
Also, does this need to be S2?
Assignee | ||
Comment 5•3 years ago
|
||
If anyone is willing to review it and merge it you can assign it to me, too.
Comment 6•3 years ago
|
||
Pier Angelo, maybe you can submit the patch with Phabricator? It would it easier to review and land your patch.
Assignee | ||
Comment 7•3 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #6)
Pier Angelo, maybe you can submit the patch with Phabricator? It would it easier to review and land your patch.
Sure, I was asking for a reviewer to add them in the commit subject.
Comment 8•3 years ago
|
||
r=handyman
Assignee | ||
Comment 9•3 years ago
|
||
nsTransferable was modified to prevent disk leakings when copying data
in private browsing mode with Bug 1123480.
However, the context is nullptr when it is initialized, so it sill
leaks if PBM is enabled by default.
Our solution is to check the browser.privatebrowsing.autostart in this
condition.
Assignee | ||
Comment 10•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
David, thanks for the reviews!
Could you please land the patches for me? (or someone else with commit access).
Thanks!
Comment 13•3 years ago
|
||
Comment 14•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/65a8754a41c6
https://hg.mozilla.org/mozilla-central/rev/d12c18406020
Updated•3 years ago
|
Description
•