[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.20-204-g221d8e8

ukai at chromium.org ukai at chromium.org
Wed Feb 10 22:12:00 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit a2aafc690a6e9185b01abfac2a4099882a64aa6c
Author: ukai at chromium.org <ukai at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Feb 4 07:26:28 2010 +0000

    2010-02-03  Fumitoshi Ukai  <ukai at chromium.org>
    
            Reviewed by Alexey Proskuryakov.
    
            navigating a frame to new location closes websocket in the frame
            https://bugs.webkit.org/show_bug.cgi?id=34557
    
            * websocket/tests/close-on-navigate-new-location-expected.txt: Added.
            * websocket/tests/close-on-navigate-new-location.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54324 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 5bff8b4..fa1e006 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,13 @@
+2010-02-03  Fumitoshi Ukai  <ukai at chromium.org>
+
+        Reviewed by Alexey Proskuryakov.
+
+        navigating a frame to new location closes websocket in the frame
+        https://bugs.webkit.org/show_bug.cgi?id=34557
+
+        * websocket/tests/close-on-navigate-new-location-expected.txt: Added.
+        * websocket/tests/close-on-navigate-new-location.html: Added.
+
 2010-02-03  Brady Eidson  <beidson at apple.com>
 
         Reviewed by Alexey Proskuryakov.
diff --git a/LayoutTests/websocket/tests/close-on-navigate-new-location-expected.txt b/LayoutTests/websocket/tests/close-on-navigate-new-location-expected.txt
new file mode 100644
index 0000000..176427e
--- /dev/null
+++ b/LayoutTests/websocket/tests/close-on-navigate-new-location-expected.txt
@@ -0,0 +1,12 @@
+Test if Web Socket is closed when navigating to new location.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS ws on master document is ready.
+PASS insert a iframe, where open ws called 'socket1'
+PASS 'socket1' is sent to the server. navigate to new location. expect receiving 'socket1' on ws...
+PASS closedSocket is "socket1"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/websocket/tests/close-on-navigate-new-location.html b/LayoutTests/websocket/tests/close-on-navigate-new-location.html
new file mode 100644
index 0000000..a662b70
--- /dev/null
+++ b/LayoutTests/websocket/tests/close-on-navigate-new-location.html
@@ -0,0 +1,57 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../fast/js/resources/js-test-post-function.js"></script>
+</head>
+<body>
+<div id="description"></div>
+<div id="console"></div>
+<script type="text/javascript">
+description("Test if Web Socket is closed when navigating to new location.");
+
+if (window.layoutTestController)
+    layoutTestController.waitUntilDone();
+
+var frameDiv;
+var closedSocket;
+
+function endTest()
+{
+    shouldBe("closedSocket", '"socket1"');
+    isSuccessfullyParsed();
+    if (window.layoutTestController)
+        layoutTestController.notifyDone();
+};
+
+var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/close-on-unload");
+ws.onopen = function()
+{
+    debug("PASS ws on master document is ready.");
+    frameDiv = document.createElement("iframe");
+    frameDiv.src = "resources/close-on-unload-iframe.html";
+    document.body.appendChild(frameDiv);
+    debug("PASS insert a iframe, where open ws called 'socket1'");
+};
+ws.onmessage = function(evt)
+{
+    closedSocket = evt.data;
+    ws.close();
+};
+ws.onclose = function()
+{
+    endTest();
+};
+
+document.iframeReady = function()
+{
+    debug("PASS 'socket1' is sent to the server. navigate to new location. expect receiving 'socket1' on ws...");
+    frameDiv.src = "handler_map.txt";
+};
+
+var successfullyParsed = true;
+</script>
+
+</body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list