Closed
Bug 723003
Opened 12 years ago
Closed 12 years ago
nsLoginManager.js uses global Private Browsing state to make decisions
Categories
(Toolkit :: Password Manager, defect)
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: jdm, Assigned: sawrubh)
References
()
Details
Attachments
(1 file, 1 obsolete file)
2.89 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
Global PB state is going away. Instead, it should query the window's docshell.
Comment 1•12 years ago
|
||
As noted in bug 723004 comment 5... What should we do when there's no obvious window at hand? This is a component, after all, and the APIs here don't have a way to allow a caller to pass in a window reference...
Reporter | ||
Comment 2•12 years ago
|
||
APIs are being changed for other components such as the Download Manager to allow for a context, or default to non-private if none is provided. Can we do the same here?
Assignee | ||
Comment 3•12 years ago
|
||
@Josh,@Ehsan,@Justin Is there an agreement upon what needs to be done then ? Wouldn't the normal solution (of converting singletons to instances) work in this case ?
Reporter | ||
Comment 4•12 years ago
|
||
No, singletons to instances won't work, since this is a component implementing the nsILoginManager interface.
Comment 5•12 years ago
|
||
(In reply to Saurabh Anand [:sawrubh] from comment #3) > @Josh,@Ehsan,@Justin Is there an agreement upon what needs to be done then ? > Wouldn't the normal solution (of converting singletons to instances) work in > this case ? What Josh said in comment 2.
Assignee | ||
Comment 6•12 years ago
|
||
I'm interested in working on this.
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 8•12 years ago
|
||
From the comments of Justin and Josh, I think we wouldn't have a window, then how am I supposed to QI to get the nsILoadContext ? I have still done some QI'ing in this patch, using nsILoadContext. Can you guys tell me whether this is somewhat correct or not.
Attachment #638602 -
Flags: feedback?(josh)
Reporter | ||
Comment 9•12 years ago
|
||
You should turn the getter into a method that takes a window argument. In the two places that use _inPrivateBrowsing, one can be moved down after the definition of the win variable, and the other can pass doc.defaultView.
Reporter | ||
Updated•12 years ago
|
Attachment #638602 -
Flags: feedback?(josh)
Assignee | ||
Comment 10•12 years ago
|
||
Passes all the concerned tests.
Attachment #638602 -
Attachment is obsolete: true
Attachment #643821 -
Flags: review?(ehsan)
Comment 11•12 years ago
|
||
Comment on attachment 643821 [details] [diff] [review] Patch v2 Review of attachment 643821 [details] [diff] [review]: ----------------------------------------------------------------- Looks great, thanks!
Attachment #643821 -
Flags: review?(ehsan) → review+
Comment 12•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2376910844ba
Target Milestone: --- → mozilla17
Comment 13•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2376910844ba
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•