Closed
Bug 243149
Opened 21 years ago
Closed 21 years ago
Hostname and port appears where 'Use Password Manager to remember these values.' usually is.
Categories
(SeaMonkey :: Passwords & Permissions, defect)
SeaMonkey
Passwords & Permissions
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.8alpha1
People
(Reporter: stephend, Assigned: darin.moz)
References
()
Details
(Keywords: verified1.7)
Attachments
(1 file)
6.33 KB,
patch
|
Biesinger
:
review+
dveditz
:
superreview+
dveditz
:
approval1.7+
|
Details | Diff | Splinter Review |
Build ID: 2004-05-09-07
Steps to Reproduce:
1. Load http://iuware.iu.edu/wintitle.asp?softid=vsnet01
2. Right click on the 'Download' link and use the 'Save Link Target As' context
menu option at:
Download Option 1
Download the software in one large 390 MB file.
setup.exe 390 MB Download
(Note, this WORKS FINE if you just click on Download
3. Examine the resulting authentication box that comes up.
Expected Results:
'Use Password Manager to remember these values.'
Actual Results:
The string above is replace by:
'iuware-web001.uits.indiana.edu:443 (iuware-web001.uits.indiana.edu)'
Reporter | ||
Updated•21 years ago
|
Summary: Hostname and port appears where 'Use Download Manager to remember these values.' → Hostname and port appears where 'Use Download Manager to remember these values.' usually is.
Reporter | ||
Updated•21 years ago
|
Summary: Hostname and port appears where 'Use Download Manager to remember these values.' usually is. → Hostname and port appears where 'Use Password Manager to remember these values.' usually is.
Assignee | ||
Comment 1•21 years ago
|
||
I can reproduce this using a 1.7 branch build. I wonder if the phishy auth
prompting patch introduced this somehow.
investigating...
Assignee | ||
Comment 2•21 years ago
|
||
Hmm... there's some bogus code here:
http://lxr.mozilla.org/mozilla/source/xpfe/communicator/resources/content/contentAreaUtils.js#475
nsIPromptService::PromptUsernameAndPassword does not take a realm parameter.
Instead, it takes the text for the checkbox in the position where the realm is
being passed. that's consistent with what we see in the dialog.
the changes to contentAreaUtils.js are dated 2002-03-05, which means that it was
made for moz 1.0. see bug 116279. it appears i sr='d it too :-(
it looks like this has probably been broken since it landed b/c
PromptUsernameAndPassword's signature has not changed since 10-Apr-01.
I can reproduce this bug using Mozilla 1.4.
Assignee | ||
Comment 3•21 years ago
|
||
The correct fix here is probably to not implement nsIAuthPrompt in
contentAreaUtils.js. Instead, contentAreaUtils should get a hold of a reference
to the same nsIAuthPrompt implementation used by nsDocShell. And, that means
that it should be using the nsIWindowWatcher service's getNewAuthPrompter method.
-> me
Assignee: dveditz → darin
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Flags: blocking1.7?
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.8alpha
Assignee | ||
Comment 4•21 years ago
|
||
simple patch. just duplicate getInterface implementation from
nsProxyAutoConfig.js. needed to patch both seamonkey's contentAreaUtils.js as
well as firefox's forked contentAreaUtils.js. the same patch worked for both.
Assignee | ||
Updated•21 years ago
|
Attachment #148085 -
Flags: superreview?(dveditz)
Attachment #148085 -
Flags: review?(cbiesinger)
Comment 5•21 years ago
|
||
this is a duplicate of bug 159089; marking the dup the other way round I guess,
as this bug has a patch...
Comment 6•21 years ago
|
||
*** Bug 159089 has been marked as a duplicate of this bug. ***
Comment 7•21 years ago
|
||
Comment on attachment 148085 [details] [diff] [review]
v1 patch
hmm, nsIPrompt also has a method called promptUsernameAndPassword... with
different parameters. deserves a price for obfuscation.
this confused me into thinking
nsPrompt::nsIAuthPrompt::PromptUsernameAndPassword was wrongly implemented...
but I was looking at nsIPrompt's impl.
I also believe this makes it impossible to implement both interfaces on the
same object in javascript. ah well.
Attachment #148085 -
Flags: review?(cbiesinger) → review+
Comment 8•21 years ago
|
||
thanks for making this patch!
Comment 9•21 years ago
|
||
Comment on attachment 148085 [details] [diff] [review]
v1 patch
sr=dveditz
Attachment #148085 -
Flags: superreview?(dveditz) → superreview+
Comment 10•21 years ago
|
||
Comment on attachment 148085 [details] [diff] [review]
v1 patch
a=dveditz for 1.7
Attachment #148085 -
Flags: approval1.7+
Comment 11•21 years ago
|
||
Nice to have, but blocking1.7-minus because we wouldn't hold for this. (lived
with it almost two years at least given bug 159089)
Flags: blocking1.7? → blocking1.7-
Assignee | ||
Comment 12•21 years ago
|
||
fixed-on-trunk
fixed1.7
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Flags: blocking1.7- → blocking1.7?
Keywords: fixed1.7
Resolution: --- → FIXED
Comment 13•21 years ago
|
||
Comment on attachment 148085 [details] [diff] [review]
v1 patch
>+ Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE;
>+ return null;
Neat. I always thought you had to throw C.r.NS_ERROR_NO_INTERFACE;
Assignee | ||
Comment 14•21 years ago
|
||
> >+ Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE;
> >+ return null;
> Neat. I always thought you had to throw C.r.NS_ERROR_NO_INTERFACE;
yeah, this is nice because it avoids the XPConnect exception output in the [JS]
console.
Comment 15•21 years ago
|
||
*** Bug 195780 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 16•21 years ago
|
||
Verified FIXED for me using trunk 2004-05-12-08 on Windows XP.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Flags: blocking1.7?
Updated•20 years ago
|
Keywords: fixed1.7 → verified1.7
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•