REGRESSION (r146956): ASSERTion failure: WebKit::WebProcess::pageWillLeaveWindow
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Apr 2013 00:39:36 +0000 (00:39 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Apr 2013 00:39:36 +0000 (00:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114481
<rdar://problem/13534784>

Reviewed by Simon Fraser.

Inform the WebProcess of WebPages which are already in a window when created.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/WebPage.cpp

index 662aa29..a27c30e 100644 (file)
@@ -1,3 +1,16 @@
+2013-04-11  Tim Horton  <timothy_horton@apple.com>
+
+        REGRESSION (r146956): ASSERTion failure: WebKit::WebProcess::pageWillLeaveWindow
+        https://bugs.webkit.org/show_bug.cgi?id=114481
+        <rdar://problem/13534784>
+
+        Reviewed by Simon Fraser.
+
+        Inform the WebProcess of WebPages which are already in a window when created.
+
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::WebPage):
+
 2013-04-11  Anders Carlsson  <andersca@apple.com>
 
         Add support for clearing storage areas
index 23ed8fb..66057e8 100644 (file)
@@ -370,6 +370,8 @@ WebPage::WebPage(uint64_t pageID, const WebPageCreationParameters& parameters)
     // Page defaults to in-window, but setIsInWindow depends on it being a valid indicator of actually having been put into a window.
     if (!parameters.isInWindow)
         m_page->setIsInWindow(false);
+    else
+        WebProcess::shared().pageDidEnterWindow(this);
 
     setIsInWindow(parameters.isInWindow);