Closed Bug 706705 Opened 14 years ago Closed 14 years ago

[JavaScript Error: "this.browser.contentDocument.body is null" {file: "chrome://browser/content/browser.js" line: 1333}] when loading a page for the first time

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nhirata, Assigned: mbrubeck)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached file logcat —
1. start up fennec 2. look at logcat Expected: no error messages Actual: [JavaScript Error: "this.browser.contentDocument.body is null" {file: "chrome://browser/content/browser.js" line: 1333}] in about:home
Attached patch patch (obsolete) — — Splinter Review
Assignee: nobody → mbrubeck
Status: NEW → ASSIGNED
Attachment #578130 - Flags: review?(mark.finkle)
Attached patch patch — — Splinter Review
Accidentally uploaded an empty patch after a qref mishap.
Attachment #578130 - Attachment is obsolete: true
Attachment #578130 - Flags: review?(mark.finkle)
Attachment #578133 - Flags: review?(wjohnston)
Comment on attachment 578133 [details] [diff] [review] patch Review of attachment 578133 [details] [diff] [review]: ----------------------------------------------------------------- It looks like we were already doing a similar check, so I guess we're aware and ok with wallpapering over this. Do we ever expect to not have a browser.contentDocument? Just to be clear I understand, we're calling this when we get "Viewport:Change" events from Java or "resize" events from Gecko. Sometimes we have no document (or in this case a document with no body). I'd guess this is likely from the "Viewport:Change" event, we're resizing to a default size while loading a new page, and hitting a bit of a race? Maybe a comment about why this might happen?
Attachment #578133 - Flags: review?(wjohnston) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Verified fixed on: Nightly 13.0a1(2012-03-04) Device: Samsung Galaxy S2 OS: Android 2.3.4
Status: RESOLVED → VERIFIED
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: