Closed
Bug 3707
Opened 27 years ago
Closed 27 years ago
Window requesting user authentication is blank
Categories
(SeaMonkey :: UI Design, defect, P3)
Tracking
(Not tracked)
M3
People
(Reporter: morse, Assigned: rpotts)
References
()
Details
Go to a page requiring authentication (such as http://www.w3.org/TR and select
one of the member-only links). A window pops up supposedly to ask for the
user's name and password. Unfortunately that window is blank. Actually it's
worse than blank -- it's transparent!
I had the debugger break execution and got the stack trace shown below. No, it
is not not a single-signon bug so don't reassign this back to me. Single signon
is in the stack trace and is behaving correctly by calling into nsStubContext's
routine stub_PromptUsernameAndPassword. And that routine used to put up the
prompt in a console window. Now instead it is calling into nsWebShell's
PromptUserAndPassword routine. The code in nsStubContext that is causing this
new behavior is:
if (nsnull != (ins = getNetSupport(context->modular_data))) {
nsAutoString str(msg);
nsAutoString userStr(*username);
nsAutoString pwdStr(*password);
if (ins->PromptUserAndPassword(msg, userStr, pwdStr)) {
*username = userStr.ToNewCString();
*password = pwdStr.ToNewCString();
bResult = TRUE;
}
NS_RELEASE(ins);
}
/* No nsINetSupport interface... */
else {
char buf[256];
printf("%s\n", msg);
printf("%cUser (default=%s): ", '\007', *username);
fgets(buf, sizeof buf, stdin);
if (strlen(buf)) {
*username = PL_strdup(buf);
}
printf("%cPassword (default=%s): ", '\007', *password);
fgets(buf, sizeof buf, stdin);
if (strlen(buf)) {
*password = PL_strdup(buf);
}
if (**username) {
bResult = TRUE;
} else {
PR_FREEIF(*username);
PR_FREEIF(*password);
}
}
Here's the stack trace.
USER32! 77e724e7()
nsAppShell::GetNativeEvent(nsAppShell * const 0x011029a0, void * & 0x01405ec0,
nsIWidget * 0x011034a0, int & 1, int & 0) line 87 + 17 bytes
nsAppShellService::GetNativeEvent(nsAppShellService * const 0x00e3d340, void * &
0x01405ec0, nsIWidget * 0x011034a0, int & 1, int & 0) line 161
nsBrowserAppCore::DoDialog(nsBrowserAppCore * const 0x00fe34c0) line 703 + 28
bytes
nsBrowserAppCore::PromptUserAndPassword(nsBrowserAppCore * const 0x00fe34e4,
const nsString & {...}, nsString & {...}, nsString & {...}) line 861
nsWebShell::PromptUserAndPassword(nsWebShell * const 0x00f9f268, const nsString
& {...}, nsString & {...}, nsString & {...}) line 2305 + 30 bytes
stub_PromptUsernameAndPassword(MWContext_ * 0x00fc83a0, char * 0x01102b10, char
* * 0x0151f618, char * * 0x0151f5f8) line 219 + 49 bytes
SI_PromptUsernameAndPassword(MWContext_ * 0x00fc83a0, char * 0x01102930, char *
* 0x0151f618, char * * 0x0151f5f8, char * 0x00fcb920) line 2198 + 28 bytes
NET_AskForAuthString(MWContext_ * 0x00fc83a0, URL_Struct_ * 0x00fbc5c0, char *
0x01102210, char * 0x00000000, int 0) line 819 + 28 bytes
net_setup_http_stream(_ActiveEntry * 0x0100c540) line 2500 + 43 bytes
net_ProcessHTTP(_ActiveEntry * 0x0100c540) line 3477 + 9 bytes
NET_ProcessNet(PRFileDesc * 0x00f9b910, int 2) line 3371 + 13 bytes
NET_PollSockets() line 320 + 18 bytes
NetlibTimerProc(void * 0x00000000, unsigned int 275, unsigned int 6960, unsigned
long 213947470) line 279
USER32! 77e7128c()
nsNetlibThread::NetlibThreadMain(void * 0x00e3e2a0) line 259
_PR_NativeRunThread(void * 0x00e3e330) line 379 + 13 bytes
MSVCRTD! 1020bbf3()
KER
| Reporter | ||
Updated•27 years ago
|
Target Milestone: M3
This requires the xpfe-dialogs to be hooked in. Assigning to rpotts for now.
| Reporter | ||
Updated•27 years ago
|
Target Milestone: M4 → M3
| Reporter | ||
Comment 3•27 years ago
|
||
How can you mark this for M4? You can't have dogfood if you can't view pages
that require authentication. And there's a very simple temporary fix -- just
force the "if" in the code snippet above to always take the "else" branch for
now.
Remarking this back to M3.
| Reporter | ||
Comment 5•27 years ago
|
||
Rick Morse? I think you mean Rick Potts (at least I hope that's who you mean).
Updated•27 years ago
|
Status: RESOLVED → VERIFIED
Comment 6•27 years ago
|
||
verified that this is a dup of 3684 (which is still open and Marked M4)
Changing all Networking Library/Browser bugs to Networking-Core component for
Browser.
Occasionally, Bugzilla will burp and cause Verified bugs to reopen when I do
this in a bulk change. If this happens, I will fix. ;-)
Bulk move of all Networking-Core (to be deleted component) bugs to new
Networking component.
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•