Commit cfca39e
committed
Remove WaitForNotificationBeforeInjecting and friends.
https://webkit.org/b/288647
rdar://problem/145689560
Reviewed by Alex Christensen.
Remove this support since it is no longer used by any clients.
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::LocalFrame::injectUserScripts):
(WebCore::LocalFrame::addUserScriptAwaitingNotification): Deleted.
(WebCore::LocalFrame::injectUserScriptsAwaitingNotification): Deleted.
* Source/WebCore/page/LocalFrame.h:
* Source/WebCore/page/Page.cpp:
(WebCore::m_presentingApplicationBundleIdentifier):
(WebCore::Page::notifyToInjectUserScripts): Deleted.
* Source/WebCore/page/Page.h:
(WebCore::Page::hasBeenNotifiedToInjectUserScripts const): Deleted.
* Source/WebCore/page/PageConfiguration.h:
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::triggerOptionalStorageAccessQuirk const):
* Source/WebCore/page/UserScript.cpp:
(WebCore::UserScript::UserScript):
* Source/WebCore/page/UserScript.h:
(WebCore::UserScript::injectedFrames const):
(WebCore::UserScript::waitForNotificationBeforeInjecting const): Deleted.
* Source/WebCore/page/UserScriptTypes.h:
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
* Source/WebKit/Shared/WebPageCreationParameters.h:
* Source/WebKit/Shared/WebPageCreationParameters.serialization.in:
* Source/WebKit/UIProcess/API/APIPageConfiguration.h:
(API::PageConfiguration::userScriptsShouldWaitUntilNotification const): Deleted.
(API::PageConfiguration::setUserScriptsShouldWaitUntilNotification): Deleted.
* Source/WebKit/UIProcess/API/C/WKUserScriptRef.cpp:
(WKUserScriptCreate):
(WKUserScriptCreateWithSource):
* Source/WebKit/UIProcess/API/Cocoa/WKUserScript.mm:
(-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:includeMatchPatternStrings:excludeMatchPatternStrings:associatedURL:contentWorld:deferRunningUntilNotification:]): Deprecated.
(-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:includeMatchPatternStrings:excludeMatchPatternStrings:associatedURL:contentWorld:]): Added.
* Source/WebKit/UIProcess/API/Cocoa/WKUserScriptPrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _notifyUserScripts]): Deleted.
(-[WKWebView _deferrableUserScriptsNeedNotification]): Deleted.
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
(-[WKWebViewConfiguration _deferrableUserScriptsShouldWaitUntilNotification]): Deleted.
(-[WKWebViewConfiguration _setDeferrableUserScriptsShouldWaitUntilNotification:]): Deleted.
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::addInjectedContent):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::creationParameters):
(WebKit::WebPageProxy::notifyUserScripts): Deleted.
(WebKit::WebPageProxy::userScriptsNeedNotification const): Deleted.
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::m_textAnimationController):
(WebKit::WebPage::addUserScript):
(WebKit::WebPage::notifyUserScripts): Deleted.
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Source/WebKitLegacy/mac/WebView/WebView.mm:
(-[WebView _injectLaBanquePostaleQuirks]):
(+[WebView _addUserScriptToGroup:world:source:url:includeMatchPatternStrings:excludeMatchPatternStrings:injectionTime:injectedFrames:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm:
(TEST(WKUserContentController, UserScriptNotification)): Deleted.
Canonical link: https://commits.webkit.org/291165@main1 parent 3961561 commit cfca39e
File tree
28 files changed
+25
-187
lines changed- Source
- WebCore/page
- WebKitLegacy/mac/WebView
- WebKit
- UIProcess
- API
- Cocoa
- C
- Extensions/Cocoa
- WebProcess/WebPage
- Tools/TestWebKitAPI/Tests/WebKitCocoa
28 files changed
+25
-187
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
746 | 741 | | |
747 | 742 | | |
748 | 743 | | |
| |||
775 | 770 | | |
776 | 771 | | |
777 | 772 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | 773 | | |
790 | 774 | | |
791 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
| |||
361 | 358 | | |
362 | 359 | | |
363 | 360 | | |
364 | | - | |
365 | | - | |
366 | 361 | | |
367 | 362 | | |
368 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | 503 | | |
507 | 504 | | |
508 | 505 | | |
| |||
3819 | 3816 | | |
3820 | 3817 | | |
3821 | 3818 | | |
3822 | | - | |
3823 | | - | |
3824 | | - | |
3825 | | - | |
3826 | | - | |
3827 | | - | |
3828 | | - | |
3829 | | - | |
3830 | | - | |
3831 | 3819 | | |
3832 | 3820 | | |
3833 | 3821 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | 1141 | | |
1145 | 1142 | | |
1146 | 1143 | | |
| |||
1669 | 1666 | | |
1670 | 1667 | | |
1671 | 1668 | | |
1672 | | - | |
1673 | 1669 | | |
1674 | 1670 | | |
1675 | 1671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
1062 | | - | |
| 1062 | + | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | | - | |
| 1100 | + | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7525 | 7525 | | |
7526 | 7526 | | |
7527 | 7527 | | |
7528 | | - | |
7529 | | - | |
7530 | 7528 | | |
7531 | 7529 | | |
7532 | 7530 | | |
| |||
7536 | 7534 | | |
7537 | 7535 | | |
7538 | 7536 | | |
7539 | | - | |
7540 | 7537 | | |
7541 | 7538 | | |
7542 | 7539 | | |
| |||
0 commit comments