Javascript warning: 10-26 10:42:53.398 E/GeckoConsole(14328): [JavaScript Error: "TypeError: view is null" {file: "chrome://browser/content/browser.js" line: 2096}]

RESOLVED FIXED in Firefox 19

Status

()

defect
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: kats, Assigned: kats)

Tracking

unspecified
Firefox 19
All
Android
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

I see this when scrolling overflow:scroll blocks of text. The line in question is the one indicated below from sh_subdocumentScrolled.

        this.positionHandles();
        break;
      }
      if (view == view.parent) {    // <---- this line
        break;
      }
This is happening because _activeType isn't getting initialized properly. It needs to be initialized to 0 since this.TYPE_NONE isn't accessible at construction time. Tested in a desktop dev console:

[16:13:06.729] << var x = { FOO: 0, bar: this.FOO };
[16:13:06.732] >> undefined
[16:13:09.585] << x.FOO
[16:13:09.587] >> 0
[16:13:11.336] << x.bar
[16:13:11.338] >> undefined
Posted patch PatchSplinter Review
Assignee: nobody → bugmail.mozilla
Status: NEW → ASSIGNED
Attachment #675665 - Flags: review?(margaret.leibovic)
Comment on attachment 675665 [details] [diff] [review]
Patch

Nice catch.
Attachment #675665 - Flags: review?(margaret.leibovic) → review+
https://hg.mozilla.org/mozilla-central/rev/dcf78e64e1bd
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
You need to log in before you can comment on or make changes to this bug.