Closed
Bug 442382
Opened 17 years ago
Closed 9 years ago
When resizing triggers a Javascript alert, FF forgets the resize action until alert is closed.
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ericvicenti, Unassigned)
References
()
Details
(Keywords: regression, testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
When viewing a page where an alert is triggered while resizing the page, after clicking ok on the alert, the next place you click (presumably inside the browser) is where the drag will complete.
Reproducible: Always
Steps to Reproduce:
1.View the url shown
2.Resize the browser
3.Click OK on the alert
4.Click anywhere inside the browser
Actual Results:
You end up in a very obnoxious loop of resizing the window again and again unintentionally.
Expected Results:
After you click OK in the alert, the browser should behave normally instead of continuing to resize the window.
Comment 1•17 years ago
|
||
Confirmed on Windows XP with latest trunk build (although it's not a loop here but one more extra resize). Regression range is
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1204024200&maxdate=1204034219
With two bugs in it: Bug 411054 and Bug 389931.
Blocks: 389931
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression,
testcase
OS: Mac OS X → All
Product: Firefox → Core
QA Contact: general → general
Hardware: Macintosh → All
Version: unspecified → Trunk
I made script javascript with jquery for firefox:
Example code HTML:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
$(window).resize(function(){
alert("X:"+$(window).width()+" Y:"+$(window).height());
});
</script>
</head>
<body></body>
</html>
About resize window with call alert the graphical interface fell ! No crashed.
Comment 5•13 years ago
|
||
FWIW, I have been able to consistently create a somehow hung Firefox 8.0 (or GUI incompletely painted) under Kubuntu 11.10 which lead to a crash when trying to close the application. Mozilla crash reporter application was brought up and I entered the data about it. My test page is:
http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/Bug278067-multiple-alert-cause-crash.html
which is quite similar to
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onresize
Just because of that particular nasty effect, resize events should probably be only fired on resizeend or when mouse stop moving (see bug 460620).
regards, Gérard
Comment 6•9 years ago
|
||
Not reproducible with latest Nightly using the url given and script in comment 4.
Considering this, I will mark this issue as Resolved-WORKSFORME. If anyone can still reproduce it, feel free to reopen the issue and provide more information. Thanks
--
Version 48.0a1
Build ID 20160422030223
Update Channel nightly
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•