Closed Bug 77321 Opened 23 years ago Closed 23 years ago

page keeps reloading because of Event.RESIZE or window.onresize

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: bugzilla, Assigned: joki)

References

()

Details

(Keywords: dom0, dom2, Whiteboard: [fixinhand])

Attachments

(2 files)

if you go to:
http://www.telia.dk/faste_fordele/
the page keeps reloading.

it's because of the javascript in the page which uses 
window.captureEvents(Event.RESIZE)
This could be related to the bug 77439.
*** Bug 77691 has been marked as a duplicate of this bug. ***
*** Bug 79342 has been marked as a duplicate of this bug. ***
*** Bug 79389 has been marked as a duplicate of this bug. ***
*** Bug 79438 has been marked as a duplicate of this bug. ***
Assignee: asa → joki
Component: Browser-General → DOM Events
QA Contact: doronr → vladimire
updating component.
*** Bug 78743 has been marked as a duplicate of this bug. ***
This was not a problem in 0.8.1.  Adding window.onresize to summary to try to
reduce the number of duplicates.
Summary: page keeps reloading because of Event.RESIZE → page keeps reloading because of Event.RESIZE or window.onresize
Adding dom0 and dom2 keywords.  Is this only a problem with sites using frames
and iframes?  My testcase for bug 79438 shows this bug with an iframe.
Keywords: dom0, dom2
*** Bug 79687 has been marked as a duplicate of this bug. ***
Attached file testcase
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
Attached patch proposed patchSplinter Review
Appart from the weird indentation:

@@ -2729,7 +2731,7 @@
     nsIRenderingContext*  rcx = nsnull;
 
     nsresult rv=CreateRenderingContext(rootFrame, &rcx);
-
if (NS_FAILED(rv)) return rv;
+
  if (NS_FAILED(rv)) return rv;
 
     nsHTMLReflowState reflowState(mPresContext, rootFrame,
                                   eReflowReason_Resize, rcx, maxSize);

these changes look good to me, sr=jst
*** Bug 77437 has been marked as a duplicate of this bug. ***
*** Bug 77500 has been marked as a duplicate of this bug. ***
OK:
<html><head><title></title></head>
<body onresize="reload()">test</body></html>

Always reloads:
<html><head><title></title></head>
<body onresize="location.reload()">test</body></html>
r=vidur
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 79265 has been marked as a duplicate of this bug. ***
Verifying fixed with build 2001-05-25-09-trunk windows 98
Status: RESOLVED → VERIFIED
*** Bug 83455 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: