Closed Bug 422234 Opened 18 years ago Closed 18 years ago

Javascript function resizeTo broken

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mbp, Unassigned)

References

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; da; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 Build Identifier: Firefox 3 Beta 4 Javascript functions related to window size/location is not responding or being excecuted correctly. Example: window.resizeTo(1234,1234); Reproducible: Always Steps to Reproduce: 1. Create HTML page with above mentioned javascript 2. 3. Actual Results: Nothing Expected Results: Window should resize to given dimensions.
I reproduced this bug using XULrunner 1.9 3/11/08 nightly build. window.resizeTo() does nothing. Was working fine in our application using an earlier (beta 3) build.
Flags: blocking-firefox3?
Using Windows XP if that makes any difference...
This feature is disabled by default for security reasons, but you can allow it for specific sites (Tools > Options > Content > Advanced...). This change was made in bug 412862 for Firefox 3 Beta 4, but it might be reverted for Firefox 3 Beta 5.
Blocks: 412862
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Is there a way to revert this behavior with a preference setting via XPcom? We are developing a stand-alone application with XULrunner and we need to be able to resize windows dynamically in a few places. Removing this by default seems a bit extreme to me.
Flags: blocking-firefox3?
> Is there a way to revert this behavior with a preference setting via XPcom? For your use, the easiest workaround is probably to set the prefs to whitelist your app's domains.
I ended up creating a permissions.sqlite file (whitelisting our servers) with the FF3 beta and then copied it into the profile for my app. That works fine. I do think there should be a preference in prefs.js allowing developers to override this as is the case for other security settings - perhaps it should respect the value of dom.disable_window_open_feature.resizable.
You need to log in before you can comment on or make changes to this bug.