LayoutTests:
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jun 2006 22:21:34 +0000 (22:21 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jun 2006 22:21:34 +0000 (22:21 +0000)
        Test case by Anders, reviewed and tweaked by Maciej.

        - fixed <rdar://problem/4586051> 10.4.7 regression: 'Saved and recent' button on mapquest.com does not work

        * fast/events/window-load-capture.html: Added.

WebCore:

        Reviewed by Anders.

        - fixed <rdar://problem/4586051> 10.4.7 regression: 'Saved and recent' button on mapquest.com does not work

        * dom/EventTargetNode.cpp:
        (WebCore::EventTargetNode::dispatchWindowEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14865 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/events/window-load-capture.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/EventTargetNode.cpp

index a9aa5d99f9b5dcf7c908309063feb538ffd7739a..c5b1cefcce87f6c682f5f17b7bf8abce23dace6a 100644 (file)
@@ -1,3 +1,11 @@
+2006-06-14  Maciej Stachowiak  <mjs@apple.com>
+
+        Test case by Anders, reviewed and tweaked by Maciej.
+        
+        - fixed <rdar://problem/4586051> 10.4.7 regression: 'Saved and recent' button on mapquest.com does not work
+        
+        * fast/events/window-load-capture.html: Added.
+
 2006-06-13  Geoffrey Garen  <ggaren@apple.com>
 
         Test for createHTMLDocument.
diff --git a/LayoutTests/fast/events/window-load-capture.html b/LayoutTests/fast/events/window-load-capture.html
new file mode 100644 (file)
index 0000000..273fb7c
--- /dev/null
@@ -0,0 +1,15 @@
+<html>
+<head>
+<script>
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+
+function windowEventHandler() { document.getElementById("result").innerHTML = "PASS!"; }
+window.addEventListener('load', windowEventHandler, true)
+</script>
+</head>
+<body>
+Capturing load event listeners on the window should fire. This test checks if they do.<br>
+<span id="result">FAIL!</span>
+</body>
+</html>
index 4139b8f46c0883baa43cf65121531e68b64cb2e6..a4e44c9005a69e8a77b54060163985380296721f 100644 (file)
@@ -1,3 +1,12 @@
+2006-06-14  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Anders.
+
+        - fixed <rdar://problem/4586051> 10.4.7 regression: 'Saved and recent' button on mapquest.com does not work
+
+        * dom/EventTargetNode.cpp:
+        (WebCore::EventTargetNode::dispatchWindowEvent):
+
 2006-06-14  David Hyatt  <hyatt@apple.com>
 
         Rename RenderSlider to DeprecatedSlider, so that I can start work on
index 0a6166033a6fd67bc07112d4117a4cc92492fc8b..5c52c5bb2094573a0df567996cc6ad5dc967b2f4 100644 (file)
@@ -309,6 +309,7 @@ void EventTargetNode::dispatchWindowEvent(const AtomicString &eventType, bool ca
     RefPtr<Event> evt = new Event(eventType, canBubbleArg, cancelableArg);
     RefPtr<Document> doc = document();
     evt->setTarget(doc.get());
+    doc->handleWindowEvent(evt.get(), true);
     doc->handleWindowEvent(evt.get(), false);
     
     if (eventType == loadEvent) {