OBJECT's (text/html) data doesn't pass callbacks for prompting

NEW
Unassigned

Status

()

--
major
16 years ago
9 years ago

People

(Reporter: dbaron, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

I just crashed due to http://www.w3.org/Style/Group/members.html , which has an
<object type="text/html"/> whose data requires HTTP authentication.  The
mCallbacks on the HTTP channel were null.

I filed bug 199910 on the fact that HTTP crashes rather than asserting or
failing somewhat more gracefully.

However, even if that's fixed, this would still mean that there would be no
prompt, but just an error.  The content/layout code that does the loading needs
to pass the right prompt callbacks.

Crash stack:

#3  <signal handler called>
#4  0x41126d40 in nsHttpChannel::GetCallback(nsID const&, void**) (
    this=0x83d1fd0, aIID=@0x83a7ad8, aResult=0x50)
    at /builds/trunk/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp:756
#5  0x4112c1ee in nsHttpChannel::PromptForIdentity(char const*, int, int, char
const*, char const*, unsigned, nsHttpAuthIdentity&) (this=0x83d1fd0,
    host=0x83a7ad8 "cgi.w3.org", port=80, proxyAuth=0,
    realm=0xbfffec30 "W3C-Member", scheme=0xbfffecb0 "basic", authFlags=13,
    ident=@0x83d20c4)
    at /builds/trunk/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp:2036
#6  0x4112b878 in nsHttpChannel::GetCredentials(char const*, int,
nsAFlatCString&) (this=0x83d1fd0, challenges=0x83b68c0 "Basic realm=\"W3C-Member\"",
    proxyAuth=0, creds=@0xbfffed90)
    at /builds/trunk/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp:1879
#7  0x4112b084 in nsHttpChannel::ProcessAuthentication(unsigned) (
    this=0x83d1fd0, httpStatus=401)
    at /builds/trunk/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp:1748
#8  0x41126849 in nsHttpChannel::ProcessResponse() (this=0x83d1fd0)
    at /builds/trunk/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp:684
#9  0x4112f981 in nsHttpChannel::OnStartRequest(nsIRequest*, nsISupports*) (
    this=0x83d1fd0, request=0x81fd1c8, ctxt=0x0)
    at /builds/trunk/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp:2970
#10 0x410a2737 in nsInputStreamPump::OnStateStart() (this=0x81fd1c8)
    at /builds/trunk/mozilla/netwerk/base/src/nsInputStreamPump.cpp:350
#11 0x410a25d9 in nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) (
    this=0x81fd1c8, stream=0x83a7a44)
    at /builds/trunk/mozilla/netwerk/base/src/nsInputStreamPump.cpp:318
#12 0x403f2b49 in nsInputStreamReadyEvent::EventHandler(PLEvent*) (
    plevent=0x82f4544) at /builds/trunk/mozilla/xpcom/io/nsStreamUtils.cpp:116
#13 0x40416a91 in PL_HandleEvent (self=0x82f4544)
    at /builds/trunk/mozilla/xpcom/threads/plevent.c:659
#14 0x404168c3 in PL_ProcessPendingEvents (self=0x8246280)
...

(gdb) frame 4
#4  0x41126d40 in nsHttpChannel::GetCallback(nsID const&, void**) (
    this=0x83d1fd0, aIID=@0x83a7ad8, aResult=0x50)
    at /builds/trunk/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp:756
756         rv = mCallbacks->GetInterface(aIID, aResult);
(gdb) p mCallbacks
$1 = {mRawPtr = 0x0}

Comment 1

16 years ago
Is this a recent regression? My debug build isn't crashing. Can you attach a
testcase?
Assignee: layout.html-frames → nobody
QA Contact: madhur → layout.html-frames
You need to log in before you can comment on or make changes to this bug.