Closed
Bug 592410
Opened 15 years ago
Closed 15 years ago
WebConsole: Reloading page while requests are not done causes exception
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 4.0b7
People
(Reporter: julian.viereck, Assigned: pcwalton)
References
Details
(Whiteboard: [kd4b6])
Attachments
(2 files)
|
1.51 KB,
patch
|
sdwilsh
:
review+
ddahl
:
feedback+
|
Details | Diff | Splinter Review |
|
1.58 KB,
patch
|
Gavin
:
approval2.0+
|
Details | Diff | Splinter Review |
When a page hasn't finished loading yet (or at least some of the requests for the page) and you hit the reload button you will sometimes see exceptions like this:
Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.visitResponseHeaders]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource://gre/modules/HUDService.jsm :: RL_setResponseHeader :: line 166" data: no]
Source File: resource://gre/modules/HUDService.jsm
Line: 166
| Reporter | ||
Comment 1•15 years ago
|
||
Another simple fix - no unit tests (which should be fine as that was okay for bug 592264 as well and this fix goes the same way).
Attachment #470895 -
Flags: feedback?(ddahl)
Comment 2•15 years ago
|
||
Comment on attachment 470895 [details] [diff] [review]
Patch v1.0
nice catch!
Attachment #470895 -
Flags: feedback?(ddahl) → feedback+
| Reporter | ||
Updated•15 years ago
|
Attachment #470895 -
Flags: review?(sdwilsh)
Comment 3•15 years ago
|
||
Comment on attachment 470895 [details] [diff] [review]
Patch v1.0
>+ // Accessing the response header can throw an NS_ERROR_NOT_AVAILABLE
>+ // exception. Catch it and stop it to make it not show up in the
>+ // error console. See bug 592410.
Explaining why in the code is more useful than referencing the bug. Please just explain it here and lose the bug reference.
r=sdwilsh
Attachment #470895 -
Flags: review?(sdwilsh) → review+
| Reporter | ||
Comment 4•15 years ago
|
||
Improved based on Shawn's review.
| Reporter | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 5•15 years ago
|
||
Needs approval to land.
Assignee: nobody → julian.viereck
Keywords: checkin-needed
| Reporter | ||
Updated•15 years ago
|
Attachment #471458 -
Flags: approval2.0?
Updated•15 years ago
|
Assignee: julian.viereck → pwalton
Updated•15 years ago
|
Attachment #471458 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 6•15 years ago
|
||
Keywords: checkin-needed
Target Milestone: --- → Firefox 4.0b6
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•