MozillaZine

Onresize script causes continuous reload of browser window

Talk about Mozilla browsers for small devices such as PDAs and cellphones.
scp-pyhton
 
Posts: 2
Joined: August 4th, 2017, 7:08 pm

Post Posted August 4th, 2017, 7:29 pm

I have an onresize script that reloads the browser content when the browser is resized so it fits the window. It works fine in the desktop version of Firefox (V54.0.1) and also with other browsers such as Chrome - both the desktop and mobile versions. However, it causes the mobile version of Firefox (v. 54.0.1 on Samsung Galaxy S6) to continuously reload the browser window.
The doctype is 4.01 Transitional. The script is loaded from the body tag - eg; body onresize="winResize()" and the script is simply:
function winResize() {
location.href=location.href;
}

Would be grateful for any pointers. Btw - I know onresize is a html5 tag and the doctype specified is otherwise but the script works with all except the mobile version of Firefox

kbrosnan
 
Posts: 498
Joined: October 23rd, 2003, 8:32 pm

Post Posted August 12th, 2017, 10:18 am

This would be best filed as a bug at https://bugzilla.mozilla.org/enter_bug. ... %20Android submitting a full example of the page that is causing the problem would be best. As would be testing with the Nightly build of Firefox for Android at https://play.google.com/store/apps/deta ... nec_aurora

Return to Mobile


Who is online

Users browsing this forum: No registered users and 1 guest