Closed Bug 817330 Opened 13 years ago Closed 13 years ago

test_bug458898.html fails if dom.disable_window_move_resize = true

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla20

People

(Reporter: InvisibleSmiley, Assigned: InvisibleSmiley)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
test_bug458898.html constantly fails with SeaMonkey. Example: http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1354379420.1354380578.1902.gz#err1 16424 ERROR TEST-UNEXPECTED-FAIL | /tests/layout/base/tests/test_bug458898.html | innerHeight: 0 >= 200 ? I tracked the problem down to pref dom.disable_window_move_resize which is currently: - false by default and for FF (all.js, firefox.js) - true by default for B2G, Mobile and SM (b2g.js, mobile.js, browser-prefs.js) Attached a patch that sets/resets the pref within the test. With that the test succeeds with SeaMonkey.
Attachment #687443 - Flags: review?(dbaron)
Comment on attachment 687443 [details] [diff] [review] patch I prefer the pattern of setting the pref back to its original value at the end rather than clearing it. (If its original value was the default, this has the same effect as clearing it.) So in other words, add before your setBoolPref line: var oldPref = SpecialPowers.getBoolPref(disableWindowResizePref); and then replace your clearUserPref line with a setBoolPref call with oldPref as the argument. r=dbaron with that
Attachment #687443 - Flags: review?(dbaron) → review+
Attached patch patch v2Splinter Review
Attachment #687443 - Attachment is obsolete: true
Attachment #687565 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: