Changeset 287786 in webkit
- Timestamp:
- Jan 7, 2022, 2:46:50 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Inspector/WebInspectorUIProxy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r287782 r287786 1 2022-01-07 Patrick Angle <pangle@apple.com> 2 3 REGRESSION(r286498): Web Inspector: Inspector^2 fails to load in release builds and crashes with an assertion in debug builds 4 https://bugs.webkit.org/show_bug.cgi?id=234968 5 6 Reviewed by Devin Rousso. 7 8 Inspector^2 would fail to open a local inspector frontend because m_inspectedPageIdentifier was not set before 9 it was used in `WebInspectorUIProxy::createFrontendPage`. To correct this, we now cache the inspected page 10 identifier immediately upon creating the WebInspectorUIProxy, instead of only in 11 `WebInspectorUIProxy::updateForNewPageProcess`. This also allows us to use the cached identifier in 12 `WebInspectorUIProxy::openLocalInspectorFrontend` as discussed in <http://webkit.org/b/233293#c5>. 13 14 * UIProcess/Inspector/WebInspectorUIProxy.cpp: 15 (WebKit::WebInspectorUIProxy::WebInspectorUIProxy): 16 (WebKit::WebInspectorUIProxy::openLocalInspectorFrontend): 17 1 18 2022-01-07 Said Abou-Hallawa <said@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/Inspector/WebInspectorUIProxy.cpp
r286772 r287786 68 68 : m_inspectedPage(&inspectedPage) 69 69 , m_inspectorClient(makeUnique<API::InspectorClient>()) 70 , m_inspectedPageIdentifier(inspectedPage.identifier()) 70 71 #if PLATFORM(MAC) 71 72 , m_closeFrontendAfterInactivityTimer(RunLoop::main(), this, &WebInspectorUIProxy::closeFrontendAfterInactivityTimerFired) … … 449 450 return; 450 451 451 m_inspectorPage->send(Messages::WebInspectorUI::EstablishConnection(m_inspectedPage ->identifier(), infoForLocalDebuggable(), m_underTest, inspectionLevel()));452 m_inspectorPage->send(Messages::WebInspectorUI::EstablishConnection(m_inspectedPageIdentifier, infoForLocalDebuggable(), m_underTest, inspectionLevel())); 452 453 453 454 ASSERT(!m_isActiveFrontend);
Note:
See TracChangeset
for help on using the changeset viewer.