Closed Bug 1129930 Opened 10 years ago Closed 10 years ago

JavaScript error: chrome://browser/content/preferences/in-content/preferences.js, line 82: TypeError: getComputedStyle(...) is null

Categories

(Firefox :: Settings UI, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 38
Tracking Status
firefox38 --- fixed

People

(Reporter: Gijs, Assigned: Kwan)

References

Details

Attachments

(1 file)

STR:

./mach mochitest-browser browser/components/preferences/in-content/tests

throws lots of these.

I bet that the element is gone before init() runs, which then breaks stuff.

We should probably nullcheck it in the code, and stick it in a separate method while we're at it (the latter was something I meant to give as feedback in bug 1126278 and forgot about - sorry).

Ian, do you have cycles to work on this?
Flags: needinfo?(moz-ian)
Assignee: nobody → moz-ian
Status: NEW → ASSIGNED
Flags: needinfo?(moz-ian)
Attachment #8559882 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8559882 [details] [diff] [review]
Move padding code into function, and execute before the CustomEvent

Review of attachment 8559882 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8559882 - Flags: review?(gijskruitbosch+bugs) → review+
https://treeherder.mozilla.org/#/jobs?repo=try&revision=7d890bb4aec9
5 intermittent oranges, and a couple infra issues that went away on retrigger.  I think that makes it green enough to checkin
Keywords: checkin-needed
OS: Windows 8.1 → All
Hardware: x86_64 → All
https://hg.mozilla.org/mozilla-central/rev/f6d265d88cb4
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: