@@ -2655,7 +2655,7 @@ index f6c83ea43b81e59816130269a28b1a6623b99854..69d4f43dc676e6c1fa08146ca704cf36
2655
2655
+
2656
2656
} // namespace WebCore
2657
2657
diff --git a/Source/WebCore/inspector/agents/InspectorDOMAgent.h b/Source/WebCore/inspector/agents/InspectorDOMAgent.h
2658
- index 7f2872df49e0d40ab020cd9884ded00308f1a2a6..d29615ad8f2dedcadd4ee2dd422f53ff3858f9e1 100644
2658
+ index 7f2872df49e0d40ab020cd9884ded00308f1a2a6..a2512f35fdea0d0f6ea9393354461e022c2576f3 100644
2659
2659
--- a/Source/WebCore/inspector/agents/InspectorDOMAgent.h
2660
2660
+++ b/Source/WebCore/inspector/agents/InspectorDOMAgent.h
2661
2661
@@ -55,6 +55,7 @@ namespace WebCore {
@@ -2679,18 +2679,18 @@ index 7f2872df49e0d40ab020cd9884ded00308f1a2a6..d29615ad8f2dedcadd4ee2dd422f53ff
2679
2679
Inspector::Protocol::ErrorStringOr<Ref<JSON::ArrayOf<Inspector::Protocol::DOM::NodeId>>> getSearchResults(const String& searchId, int fromIndex, int toIndex);
2680
2680
Inspector::Protocol::ErrorStringOr<void> discardSearchResults(const String& searchId);
2681
2681
- Inspector::Protocol::ErrorStringOr<Ref<Inspector::Protocol::Runtime::RemoteObject>> resolveNode(Inspector::Protocol::DOM::NodeId, const String& objectGroup);
2682
- + Inspector::Protocol::ErrorStringOr<Ref<Inspector::Protocol::Runtime::RemoteObject>> resolveNode(Optional<Inspector::Protocol::DOM::NodeId>&& nodeId, const String& objectId, Optional<int>&& contextId, const String& objectGroup) override ;
2682
+ + Inspector::Protocol::ErrorStringOr<Ref<Inspector::Protocol::Runtime::RemoteObject>> resolveNode(Optional<Inspector::Protocol::DOM::NodeId>&& nodeId, const String& objectId, Optional<int>&& contextId, const String& objectGroup);
2683
2683
Inspector::Protocol::ErrorStringOr<Ref<JSON::ArrayOf<String>>> getAttributes(Inspector::Protocol::DOM::NodeId);
2684
2684
#if PLATFORM(IOS_FAMILY)
2685
2685
Inspector::Protocol::ErrorStringOr<void> setInspectModeEnabled(bool, RefPtr<JSON::Object>&& highlightConfig);
2686
2686
@@ -153,6 +155,10 @@ public:
2687
2687
Inspector::Protocol::ErrorStringOr<void> focus(Inspector::Protocol::DOM::NodeId);
2688
2688
Inspector::Protocol::ErrorStringOr<void> setInspectedNode(Inspector::Protocol::DOM::NodeId);
2689
2689
Inspector::Protocol::ErrorStringOr<void> setAllowEditingUserAgentShadowTrees(bool);
2690
- + Inspector::Protocol::ErrorStringOr<std::tuple<String /* contentFrameId */, String /* ownerFrameId */>> describeNode(const String& objectId) override ;
2691
- + Inspector::Protocol::ErrorStringOr<void> scrollIntoViewIfNeeded(const String& objectId, RefPtr<JSON::Object>&& rect) override ;
2692
- + Inspector::Protocol::ErrorStringOr<Ref<JSON::ArrayOf<Inspector::Protocol::DOM::Quad>>> getContentQuads(const String& objectId) override ;
2693
- + Inspector::Protocol::ErrorStringOr<void> setInputFiles(const String& objectId, Ref<JSON::Array>&& files) override ;
2690
+ + Inspector::Protocol::ErrorStringOr<std::tuple<String /* contentFrameId */, String /* ownerFrameId */>> describeNode(const String& objectId);
2691
+ + Inspector::Protocol::ErrorStringOr<void> scrollIntoViewIfNeeded(const String& objectId, RefPtr<JSON::Object>&& rect);
2692
+ + Inspector::Protocol::ErrorStringOr<Ref<JSON::ArrayOf<Inspector::Protocol::DOM::Quad>>> getContentQuads(const String& objectId);
2693
+ + Inspector::Protocol::ErrorStringOr<void> setInputFiles(const String& objectId, Ref<JSON::Array>&& files);
2694
2694
2695
2695
// InspectorInstrumentation
2696
2696
Inspector::Protocol::DOM::NodeId identifierForNode(Node&);
@@ -3713,7 +3713,7 @@ index ae25fcebc93d504bb0abf17b61bbe1d73efcc1e3..9d0cc967efe17c6fc94e694d8806e1c4
3713
3713
+
3714
3714
} // namespace WebCore
3715
3715
diff --git a/Source/WebCore/inspector/agents/InspectorPageAgent.h b/Source/WebCore/inspector/agents/InspectorPageAgent.h
3716
- index d2b065e13651fafe747325f02e7701fbf1e8e45e..9076ff5fa9b746f9f13823146504829593f11bef 100644
3716
+ index d2b065e13651fafe747325f02e7701fbf1e8e45e..3b5db3e7404fc890acab9864d23bbbc6b54b27fd 100644
3717
3717
--- a/Source/WebCore/inspector/agents/InspectorPageAgent.h
3718
3718
+++ b/Source/WebCore/inspector/agents/InspectorPageAgent.h
3719
3719
@@ -34,17 +34,23 @@
@@ -3759,32 +3759,32 @@ index d2b065e13651fafe747325f02e7701fbf1e8e45e..9076ff5fa9b746f9f138231465048295
3759
3759
Inspector::Protocol::ErrorStringOr<void> enable();
3760
3760
Inspector::Protocol::ErrorStringOr<void> disable();
3761
3761
Inspector::Protocol::ErrorStringOr<void> reload(Optional<bool>&& ignoreCache, Optional<bool>&& revalidateAllResources);
3762
- + Inspector::Protocol::ErrorStringOr<void> goBack() override ;
3763
- + Inspector::Protocol::ErrorStringOr<void> goForward() override ;
3762
+ + Inspector::Protocol::ErrorStringOr<void> goBack();
3763
+ + Inspector::Protocol::ErrorStringOr<void> goForward();
3764
3764
Inspector::Protocol::ErrorStringOr<void> navigate(const String& url);
3765
3765
Inspector::Protocol::ErrorStringOr<void> overrideUserAgent(const String&);
3766
3766
Inspector::Protocol::ErrorStringOr<void> overrideSetting(Inspector::Protocol::Page::Setting, Optional<bool>&& value);
3767
3767
@@ -114,22 +124,34 @@ public:
3768
3768
#if ENABLE(DARK_MODE_CSS) || HAVE(OS_DARK_MODE_SUPPORT)
3769
3769
Inspector::Protocol::ErrorStringOr<void> setForcedAppearance(Optional<Inspector::Protocol::Page::Appearance>&&);
3770
3770
#endif
3771
- + Inspector::Protocol::ErrorStringOr<void> setTimeZone(const String&) override ;
3772
- + Inspector::Protocol::ErrorStringOr<void> setTouchEmulationEnabled(bool) override ;
3771
+ + Inspector::Protocol::ErrorStringOr<void> setTimeZone(const String&);
3772
+ + Inspector::Protocol::ErrorStringOr<void> setTouchEmulationEnabled(bool);
3773
3773
Inspector::Protocol::ErrorStringOr<String> snapshotNode(Inspector::Protocol::DOM::NodeId);
3774
3774
Inspector::Protocol::ErrorStringOr<String> snapshotRect(int x, int y, int width, int height, Inspector::Protocol::Page::CoordinateSystem);
3775
3775
#if ENABLE(WEB_ARCHIVE) && USE(CF)
3776
3776
Inspector::Protocol::ErrorStringOr<String> archive();
3777
3777
#endif
3778
3778
3779
- + Inspector::Protocol::ErrorStringOr<void> insertText(const String& text) override ;
3780
- + Inspector::Protocol::ErrorStringOr<Ref<Inspector::Protocol::Page::AXNode>> accessibilitySnapshot(const String& objectId) override ;
3781
- + Inspector::Protocol::ErrorStringOr<void> setInterceptFileChooserDialog(bool enabled) override ;
3782
- + Inspector::Protocol::ErrorStringOr<void> setDefaultBackgroundColorOverride(RefPtr<JSON::Object>&&) override ;
3783
- + Inspector::Protocol::ErrorStringOr<void> createUserWorld(const String&) override ;
3784
- + Inspector::Protocol::ErrorStringOr<void> setBypassCSP(bool) override ;
3785
- + Inspector::Protocol::ErrorStringOr<void> crash()override ;
3786
- + Inspector::Protocol::ErrorStringOr<void> setScreenSizeOverride(int width, int height) override ;
3787
- + Inspector::Protocol::ErrorStringOr<void> setOrientationOverride(Optional<int>&& angle) override ;
3779
+ + Inspector::Protocol::ErrorStringOr<void> insertText(const String& text);
3780
+ + Inspector::Protocol::ErrorStringOr<Ref<Inspector::Protocol::Page::AXNode>> accessibilitySnapshot(const String& objectId);
3781
+ + Inspector::Protocol::ErrorStringOr<void> setInterceptFileChooserDialog(bool enabled);
3782
+ + Inspector::Protocol::ErrorStringOr<void> setDefaultBackgroundColorOverride(RefPtr<JSON::Object>&&);
3783
+ + Inspector::Protocol::ErrorStringOr<void> createUserWorld(const String&);
3784
+ + Inspector::Protocol::ErrorStringOr<void> setBypassCSP(bool);
3785
+ + Inspector::Protocol::ErrorStringOr<void> crash();
3786
+ + Inspector::Protocol::ErrorStringOr<void> setScreenSizeOverride(int width, int height);
3787
+ + Inspector::Protocol::ErrorStringOr<void> setOrientationOverride(Optional<int>&& angle);
3788
3788
+
3789
3789
// InspectorInstrumentation
3790
3790
- void domContentEventFired();
@@ -11548,7 +11548,7 @@ index 04f3227cd55c992a42cd96a3f25d697aed7965a2..f0d36935f47bab03ea2ec50b70509206
11548
11548
11549
11549
diff --git a/Source/WebKit/UIProcess/WebPageInspectorEmulationAgent.cpp b/Source/WebKit/UIProcess/WebPageInspectorEmulationAgent.cpp
11550
11550
new file mode 100644
11551
- index 0000000000000000000000000000000000000000..c09db72a276875db36077bb49f8c7d6ff7b4eb8f
11551
+ index 0000000000000000000000000000000000000000..e6e700e846ea091a190b6b1f5c5636fed4389909
11552
11552
--- /dev/null
11553
11553
+++ b/Source/WebKit/UIProcess/WebPageInspectorEmulationAgent.cpp
11554
11554
@@ -0,0 +1,146 @@
@@ -11645,15 +11645,15 @@ index 0000000000000000000000000000000000000000..c09db72a276875db36077bb49f8c7d6f
11645
11645
+ });
11646
11646
+}
11647
11647
+
11648
- +Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::setJavaScriptEnabled(bool enabled)
11648
+ +Inspector:: Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::setJavaScriptEnabled(bool enabled)
11649
11649
+{
11650
11650
+ auto copy = m_page.preferences().copy();
11651
11651
+ copy->setJavaScriptEnabled(enabled);
11652
11652
+ m_page.setPreferences(copy);
11653
11653
+ return { };
11654
11654
+}
11655
11655
+
11656
- +Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::setAuthCredentials(const String& username, const String& password)
11656
+ +Inspector:: Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::setAuthCredentials(const String& username, const String& password)
11657
11657
+{
11658
11658
+ if (!!username && !!password)
11659
11659
+ m_page.setAuthCredentialsForAutomation(WebCore::Credential(username, password, CredentialPersistencePermanent));
@@ -11662,13 +11662,13 @@ index 0000000000000000000000000000000000000000..c09db72a276875db36077bb49f8c7d6f
11662
11662
+ return { };
11663
11663
+}
11664
11664
+
11665
- +Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::setActiveAndFocused(Optional<bool>&& active)
11665
+ +Inspector:: Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::setActiveAndFocused(Optional<bool>&& active)
11666
11666
+{
11667
11667
+ m_page.setActiveForAutomation(WTFMove(active));
11668
11668
+ return { };
11669
11669
+}
11670
11670
+
11671
- +Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::grantPermissions(const String& origin, Ref<JSON::Array>&& values)
11671
+ +Inspector:: Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::grantPermissions(const String& origin, Ref<JSON::Array>&& values)
11672
11672
+{
11673
11673
+ HashSet<String> set;
11674
11674
+ for (const auto& value : values.get()) {
@@ -11683,7 +11683,7 @@ index 0000000000000000000000000000000000000000..c09db72a276875db36077bb49f8c7d6f
11683
11683
+ return { };
11684
11684
+}
11685
11685
+
11686
- +Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::resetPermissions()
11686
+ +Inspector:: Protocol::ErrorStringOr<void> WebPageInspectorEmulationAgent::resetPermissions()
11687
11687
+{
11688
11688
+ m_permissions.clear();
11689
11689
+ m_page.setPermissionsForAutomation(m_permissions);
0 commit comments