Closed
Bug 422234
Opened 18 years ago
Closed 18 years ago
Javascript function resizeTo broken
Categories
(Firefox :: General, defect)
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.
Comment 1•18 years ago
|
||
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?
Comment 2•18 years ago
|
||
Using Windows XP if that makes any difference...
Comment 3•18 years ago
|
||
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.
Comment 4•18 years ago
|
||
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.
Updated•18 years ago
|
Flags: blocking-firefox3?
Comment 5•18 years ago
|
||
> 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.
Comment 6•18 years ago
|
||
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.
Description
•