Closed Bug 779680 Opened 12 years ago Closed 12 years ago

about:neterror's GoOnline() should be invoked from events, not nsDOMWindowUtils

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: mccr8, Assigned: Unfocused)

References

Details

Attachments

(1 file)

The current method is gross.
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Attached patch Patch v1Splinter Review
Made the event listeners in browser.js use capture to ensure they get the event first, before the handler in the page. And AFAICT it didn't even break anything! (Tagging dolske for r? as punishment.)
Attachment #648605 - Flags: review?(dolske)
Attachment #648605 - Flags: review?(bzbarsky)
Comment on attachment 648605 [details] [diff] [review] Patch v1 r=me
Attachment #648605 - Flags: review?(bzbarsky) → review+
Comment on attachment 648605 [details] [diff] [review] Patch v1 Why the capturing listener? So we trigger online-mode before the page starts the reload? Probably worth a comment in retryThis that the browser.js code handles the go-online thing.
Attachment #648605 - Flags: review?(dolske) → review+
Is nsDOMWindowUtils::GoOnline still called anywhere after this patch?
(In reply to Andrew McCreight [:mccr8] from comment #4) > Is nsDOMWindowUtils::GoOnline still called anywhere after this patch? Bah, yes, because we have multiple copies of netError.xhtml. Filed bug 781688 and bug 781689, which I'll handle today. AFAICT, there are no more uses of it once those are fixed (I even checked comm-central!).
Great, thanks!
(In reply to Justin Dolske [:Dolske] from comment #3) > Why the capturing listener? So we trigger online-mode before the page starts > the reload? Yep. > Probably worth a comment in retryThis that the browser.js code handles the > go-online thing. Will do.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
(In reply to Blair McBride from comment #5) > (I even checked comm-central!) All you did was notice that we don't override aboutNetError.xhtml, but sadly you failed to inform us that we now need to create an alternative way of going online in front-end code...
Blocks: 782892
Sorry, yes, I meant to file a separate bug for that the other day, but forgot. Filed bug 782892.
Blocks: 783763
Blocks: 790034
No longer blocks: CVE-2012-3986
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: