Title: [118438] trunk/Source/WebKit/blackberry
Revision
118438
Author
[email protected]
Date
2012-05-24 15:37:45 -0700 (Thu, 24 May 2012)

Log Message

[BlackBerry] InputHandler can hold a ref on an object when document is cleared.
https://bugs.webkit.org/show_bug.cgi?id=87412

Reviewed by Rob Buis.

PR 145234.

When the document data is cleared, notify the InputHandler
of the associated frame being unloaded.

Reviewed Internally by Nima Ghanavatian.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::clearDocumentData):

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (118437 => 118438)


--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2012-05-24 22:33:27 UTC (rev 118437)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2012-05-24 22:37:45 UTC (rev 118438)
@@ -2385,6 +2385,9 @@
     if (m_inRegionScrollStartingNode && m_inRegionScrollStartingNode->document() == documentGoingAway)
         m_inRegionScrollStartingNode = 0;
 
+    if (documentGoingAway->frame())
+        m_inputHandler->frameUnloaded(documentGoingAway->frame());
+
     Node* nodeUnderFatFinger = m_touchEventHandler->lastFatFingersResult().node();
     if (nodeUnderFatFinger && nodeUnderFatFinger->document() == documentGoingAway)
         m_touchEventHandler->resetLastFatFingersResult();

Modified: trunk/Source/WebKit/blackberry/ChangeLog (118437 => 118438)


--- trunk/Source/WebKit/blackberry/ChangeLog	2012-05-24 22:33:27 UTC (rev 118437)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-05-24 22:37:45 UTC (rev 118438)
@@ -1,3 +1,20 @@
+2012-05-24  Mike Fenton  <[email protected]>
+
+        [BlackBerry] InputHandler can hold a ref on an object when document is cleared.
+        https://bugs.webkit.org/show_bug.cgi?id=87412
+
+        Reviewed by Rob Buis.
+
+        PR 145234.
+
+        When the document data is cleared, notify the InputHandler
+        of the associated frame being unloaded.
+
+        Reviewed Internally by Nima Ghanavatian.
+
+        * Api/WebPage.cpp:
+        (BlackBerry::WebKit::WebPagePrivate::clearDocumentData):
+
 2012-05-24  Crystal Zhang  <[email protected]>
 
         [BlackBerry] Implement select popup and remove old hook to air popup
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to