[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

steveblock at google.com steveblock at google.com
Wed Dec 22 14:37:47 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 99e0305805796dc54fdaa98d6a17f7afcc58f48f
Author: steveblock at google.com <steveblock at google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Oct 14 14:14:19 2010 +0000

    2010-10-14  Steve Block  <steveblock at google.com>
    
            Reviewed by Jeremy Orlow.
    
            DeviceOrientation crash when page is in page cache and is navigated while listener is registered
            https://bugs.webkit.org/show_bug.cgi?id=47257
    
            This crash is avoided now that pages using DeviceOrientation are not put in
            the page cache. See https://bugs.webkit.org/show_bug.cgi?id=47408.
    
            This test serves to document the fact that the underlying problem needs to
            be addressed before the page cache is enabled for DeviceOrientation.
    
            * fast/dom/DeviceOrientation/event-after-navigation-expected.txt: Added.
            * fast/dom/DeviceOrientation/event-after-navigation.html: Added.
            * fast/dom/DeviceOrientation/resources/event-after-navigation-new.html: Added.
            * fast/dom/DeviceOrientation/script-tests/event-after-navigation.js: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69764 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index e1a5e16..62d05ac 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,21 @@
+2010-10-14  Steve Block  <steveblock at google.com>
+
+        Reviewed by Jeremy Orlow.
+
+        DeviceOrientation crash when page is in page cache and is navigated while listener is registered
+        https://bugs.webkit.org/show_bug.cgi?id=47257
+
+        This crash is avoided now that pages using DeviceOrientation are not put in
+        the page cache. See https://bugs.webkit.org/show_bug.cgi?id=47408.
+
+        This test serves to document the fact that the underlying problem needs to
+        be addressed before the page cache is enabled for DeviceOrientation.
+
+        * fast/dom/DeviceOrientation/event-after-navigation-expected.txt: Added.
+        * fast/dom/DeviceOrientation/event-after-navigation.html: Added.
+        * fast/dom/DeviceOrientation/resources/event-after-navigation-new.html: Added.
+        * fast/dom/DeviceOrientation/script-tests/event-after-navigation.js: Added.
+
 2010-10-14  Hayato Ito  <hayato at chromium.org>
 
         Unreviewed, build fix.
diff --git a/LayoutTests/fast/dom/DeviceOrientation/event-after-navigation-expected.txt b/LayoutTests/fast/dom/DeviceOrientation/event-after-navigation-expected.txt
new file mode 100644
index 0000000..8e6bc39
--- /dev/null
+++ b/LayoutTests/fast/dom/DeviceOrientation/event-after-navigation-expected.txt
@@ -0,0 +1,3 @@
+Tests for a crash where an event is fired after the page has been navigated away when the original page is in the page cache.
+
+SUCCESS
diff --git a/LayoutTests/fast/dom/DeviceOrientation/event-after-navigation.html b/LayoutTests/fast/dom/DeviceOrientation/event-after-navigation.html
new file mode 100644
index 0000000..ced3703
--- /dev/null
+++ b/LayoutTests/fast/dom/DeviceOrientation/event-after-navigation.html
@@ -0,0 +1,12 @@
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/event-after-navigation.js"></script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/fast/dom/DeviceOrientation/resources/event-after-navigation-new.html b/LayoutTests/fast/dom/DeviceOrientation/resources/event-after-navigation-new.html
new file mode 100644
index 0000000..157e050
--- /dev/null
+++ b/LayoutTests/fast/dom/DeviceOrientation/resources/event-after-navigation-new.html
@@ -0,0 +1,15 @@
+<html>
+  <head>
+  </head>
+  <body>
+    Tests for a crash where an event is fired after the page has been navigated
+    away when the original page is in the page cache.<br><br>
+    SUCCESS
+    <script>
+      if (window.layoutTestController) {
+          layoutTestController.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3);
+          layoutTestController.notifyDone();
+      }
+    </script>
+  </body>
+</html>
diff --git a/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js b/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js
new file mode 100644
index 0000000..2756e55
--- /dev/null
+++ b/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js
@@ -0,0 +1,12 @@
+description('Tests for a crash where an event is fired after the page has been navigated away when the original page is in the page cache.');
+
+if (window.layoutTestController)
+    layoutTestController.overridePreference('WebKitUsesPageCachePreferenceKey', 1);
+else
+    debug('This test can not be run without the LayoutTestController');
+
+window.addEventListener('deviceorientation', function() { } );
+window.location = "resources/event-after-navigation-new.html";
+
+window.jsTestIsAsync = true;
+window.successfullyParsed = true;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list