-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Web Inspector: Replace MessageSource::AppCache in WebCore #47122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Inspector: Replace MessageSource::AppCache in WebCore #47122
Conversation
EWS run on current version of this PR (hash e1b61af) |
@@ -144,7 +144,6 @@ extern NSString *WebConsoleMessageJSMessageSource; | |||
extern NSString *WebConsoleMessageNetworkMessageSource; | |||
extern NSString *WebConsoleMessageConsoleAPIMessageSource; | |||
extern NSString *WebConsoleMessageStorageMessageSource; | |||
extern NSString *WebConsoleMessageAppCacheMessageSource; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may need to keep this if there's a client elsewhere at Apple that still uses it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hesitated making changes under Source/WebKitLegacy/
.
@cdumez, do we still touch that or should I leave it unchanged in this patch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may need to keep this if there's a client elsewhere at Apple that still uses it
Nobody seems to be using this anymore.
If they somehow are and hit a crash, it will be a good way to identify themselves by filing a bug so we can ask them to migrate (or revert this change if needed).
https://bugs.webkit.org/show_bug.cgi?id=294907 rdar://154202768 Reviewed by Devin Rousso. ApplicationCache (aka AppCache) is a deprecated feature: https://bugs.webkit.org/show_bug.cgi?id=181764 Support for inspecting AppCache was removed from WebInspector: https://commits.webkit.org/289820@main With the feature is still technically available in WebCore, it can emit some console messages on an AppCache-specific message channel. WebInspector frontend doesn't explicitly handle them anymore. This patch replaces the `MessageSource::AppCache` with `MessageSource::Other` to ensure that any potential messages still get handled. * Source/JavaScriptCore/inspector/ConsoleMessage.cpp: (Inspector::messageSourceValue): * Source/JavaScriptCore/inspector/protocol/Console.json: * Source/JavaScriptCore/runtime/ConsoleClient.cpp: (JSC::appendMessagePrefix): * Source/JavaScriptCore/runtime/ConsoleTypes.h: * Source/WebCore/inspector/agents/page/PageConsoleAgent.cpp: (WebCore::PageConsoleAgent::getLoggingChannels): * Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::abort): (WebCore::ApplicationCacheGroup::didFinishLoadingEntry): (WebCore::ApplicationCacheGroup::didFailLoadingEntry): (WebCore::ApplicationCacheGroup::didFinishLoadingManifest): (WebCore::ApplicationCacheGroup::didFailLoadingManifest): (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete): * Source/WebKit/Shared/JavaScriptCore.serialization.in: * Source/WebKitLegacy/mac/WebCoreSupport/WebChromeClient.mm: (stringForMessageSource): * Source/WebKitLegacy/mac/WebKit.exp: * Source/WebKitLegacy/mac/WebView/WebUIDelegatePrivate.h: Canonical link: https://commits.webkit.org/296659@main
e1b61af
to
b3fe8b7
Compare
Committed 296659@main (b3fe8b7): https://commits.webkit.org/296659@main Reviewed commits have been landed. Closing PR #47122 and removing active labels. |
b3fe8b7
e1b61af