Closed Bug 675037 Opened 8 years ago Closed 8 years ago

async fullzoom callback needs to handle being called after window is destroyed

Categories

(Firefox :: General, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
Firefox 8

People

(Reporter: Gavin, Assigned: Gavin)

Details

Attachments

(1 file)

It uses browser.currentURI, which can be null if the callback runs after the window is destroyed. nsIURI::equals doesn't like that, and complains:

Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIURI.equals]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: chrome://browser/content/browser.js :: <TOP_LEVEL> :: line 338"  data: no]
Source File: chrome://browser/content/browser.js
Line: 338
Attached patch patchSplinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #549223 - Flags: review?(dolske)
Attachment #549223 - Flags: review?(dolske) → review+
http://hg.mozilla.org/mozilla-central/rev/30e5fe8a62c2
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 8
You need to log in before you can comment on or make changes to this bug.