Changeset 100621 in webkit
- Timestamp:
- Nov 17, 2011 7:38:14 AM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r100617 r100621 1 2011-11-17 Kenneth Rohde Christiansen <kenneth@webkit.org> 2 3 Print warning for the Qt port when a process crashes and is relaunched 4 https://bugs.webkit.org/show_bug.cgi?id=72607 5 6 Reviewed by Antonio Gomes. 7 8 Make the QtViewInterface::processDidCrash take a URL string argument, 9 for being able to say which url was the origin of the crash. 10 11 We now additionally store the load state and url at process exit. This 12 is needed for printing the warning and for further crash handling. 13 14 * UIProcess/PageClient.h: 15 * UIProcess/WebPageProxy.cpp: 16 (WebKit::WebPageProxy::processDidCrash): 17 * UIProcess/qt/QtViewInterface.cpp: 18 (WebKit::QtViewInterface::processDidCrash): 19 (WebKit::QtViewInterface::didRelaunchProcess): 20 * UIProcess/qt/QtViewInterface.h: 21 * UIProcess/qt/QtWebPageProxy.cpp: 22 (QtWebPageProxy::processDidCrash): 23 * UIProcess/qt/QtWebPageProxy.h: 24 1 25 2011-11-17 Alexis Menard <alexis.menard@openbossa.org> 2 26 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r100534 r100621 151 151 , m_isVisible(m_pageClient->isViewVisible()) 152 152 , m_backForwardList(WebBackForwardList::create(this)) 153 , m_loadStateAtProcessExit(WebFrameProxy::LoadStateFinished) 153 154 , m_textZoomFactor(1) 154 155 , m_pageZoomFactor(1) … … 3078 3079 m_isValid = false; 3079 3080 3081 if (m_mainFrame) { 3082 m_urlAtProcessExit = m_mainFrame->url(); 3083 m_loadStateAtProcessExit = m_mainFrame->loadState(); 3084 } 3085 3080 3086 m_mainFrame = nullptr; 3081 3087 m_drawingArea = nullptr; -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r100534 r100621 513 513 514 514 bool isValid(); 515 515 516 const String& urlAtProcessExit() const { return m_urlAtProcessExit; } 517 WebFrameProxy::LoadState loadStateAtProcessExit() const { return m_loadStateAtProcessExit; } 518 516 519 WebCore::DragSession dragSession() const { return m_currentDragSession; } 517 520 void resetDragOperation() { m_currentDragSession = WebCore::DragSession(); } … … 877 880 String m_toolTip; 878 881 882 String m_urlAtProcessExit; 883 WebFrameProxy::LoadState m_loadStateAtProcessExit; 884 879 885 EditorState m_editorState; 880 886 -
trunk/Source/WebKit2/UIProcess/qt/QtViewInterface.cpp
r100602 r100621 215 215 } 216 216 217 void QtViewInterface::processDidCrash() 218 { 219 // FIXME 217 void QtViewInterface::processDidCrash(const QUrl& url) 218 { 219 qWarning("WARNING: The web process experienced a crash on '%s'.", qPrintable(url.toString(QUrl::RemoveUserInfo))); 220 220 221 } 221 222 222 223 void QtViewInterface::didRelaunchProcess() 223 224 { 224 // FIXME225 qWarning("WARNING: The web process has been successfully restarted."); 225 226 } 226 227 -
trunk/Source/WebKit2/UIProcess/qt/QtViewInterface.h
r100590 r100621 96 96 virtual QString runJavaScriptPrompt(const QString&, const QString& defaultValue, bool& ok); 97 97 98 virtual void processDidCrash( );98 virtual void processDidCrash(const QUrl&); 99 99 virtual void didRelaunchProcess(); 100 100 -
trunk/Source/WebKit2/UIProcess/qt/QtWebPageProxy.cpp
r100617 r100621 670 670 m_pinchGestureRecognizer.reset(); 671 671 m_tapGestureRecognizer.reset(); 672 m_viewInterface->processDidCrash(); 672 673 WebCore::KURL url(WebCore::ParsedURLString, m_webPageProxy->urlAtProcessExit()); 674 m_viewInterface->processDidCrash(QUrl(url)); 673 675 } 674 676
Note: See TracChangeset
for help on using the changeset viewer.