Title: [244418] trunk/Source/WebKit
- Revision
- 244418
- Author
- [email protected]
- Date
- 2019-04-17 20:43:53 -0700 (Wed, 17 Apr 2019)
Log Message
Web Inspector: InspectorFrontendHost::inspectionLevel returns wrong value for inspector3
https://bugs.webkit.org/show_bug.cgi?id=197044
Reviewed by Joseph Pecoraro.
* UIProcess/WebInspectorUtilities.h:
* UIProcess/WebInspectorUtilities.cpp:
(WebKit::trackInspectorPage):
(WebKit::untrackInspectorPage):
Determine the level of the inspector page by looking to see if the page being inspected is
in the inspector page map. If so, we must be inspecting an inspector page and should use
that inspector page's inspection level as the value to increment.
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::createFrontendPage):
* UIProcess/RemoteWebInspectorProxy.cpp:
(WebKit::RemoteWebInspectorProxy::createFrontendPageAndWindow):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (244417 => 244418)
--- trunk/Source/WebKit/ChangeLog 2019-04-18 01:16:09 UTC (rev 244417)
+++ trunk/Source/WebKit/ChangeLog 2019-04-18 03:43:53 UTC (rev 244418)
@@ -1,3 +1,23 @@
+2019-04-17 Devin Rousso <[email protected]>
+
+ Web Inspector: InspectorFrontendHost::inspectionLevel returns wrong value for inspector3
+ https://bugs.webkit.org/show_bug.cgi?id=197044
+
+ Reviewed by Joseph Pecoraro.
+
+ * UIProcess/WebInspectorUtilities.h:
+ * UIProcess/WebInspectorUtilities.cpp:
+ (WebKit::trackInspectorPage):
+ (WebKit::untrackInspectorPage):
+ Determine the level of the inspector page by looking to see if the page being inspected is
+ in the inspector page map. If so, we must be inspecting an inspector page and should use
+ that inspector page's inspection level as the value to increment.
+
+ * UIProcess/WebInspectorProxy.cpp:
+ (WebKit::WebInspectorProxy::createFrontendPage):
+ * UIProcess/RemoteWebInspectorProxy.cpp:
+ (WebKit::RemoteWebInspectorProxy::createFrontendPageAndWindow):
+
2019-04-17 Tim Horton <[email protected]>
Adopt different scroll view flashing SPI
Modified: trunk/Source/WebKit/UIProcess/RemoteWebInspectorProxy.cpp (244417 => 244418)
--- trunk/Source/WebKit/UIProcess/RemoteWebInspectorProxy.cpp 2019-04-18 01:16:09 UTC (rev 244417)
+++ trunk/Source/WebKit/UIProcess/RemoteWebInspectorProxy.cpp 2019-04-18 03:43:53 UTC (rev 244418)
@@ -150,7 +150,7 @@
m_inspectorPage = platformCreateFrontendPageAndWindow();
- trackInspectorPage(m_inspectorPage);
+ trackInspectorPage(m_inspectorPage, nullptr);
m_inspectorPage->process().addMessageReceiver(Messages::RemoteWebInspectorProxy::messageReceiverName(), m_inspectorPage->pageID(), *this);
m_inspectorPage->process().assumeReadAccessToBaseURL(*m_inspectorPage, WebInspectorProxy::inspectorBaseURL());
Modified: trunk/Source/WebKit/UIProcess/WebInspectorProxy.cpp (244417 => 244418)
--- trunk/Source/WebKit/UIProcess/WebInspectorProxy.cpp 2019-04-18 01:16:09 UTC (rev 244417)
+++ trunk/Source/WebKit/UIProcess/WebInspectorProxy.cpp 2019-04-18 03:43:53 UTC (rev 244418)
@@ -389,7 +389,7 @@
if (!m_inspectorPage)
return;
- trackInspectorPage(m_inspectorPage);
+ trackInspectorPage(m_inspectorPage, m_inspectedPage);
m_inspectorPage->process().addMessageReceiver(Messages::WebInspectorProxy::messageReceiverName(), m_inspectedPage->pageID(), *this);
m_inspectorPage->process().assumeReadAccessToBaseURL(*m_inspectorPage, WebInspectorProxy::inspectorBaseURL());
Modified: trunk/Source/WebKit/UIProcess/WebInspectorUtilities.cpp (244417 => 244418)
--- trunk/Source/WebKit/UIProcess/WebInspectorUtilities.cpp 2019-04-18 01:16:09 UTC (rev 244417)
+++ trunk/Source/WebKit/UIProcess/WebInspectorUtilities.cpp 2019-04-18 03:43:53 UTC (rev 244418)
@@ -61,14 +61,14 @@
return makeString("__WebInspectorPageGroupLevel", inspectorLevelForPage(page), "__");
}
-void trackInspectorPage(WebPageProxy* page)
+void trackInspectorPage(WebPageProxy* inspectorPage, WebPageProxy* inspectedPage)
{
- pageLevelMap().set(page, inspectorLevelForPage(page));
+ pageLevelMap().set(inspectorPage, inspectorLevelForPage(inspectedPage));
}
-void untrackInspectorPage(WebPageProxy* page)
+void untrackInspectorPage(WebPageProxy* inspectorPage)
{
- pageLevelMap().remove(page);
+ pageLevelMap().remove(inspectorPage);
}
static WebProcessPool* s_mainInspectorProcessPool;
Modified: trunk/Source/WebKit/UIProcess/WebInspectorUtilities.h (244417 => 244418)
--- trunk/Source/WebKit/UIProcess/WebInspectorUtilities.h 2019-04-18 01:16:09 UTC (rev 244417)
+++ trunk/Source/WebKit/UIProcess/WebInspectorUtilities.h 2019-04-18 03:43:53 UTC (rev 244418)
@@ -36,8 +36,8 @@
// inspector level by setting a per-level page group identifier.
unsigned inspectorLevelForPage(WebPageProxy*);
String inspectorPageGroupIdentifierForPage(WebPageProxy*);
-void trackInspectorPage(WebPageProxy*);
-void untrackInspectorPage(WebPageProxy*);
+void trackInspectorPage(WebPageProxy* inspectorPage, WebPageProxy* inspectedPage);
+void untrackInspectorPage(WebPageProxy* inspectorPage);
WebProcessPool& inspectorProcessPool(unsigned inspectionLevel);
bool isInspectorProcessPool(WebProcessPool&);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes