Popup doesn't resize when resize from Javascript is disabled
Status: Beta
Brought to you by:
pmontrasio
The popup window for the images doesn't resize when
resize from Javascript is disabled in the browser.
Browser: Firefox 1.0.6
Tools / Options / Web Features / Enablae Java Scripts /
Advanced / Move or Resize existing windows is disabled
The image loads correctly but the popup doesn't resize
and it cannot be resized manually.
Logged In: YES
user_id=1326316
A possible fix is:
1) load the image in the background
2) display a popup window with a progress bar to provide
feedback to users
3) when the image is loaded, get its width and height and
open a popup with the correct size
4) load the image into it
Disadvantages:
1) disabling resize from Javascript isn't the default
setting and people with the default setting will be
penalized because they can't see the image being loaded
progressively. The subjective application response time will
be slowed down.
To prevent that it would be nice to be able to check the
resize capability, maybe opening a popup, resizing it and
checking if it changed its size.
Logged In: YES
user_id=1326316
This is how the resize capability can be tested in Firefox
and probably all the Mozilla browsers.
Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null).getBoolPref("dom.disable_window_move_resize")
See code at
http://lxr.mozilla.org/seamonkey/source/extensions/pref/autoconfig/src/prefcalls.js