Closed Bug 242149 Opened 21 years ago Closed 21 years ago

GlobalWindowImpl gets prefs for no reason during page load and new-window

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: jst)

Details

Attachments

(1 file)

GlobalWindowImpl ends up getting the dom.disable_window* prfes during new-window and during page load for no reasons in some cases. This can be fixed by simply not bothering to look at the pref if we're called from chrome, and only check the pref if we're not called from chrome. Patch coming up.
Attachment #147367 - Flags: superreview?(bzbarsky)
Attachment #147367 - Flags: review?(bzbarsky)
Comment on attachment 147367 [details] [diff] [review] Make CanSetProperty() check if the caller is chrome before checking the pref. I thought they were that way. See http://bugzilla.mozilla.org/show_bug.cgi?id=117707#c68 Oops. r=caillon
Attachment #147367 - Flags: review?(bzbarsky) → review+
Comment on attachment 147367 [details] [diff] [review] Make CanSetProperty() check if the caller is chrome before checking the pref. sr=bzbarsky
Attachment #147367 - Flags: superreview?(bzbarsky) → superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: