Closed Bug 559998 Opened 14 years ago Closed 14 years ago

Intermittent failure in cookie/test/test_loadflags.html | ... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.getRequestHeader]"

Categories

(Core :: Networking: Cookies, defect)

x86
Windows Server 2003
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: philor, Assigned: tnikkel)

References

Details

(Keywords: intermittent-failure)

Attachments

(2 files)

http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1271459016.1271460749.26035.gz
WINNT 5.2 mozilla-central debug test mochitests-4/5 on 2010/04/16 16:03:36
s: win32-slave10

15 INFO TEST-PASS | /tests/extensions/cookie/test/test_loadflags.html | cookie 'oh=hai' is in header for http://example.org/tests/extensions/cookie/test/file_loadflags_inner.html
16 ERROR TEST-UNEXPECTED-FAIL | /tests/extensions/cookie/test/test_loadflags.html | [SimpleTest/SimpleTest.js, window.onerror] An error occurred - uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.getRequestHeader]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://mochi.test:8888/tests/extensions/cookie/test/file_testloadflags.js :: obs_observe :: line 70"  data: no] at :0
JavaScript error: , line 0: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.getRequestHeader]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://mochi.test:8888/tests/extensions/cookie/test/file_testloadflags.js :: obs_observe :: line 70"  data: no]
So it looks like the problem here is that we get an extra observer notification that we don't expect. Next time I land on m-c I will land some stuff to dump a bunch of info to see what this extra notification is.
Attached patch debug outputSplinter Review
So the log in comment 28 shows that we get observer notifications for http://mochi.test:8888/favicon.ico and http://example.org/favicon.ico. So we should just filter to ignore notifications we don't care about.
Attached patch fixSplinter Review
Assignee: nobody → tnikkel
Attachment #442618 - Flags: review?(dwitte)
Comment on attachment 442618 [details] [diff] [review]
fix

r=dwitte. Nice debugging!
Attachment #442618 - Flags: review?(dwitte) → review+
This is also happening on staging winxp/win7 unit test boxes.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
Target Milestone: --- → mozilla1.9.3a5
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: