[Webkit-unassigned] [Bug 19418] New: onbeforeunload is broken for framesets
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 6 16:00:55 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=19418
Summary: onbeforeunload is broken for framesets
Product: WebKit
Version: 525.x (Safari 3.1)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Major
Priority: P1
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bedney at technicalpursuit.com
Folks -
Even though the IE documentation for onbeforeunload (since there's no real W3C
standard for this event, we go by their stuff) says that onbeforeunload should
work on 'frameset's as well as 'body's, ever since Safari 3.1 (on both Windows
and Mac), this has been broken.
I've attached two testcase files - one is the frameset file and the other is
the framecontent file. If you launch the frameset file and click the link
(which is contained in the frame content file), you are immediately navigated
to Google, which is incorrect - the onbeforeunload dialog box should stop you
first. Curiously enough, if you try to return to the test page from Google by
hitting the back button, you get the frameset's onbeforeunload message then -
but its too late.
Note that if you load the frame content file directly and then try to click the
link to go to Google, you get the proper behavior which is to present the
onbeforeunload dialog box *before* you navigate to Google.
Marking this as P1 / Major since data loss could result from a loss of state in
the client (prevelant amongst AJAX applications).
Cheers,
- Bill
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list