Skip to content

Commit 22a7636

Browse files
authored
browser(webkit): always open local Web Inspector on "Inspect element" (#1711)
1 parent 4d4e856 commit 22a7636

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1189
1+
1190

browser_patches/webkit/patches/bootstrap.diff

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,9 +1839,20 @@ index 4e41fd3f807e8f34bfef3f63f0ba6119a619821e..1f7be602cb2134f8867bf95afe0c9337
18391839
return;
18401840

18411841
diff --git a/Source/WebCore/inspector/InspectorController.cpp b/Source/WebCore/inspector/InspectorController.cpp
1842-
index 7d50ddc7a38a3723e4ee7d66ca97c8acb37c726a..7ee70c6dd4bb84012a682ed648dc3c0cbd8ad211 100644
1842+
index 7d50ddc7a38a3723e4ee7d66ca97c8acb37c726a..bcab1fb5bc6a26174dc6a57e233fe6e9b8c2161c 100644
18431843
--- a/Source/WebCore/inspector/InspectorController.cpp
18441844
+++ b/Source/WebCore/inspector/InspectorController.cpp
1845+
@@ -366,8 +366,8 @@ void InspectorController::inspect(Node* node)
1846+
if (!enabled())
1847+
return;
1848+
1849+
- if (!hasRemoteFrontend())
1850+
- show();
1851+
+ // HACK: Always attempt to show inspector even if there is a remote connection.
1852+
+ show();
1853+
1854+
ensureDOMAgent().inspect(node);
1855+
}
18451856
@@ -510,4 +510,24 @@ void InspectorController::didComposite(Frame& frame)
18461857
InspectorInstrumentation::didComposite(frame);
18471858
}

0 commit comments

Comments
 (0)