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

jschuh at chromium.org jschuh at chromium.org
Wed Dec 22 11:34:27 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit f6e9086779f62b6545a328f7aec7381edbfd57ce
Author: jschuh at chromium.org <jschuh at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jul 29 18:11:09 2010 +0000

    2010-07-28  Justin Schuh  <jschuh at chromium.org>
    
            Reviewed by Nate Chapin.
    
            Clear PluginData's page pointer on Page destruction
            https://bugs.webkit.org/show_bug.cgi?id=43147
    
            Test: plugins/access-after-page-destroyed.html
    
            * page/Page.cpp:
            (WebCore::Page::~Page):
    2010-07-28  Justin Schuh  <jschuh at chromium.org>
    
            Reviewed by Nate Chapin.
    
            Clear PluginData's page pointer on Page destruction
            https://bugs.webkit.org/show_bug.cgi?id=43147
    
            * plugins/access-after-page-destroyed-expected.txt: Added.
            * plugins/access-after-page-destroyed.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64293 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index b29bb81..aa5cdf6 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,13 @@
+2010-07-28  Justin Schuh  <jschuh at chromium.org>
+
+        Reviewed by Nate Chapin.
+
+        Clear PluginData's page pointer on Page destruction
+        https://bugs.webkit.org/show_bug.cgi?id=43147
+
+        * plugins/access-after-page-destroyed-expected.txt: Added.
+        * plugins/access-after-page-destroyed.html: Added.
+
 2010-07-29  Jeremy Orlow  <jorlow at chromium.org>
 
         Rebaseline 2 tests that are actually a bit distinct from mac (because of fonts).
diff --git a/LayoutTests/plugins/access-after-page-destroyed-expected.txt b/LayoutTests/plugins/access-after-page-destroyed-expected.txt
new file mode 100644
index 0000000..735404e
--- /dev/null
+++ b/LayoutTests/plugins/access-after-page-destroyed-expected.txt
@@ -0,0 +1 @@
+If the page does not trigger a crash the test passed.
diff --git a/LayoutTests/plugins/access-after-page-destroyed.html b/LayoutTests/plugins/access-after-page-destroyed.html
new file mode 100644
index 0000000..447461d
--- /dev/null
+++ b/LayoutTests/plugins/access-after-page-destroyed.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+<script>
+if (window.layoutTestController) {
+    layoutTestController.setCanOpenWindows();
+    layoutTestController.dumpAsText();
+    layoutTestController.waitUntilDone();
+}
+
+var w = open();
+var p = w.navigator.mimeTypes.item(0);
+w.close();
+w = null;
+
+setTimeout(function(){
+    p.enabledPlugin;
+    if (window.layoutTestController)
+        layoutTestController.notifyDone();
+}, 50); // Pause is necessary for the page to get freed
+
+</script>
+</head>
+<body>
+If the page does not trigger a crash the test passed.
+</body>
+</html>
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index bf0f375..7fa1e01 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-07-28  Justin Schuh  <jschuh at chromium.org>
+
+        Reviewed by Nate Chapin.
+
+        Clear PluginData's page pointer on Page destruction
+        https://bugs.webkit.org/show_bug.cgi?id=43147
+
+        Test: plugins/access-after-page-destroyed.html
+
+        * page/Page.cpp:
+        (WebCore::Page::~Page):
+
 2010-07-29  Simon Fraser  <simon.fraser at apple.com>
 
         Reviewed by Pavel Feldman.
diff --git a/WebCore/page/Page.cpp b/WebCore/page/Page.cpp
index 4578648..f39d786 100644
--- a/WebCore/page/Page.cpp
+++ b/WebCore/page/Page.cpp
@@ -201,6 +201,9 @@ Page::~Page()
         frame->pageDestroyed();
 
     m_editorClient->pageDestroyed();
+    if (m_pluginData)
+        m_pluginData->disconnectPage();
+    
 #if ENABLE(INSPECTOR)
     m_inspectorController->inspectedPageDestroyed();
 #endif

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list