Changeset 70696 in webkit
- Timestamp:
- Oct 27, 2010 1:10:20 PM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r70687 r70696 1 2010-10-27 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WebPageProxy::isValid should return false if the page has been explicitly closed 6 https://bugs.webkit.org/show_bug.cgi?id=48458 7 8 * UIProcess/WebPageProxy.cpp: 9 (WebKit::WebPageProxy::WebPageProxy): 10 (WebKit::WebPageProxy::isValid): 11 (WebKit::WebPageProxy::relaunch): 12 (WebKit::WebPageProxy::close): 13 (WebKit::WebPageProxy::processDidCrash): 14 * UIProcess/WebPageProxy.h: 15 (WebKit::WebPageProxy::isClosed): 16 1 17 2010-10-27 Anders Carlsson <andersca@apple.com> 2 18 -
trunk/WebKit2/UIProcess/WebPageProxy.cpp
r70676 r70696 84 84 , m_textZoomFactor(1) 85 85 , m_pageZoomFactor(1) 86 , m_ valid(true)87 , m_ closed(false)86 , m_isValid(true) 87 , m_isClosed(false) 88 88 , m_pageID(pageID) 89 89 { … … 107 107 bool WebPageProxy::isValid() 108 108 { 109 return m_valid; 109 // A page that has been explicitly closed is never valid. 110 if (m_isClosed) 111 return false; 112 113 return m_isValid; 110 114 } 111 115 … … 150 154 void WebPageProxy::relaunch() 151 155 { 152 m_ valid = true;156 m_isValid = true; 153 157 m_pageNamespace->context()->relaunchProcessIfNecessary(); 154 158 m_pageNamespace->process()->addExistingWebPage(this, m_pageID); … … 182 186 return; 183 187 184 m_ closed = true;188 m_isClosed = true; 185 189 186 190 process()->disconnectFramesFromPage(this); … … 1207 1211 ASSERT(m_pageClient); 1208 1212 1209 m_ valid = false;1213 m_isValid = false; 1210 1214 1211 1215 if (m_mainFrame) -
trunk/WebKit2/UIProcess/WebPageProxy.h
r70676 r70696 125 125 void close(); 126 126 bool tryClose(); 127 bool isClosed() const { return m_ closed; }127 bool isClosed() const { return m_isClosed; } 128 128 129 129 void loadURL(const String&); … … 363 363 double m_pageZoomFactor; 364 364 365 bool m_valid; 366 bool m_closed; 365 // If the process backing the web page is alive and kicking. 366 bool m_isValid; 367 368 // Whether WebPageProxy::close() has been called on this page. 369 bool m_isClosed; 367 370 368 371 uint64_t m_pageID;
Note: See TracChangeset
for help on using the changeset viewer.