Closed
Bug 835904
Opened 12 years ago
Closed 12 years ago
test_prompt.html fails on mozilla-central
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: ehsan.akhgari, Assigned: mcmanus)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(1 file)
3.72 KB,
patch
|
jduell.mcbugs
:
review+
|
Details | Diff | Splinter Review |
We saw this over in bug 806737 for the first time. Unfortunately, this seems to be a real regression in the HTTP implementation. If you run toolkit/components/passwordmgr/test/test_prompt.html, you'll get the following js error:
1:08.18 JavaScript error: file:///Users/ehsanakhgari/moz/pb/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/components/nsLoginManagerPrompter.js, line 577: NS_ERROR_XPC_JS_THREW_STRING: 'proxy auth needs nsIProxyInfo' when calling method: [nsIPromptService2::promptAuth]
1:08.18 JavaScript error: file:///Users/ehsanakhgari/moz/pb/obj-ff-dbg/dist/NightlyDebug.app/Contents/MacOS/components/nsLoginManagerPrompter.js, line 577: NS_ERROR_XPC_JS_THREW_STRING: 'proxy auth needs nsIProxyInfo' when calling method: [nsIPromptService2::promptAuth]
Patrick, can you please look into this? The first step would be to bisect this, I suppose (but that's a bit harder than it should be since test_prompt.html has to be manually enabled for each bisection step.)
Assignee | ||
Comment 1•12 years ago
|
||
just a comment to say this is on my radar but I'm going into a vacation period for the better part of a week..
Reporter | ||
Comment 2•12 years ago
|
||
Thanks, Patrick! Assigning it to you then. I'll try to find some time today to help with the bisection...
Assignee: nobody → mcmanus
Reporter | ||
Comment 3•12 years ago
|
||
OK, I tried bisecting this, and in every step of the bisection, the error was reproducible. Then I looked more closely, and suddenly it occured to me what's going on with the test. This test ends up calling SimpleTest.finish() too soon. You can observe it by running the test stand-alone, and seeing the green table pop up before the JS error occurs. This causes the test failure to be masked away when we run all of the tests in the directory (like we do on tinderbox machines) since finish() will be called and we will move on to the next test before we hit the failing code. In other words, a large portion of this test has been getting skipped for quite some time, and it's not easy to say when this exactly broke. :(
Comment 4•12 years ago
|
||
That's what I was trying to explain on bug 806737 comment 5 :)
Reporter | ||
Comment 5•12 years ago
|
||
(In reply to comment #4)
> That's what I was trying to explain on bug 806737 comment 5 :)
Right, yeah I missed that. Sorry!
Assignee | ||
Comment 6•12 years ago
|
||
The issue is what I poorly described over in:
https://bugzilla.mozilla.org/show_bug.cgi?id=806737#c10
proxy info is determined asynchronously now (before it was causing jank when done synchronously during channel creation). test_prompt.html simply creates the channel and then queries the PI.. this is going to fail.
The solution is just to wait for something to happen on the channel (observe on-modify-request for example) to signal that the PI is ready.
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #713419 -
Flags: review?(jduell.mcbugs)
Assignee | ||
Comment 8•12 years ago
|
||
Ehsan, Andres -
my patch should fix up the proxy auth cases (508, 509, 510).
The test still fails for me near the end in test 1003. But that has something to do with popupNotifications which I really know nothing about - can you find a new bug and owner for that? I'm quite sure its unrelated.
Updated•12 years ago
|
Attachment #713419 -
Flags: review?(jduell.mcbugs) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Reporter | ||
Comment 11•12 years ago
|
||
Thanks Patrick!
Updated•9 years ago
|
Keywords: regressionwindow-wanted
You need to log in
before you can comment on or make changes to this bug.
Description
•