Closed Bug 723084 Opened 12 years ago Closed 12 years ago

JavaScript Error: "this.browser is null" {file: "chrome://browser/content/browser.js" line: 2117}

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox11 verified, firefox12 verified, firefox13 verified)

VERIFIED FIXED
Firefox 13
Tracking Status
firefox11 --- verified
firefox12 --- verified
firefox13 --- verified

People

(Reporter: martijn.martijn, Assigned: mbrubeck)

Details

(Keywords: testcase, Whiteboard: [has patch])

Attachments

(3 files)

Attached file testcase
See testcase, steps to reproduce:
- Tap on "windowopenbuttononclick" button, a window opens and then closes
- Reload the page

Expected result:
- No js errors in logcat

Actual result:
- This error in logcat: E/GeckoConsole(4572): [JavaScript Error: "this.browser is null" {file: "chrome://browser/content/browser.js" line: 2117}]

Tested on the LG Optimus Black, Android 2.2.2.

Note that tapping multiple times on the "windowopenbuttononclick" button and then reloading results in multiple js errors in logcat.
Attached file log from logcat
Assignee: nobody → mbrubeck
Attached patch patchSplinter Review
We add a "document-shown" observer when a Tab is created, but we didn't remove it when the Tab was destroyed.  This patch fixes the bug, and might also prevent us from leaking memory as tabs are closed.
Attachment #593531 - Flags: review?(bnicholson)
Status: NEW → ASSIGNED
Whiteboard: [has patch]
Attachment #593531 - Flags: review?(bnicholson) → review+
Comment on attachment 593531 [details] [diff] [review]
patch

[Approval Request Comment]
Low-risk trivial Android-only bug and memory leak fix.
Attachment #593531 - Flags: approval-mozilla-beta?
Attachment #593531 - Flags: approval-mozilla-aurora?
Comment on attachment 593531 [details] [diff] [review]
patch

[Triage Comment]
Mobile only - approved for Aurora 12 and Beta 11.
Attachment #593531 - Flags: approval-mozilla-beta?
Attachment #593531 - Flags: approval-mozilla-beta+
Attachment #593531 - Flags: approval-mozilla-aurora?
Attachment #593531 - Flags: approval-mozilla-aurora+
https://hg.mozilla.org/mozilla-central/rev/d711befe9037
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
No such error in log.

Verified fixed on build:
Firefox 11 (tinderbox build): 	1328482809/	05-Feb-2012 16:26 	
Firefox 12: Firefox 12.0a2 (2012-02-05)
Firefox 13: Firefox 13.0a1 (2012-02-05)

Device: LG Optimus 2X (Android 2.2.2)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: