[Webkit-unassigned] [Bug 27481] onbeforeunload not called at window close + frame or iframe focused
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 5 12:22:52 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=27481
--- Comment #6 from Charles Reis <creis at chromium.org> 2010-02-05 12:22:49 PST ---
Created an attachment (id=48247)
--> (https://bugs.webkit.org/attachment.cgi?id=48247)
Attempted layout test
I did try to write a layout test for this (based on the other unload tests)
before uploading the patch, and I've attached it here. It does use
setCanOpenWindows and setCloseRemaningWindowsWhenComplete.
I was never able to get the test to reproduce the bug, though. Calling
window.close() or navigating won't trigger the bug-- the window has to be
closed via the WebView. The closest thing I saw was
layoutTestController.setCallCloseOnWebViews(), but I didn't see a way to close
the window with that during the test, at a point when the resulting alert would
still show up in the output.
I could adapt this test to go into WebCore/manual-tests, or I could try to add
a way to directly close a particular WebView to layoutTestController. Not sure
if that's useful in other tests, though. Thoughts?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list