Diff
Modified: trunk/Source/WebCore/ChangeLog (253836 => 253837)
--- trunk/Source/WebCore/ChangeLog 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebCore/ChangeLog 2019-12-20 20:42:43 UTC (rev 253837)
@@ -1,3 +1,26 @@
+2019-12-20 Brian Burg <[email protected]>
+
+ Web Inspector: convert some InspectorFrontendHost methods to getters
+ https://bugs.webkit.org/show_bug.cgi?id=205475
+
+ Reviewed by Devin Rousso.
+
+ No reason for these to be method calls, so expose as getters / attributes instead.
+
+ * inspector/InspectorFrontendClient.h:
+ * inspector/InspectorFrontendHost.cpp:
+ (WebCore::InspectorFrontendHost::isRemote const):
+ (WebCore::debuggableTypeToString):
+ (WebCore::InspectorFrontendHost::localizedStringsURL): Deleted.
+ (WebCore::InspectorFrontendHost::backendCommandsURL): Deleted.
+ (WebCore::InspectorFrontendHost::debuggableType): Deleted.
+ (WebCore::InspectorFrontendHost::inspectionLevel): Deleted.
+ (WebCore::InspectorFrontendHost::platform): Deleted.
+ (WebCore::InspectorFrontendHost::port): Deleted.
+ * inspector/InspectorFrontendHost.h:
+ * inspector/InspectorFrontendHost.idl:
+ * testing/Internals.cpp:
+
2019-12-20 Andres Gonzalez <[email protected]>
IsolatedObject support for multiple parameterized attributes.
Modified: trunk/Source/WebCore/inspector/InspectorFrontendClient.h (253836 => 253837)
--- trunk/Source/WebCore/inspector/InspectorFrontendClient.h 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClient.h 2019-12-20 20:42:43 UTC (rev 253837)
@@ -58,10 +58,10 @@
virtual void moveWindowBy(float x, float y) = 0;
virtual bool isRemote() const = 0;
- virtual String localizedStringsURL() = 0;
- virtual unsigned inspectionLevel() const = 0;
+ virtual String localizedStringsURL() const = 0;
virtual String backendCommandsURL() const = 0;
virtual String debuggableType() const = 0;
+ virtual unsigned inspectionLevel() const = 0;
virtual void bringToFront() = 0;
virtual void closeWindow() = 0;
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (253836 => 253837)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2019-12-20 20:42:43 UTC (rev 253837)
@@ -271,15 +271,15 @@
bool InspectorFrontendHost::isRemote() const
{
- return m_client ? m_client->isRemote() : false;
+ return m_client && m_client->isRemote();
}
-String InspectorFrontendHost::localizedStringsURL()
+String InspectorFrontendHost::localizedStringsURL() const
{
return m_client ? m_client->localizedStringsURL() : String();
}
-String InspectorFrontendHost::backendCommandsURL()
+String InspectorFrontendHost::backendCommandsURL() const
{
return m_client ? m_client->backendCommandsURL() : String();
}
@@ -289,12 +289,12 @@
return m_client ? m_client->debuggableType() : String();
}
-unsigned InspectorFrontendHost::inspectionLevel()
+unsigned InspectorFrontendHost::inspectionLevel() const
{
return m_client ? m_client->inspectionLevel() : 1;
}
-String InspectorFrontendHost::platform()
+String InspectorFrontendHost::platform() const
{
#if PLATFORM(COCOA)
return "mac"_s;
@@ -311,7 +311,7 @@
#endif
}
-String InspectorFrontendHost::port()
+String InspectorFrontendHost::port() const
{
#if PLATFORM(GTK)
return "gtk"_s;
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.h (253836 => 253837)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.h 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.h 2019-12-20 20:42:43 UTC (rev 253837)
@@ -81,13 +81,13 @@
void moveWindowBy(float x, float y) const;
bool isRemote() const;
- String localizedStringsURL();
- String backendCommandsURL();
String debuggableType();
- unsigned inspectionLevel();
+ String localizedStringsURL() const;
+ String backendCommandsURL() const;
+ unsigned inspectionLevel() const;
- String platform();
- String port();
+ String platform() const;
+ String port() const;
void copyText(const String& text);
void killText(const String& text, bool shouldPrependToKillRing, bool shouldStartNewSequence);
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.idl (253836 => 253837)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.idl 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.idl 2019-12-20 20:42:43 UTC (rev 253837)
@@ -61,10 +61,10 @@
void moveWindowBy(unrestricted float x, unrestricted float y);
readonly attribute boolean isRemote;
- DOMString localizedStringsURL();
- DOMString backendCommandsURL();
DOMString debuggableType();
- unsigned long inspectionLevel();
+ readonly attribute DOMString localizedStringsURL;
+ readonly attribute DOMString backendCommandsURL;
+ readonly attribute unsigned long inspectionLevel;
void copyText(DOMString text);
void killText(DOMString text, boolean shouldPrependToKillRing, boolean shouldStartNewSequence);
@@ -74,8 +74,8 @@
void append(DOMString url, DOMString content);
void close(DOMString url);
- DOMString platform();
- DOMString port();
+ readonly attribute DOMString port;
+ readonly attribute DOMString platform;
void showContextMenu(Event event, sequence<ContextMenuItem> items);
void dispatchEventAsContextMenuEvent(Event event);
Modified: trunk/Source/WebCore/testing/Internals.cpp (253836 => 253837)
--- trunk/Source/WebCore/testing/Internals.cpp 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebCore/testing/Internals.cpp 2019-12-20 20:42:43 UTC (rev 253837)
@@ -338,8 +338,8 @@
void closeWindow() final;
void reopen() final { }
void bringToFront() final { }
- String localizedStringsURL() final { return String(); }
String debuggableType() const final { return "page"_s; };
+ String localizedStringsURL() const final { return String(); }
void inspectedURLChanged(const String&) final { }
void showCertificate(const CertificateInfo&) final { }
void setAttachedWindowHeight(unsigned) final { }
Modified: trunk/Source/WebInspectorUI/ChangeLog (253836 => 253837)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-12-20 20:42:43 UTC (rev 253837)
@@ -1,3 +1,23 @@
+2019-12-20 Brian Burg <[email protected]>
+
+ Web Inspector: convert some InspectorFrontendHost methods to getters
+ https://bugs.webkit.org/show_bug.cgi?id=205475
+
+ Reviewed by Devin Rousso.
+
+ No reason for these to be method calls, so expose as getters / attributes instead.
+
+ * UserInterface/Base/LoadLocalizedStrings.js:
+ * UserInterface/Base/Main.js:
+ * UserInterface/Base/ObjectStore.js:
+ (WI.ObjectStore.get _databaseName):
+ * UserInterface/Base/Platform.js:
+ * UserInterface/Base/Setting.js:
+ (WI.Setting._localStorageKey):
+ * UserInterface/Debug/Bootstrap.js:
+ (WI.runBootstrapOperations):
+ * UserInterface/Protocol/LoadInspectorBackendCommands.js:
+
2019-12-19 Nikita Vasilyev <[email protected]>
Web Inspector: Enable p3 color picker by default
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/LoadLocalizedStrings.js (253836 => 253837)
--- trunk/Source/WebInspectorUI/UserInterface/Base/LoadLocalizedStrings.js 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/LoadLocalizedStrings.js 2019-12-20 20:42:43 UTC (rev 253837)
@@ -27,7 +27,7 @@
if (WI.dontLocalizeUserInterface)
return;
- let localizedStringsURL = InspectorFrontendHost.localizedStringsURL();
+ let localizedStringsURL = InspectorFrontendHost.localizedStringsURL;
console.assert(localizedStringsURL);
if (localizedStringsURL)
document.write("<script src="" + localizedStringsURL + "\"></script>");
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Main.js (253836 => 253837)
--- trunk/Source/WebInspectorUI/UserInterface/Base/Main.js 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Main.js 2019-12-20 20:42:43 UTC (rev 253837)
@@ -2272,7 +2272,7 @@
event.preventDefault();
- if (InspectorFrontendHost.inspectionLevel() > 1) {
+ if (InspectorFrontendHost.inspectionLevel > 1) {
WI._reloadInspectedInspector();
return;
}
@@ -2288,7 +2288,7 @@
event.preventDefault();
- if (InspectorFrontendHost.inspectionLevel() > 1) {
+ if (InspectorFrontendHost.inspectionLevel > 1) {
WI._reloadInspectedInspector();
return;
}
@@ -2298,7 +2298,7 @@
WI._reloadToolbarButtonClicked = function(event)
{
- if (InspectorFrontendHost.inspectionLevel() > 1) {
+ if (InspectorFrontendHost.inspectionLevel > 1) {
WI._reloadInspectedInspector();
return;
}
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/ObjectStore.js (253836 => 253837)
--- trunk/Source/WebInspectorUI/UserInterface/Base/ObjectStore.js 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/ObjectStore.js 2019-12-20 20:42:43 UTC (rev 253837)
@@ -48,7 +48,7 @@
static get _databaseName()
{
- let inspectionLevel = InspectorFrontendHost ? InspectorFrontendHost.inspectionLevel() : 1;
+ let inspectionLevel = InspectorFrontendHost ? InspectorFrontendHost.inspectionLevel : 1;
let levelString = (inspectionLevel > 1) ? "-" + inspectionLevel : "";
return "com.apple.WebInspector" + levelString;
}
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Platform.js (253836 => 253837)
--- trunk/Source/WebInspectorUI/UserInterface/Base/Platform.js 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Platform.js 2019-12-20 20:42:43 UTC (rev 253837)
@@ -24,7 +24,7 @@
*/
WI.Platform = {
- name: InspectorFrontendHost.platform(),
+ name: InspectorFrontendHost.platform,
isNightlyBuild: false,
version: {
base: 0,
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Setting.js (253836 => 253837)
--- trunk/Source/WebInspectorUI/UserInterface/Base/Setting.js 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Setting.js 2019-12-20 20:42:43 UTC (rev 253837)
@@ -75,7 +75,7 @@
static _localStorageKey(name)
{
- let inspectionLevel = InspectorFrontendHost ? InspectorFrontendHost.inspectionLevel() : 1;
+ let inspectionLevel = InspectorFrontendHost ? InspectorFrontendHost.inspectionLevel : 1;
let levelString = inspectionLevel > 1 ? "-" + inspectionLevel : "";
return `com.apple.WebInspector${levelString}.${name}`;
}
Modified: trunk/Source/WebInspectorUI/UserInterface/Debug/Bootstrap.js (253836 => 253837)
--- trunk/Source/WebInspectorUI/UserInterface/Debug/Bootstrap.js 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/UserInterface/Debug/Bootstrap.js 2019-12-20 20:42:43 UTC (rev 253837)
@@ -115,7 +115,7 @@
applyDumpMessagesState(dumpMessagesCurrentState());
// Next Level Inspector.
- let inspectionLevel = InspectorFrontendHost.inspectionLevel();
+ let inspectionLevel = InspectorFrontendHost.inspectionLevel;
const inspectInspectorToolTip = WI.unlocalizedString("Open Web Inspector [%d]").format(inspectionLevel + 1);
let inspectInspectorToolbarItem = new WI.ButtonToolbarItem("inspect-inspector", inspectInspectorToolTip);
WI.toolbar.addToolbarItem(inspectInspectorToolbarItem, WI.Toolbar.Section.CenterRight);
Modified: trunk/Source/WebInspectorUI/UserInterface/Protocol/LoadInspectorBackendCommands.js (253836 => 253837)
--- trunk/Source/WebInspectorUI/UserInterface/Protocol/LoadInspectorBackendCommands.js 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebInspectorUI/UserInterface/Protocol/LoadInspectorBackendCommands.js 2019-12-20 20:42:43 UTC (rev 253837)
@@ -24,6 +24,6 @@
*/
(function() {
- let backendCommandsURL = InspectorFrontendHost.backendCommandsURL() || "Protocol/InspectorBackendCommands.js";
+ let backendCommandsURL = InspectorFrontendHost.backendCommandsURL || "Protocol/InspectorBackendCommands.js";
document.write("<script src="" + backendCommandsURL + "\"></script>");
})();
Modified: trunk/Source/WebKit/ChangeLog (253836 => 253837)
--- trunk/Source/WebKit/ChangeLog 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKit/ChangeLog 2019-12-20 20:42:43 UTC (rev 253837)
@@ -1,3 +1,33 @@
+2019-12-20 Brian Burg <[email protected]>
+
+ Web Inspector: convert some InspectorFrontendHost methods to getters
+ https://bugs.webkit.org/show_bug.cgi?id=205475
+
+ Reviewed by Devin Rousso.
+
+ No reason for these to be method calls, so expose as getters / attributes instead.
+
+ * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp:
+ (WebKit::WebInspectorUI::localizedStringsURL const):
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL const):
+ (WebKit::WebInspectorUI::localizedStringsURL): Deleted.
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL): Deleted.
+ * WebProcess/WebPage/mac/WebInspectorUIMac.mm:
+ (WebKit::WebInspectorUI::localizedStringsURL const):
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL const):
+ (WebKit::WebInspectorUI::localizedStringsURL): Deleted.
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL): Deleted.
+ * WebProcess/WebPage/win/WebInspectorUIWin.cpp:
+ (WebKit::WebInspectorUI::localizedStringsURL const):
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL const):
+ (WebKit::WebInspectorUI::localizedStringsURL): Deleted.
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL): Deleted.
+ * WebProcess/WebPage/wpe/WebInspectorUIWPE.cpp:
+ (WebKit::WebInspectorUI::localizedStringsURL const):
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL const):
+ (WebKit::WebInspectorUI::localizedStringsURL): Deleted.
+ (WebKit::RemoteWebInspectorUI::localizedStringsURL): Deleted.
+
2019-12-20 Alex Christensen <[email protected]>
Allow a managed configuration to re-enable TLS 1.0 and 1.1
Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteWebInspectorUI.h (253836 => 253837)
--- trunk/Source/WebKit/WebProcess/WebPage/RemoteWebInspectorUI.h 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteWebInspectorUI.h 2019-12-20 20:42:43 UTC (rev 253837)
@@ -65,7 +65,7 @@
void moveWindowBy(float x, float y) override;
bool isRemote() const final { return true; }
- String localizedStringsURL() override;
+ String localizedStringsURL() const override;
String backendCommandsURL() const final { return m_backendCommandsURL; }
String debuggableType() const final { return m_debuggableType; }
Modified: trunk/Source/WebKit/WebProcess/WebPage/WebInspectorUI.h (253836 => 253837)
--- trunk/Source/WebKit/WebProcess/WebPage/WebInspectorUI.h 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebInspectorUI.h 2019-12-20 20:42:43 UTC (rev 253837)
@@ -94,9 +94,10 @@
void moveWindowBy(float x, float y) override;
bool isRemote() const final { return false; }
- String localizedStringsURL() override;
+ String localizedStringsURL() const override;
String backendCommandsURL() const final { return String(); }
String debuggableType() const final { return "web-page"_s; }
+ unsigned inspectionLevel() const override { return m_inspectionLevel; }
void bringToFront() override;
void closeWindow() override;
@@ -132,7 +133,6 @@
void pageUnpaused() override;
bool isUnderTest() override { return m_underTest; }
- unsigned inspectionLevel() const override { return m_inspectionLevel; }
private:
explicit WebInspectorUI(WebPage&);
Modified: trunk/Source/WebKit/WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp (253836 => 253837)
--- trunk/Source/WebKit/WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKit/WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp 2019-12-20 20:42:43 UTC (rev 253837)
@@ -39,12 +39,12 @@
return true;
}
-String WebInspectorUI::localizedStringsURL()
+String WebInspectorUI::localizedStringsURL() const
{
return String("resource:///org/webkit/inspector/Localizations/en.lproj/localizedStrings.js");
}
-String RemoteWebInspectorUI::localizedStringsURL()
+String RemoteWebInspectorUI::localizedStringsURL() const
{
return String("resource:///org/webkit/inspector/Localizations/en.lproj/localizedStrings.js");
}
Modified: trunk/Source/WebKit/WebProcess/WebPage/mac/WebInspectorUIMac.mm (253836 => 253837)
--- trunk/Source/WebKit/WebProcess/WebPage/mac/WebInspectorUIMac.mm 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKit/WebProcess/WebPage/mac/WebInspectorUIMac.mm 2019-12-20 20:42:43 UTC (rev 253837)
@@ -47,12 +47,12 @@
return [NSURL fileURLWithPath:path isDirectory:NO].absoluteString;
}
-String WebInspectorUI::localizedStringsURL()
+String WebInspectorUI::localizedStringsURL() const
{
return webInspectorUILocalizedStringsURL();
}
-String RemoteWebInspectorUI::localizedStringsURL()
+String RemoteWebInspectorUI::localizedStringsURL() const
{
return webInspectorUILocalizedStringsURL();
}
Modified: trunk/Source/WebKit/WebProcess/WebPage/win/WebInspectorUIWin.cpp (253836 => 253837)
--- trunk/Source/WebKit/WebProcess/WebPage/win/WebInspectorUIWin.cpp 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKit/WebProcess/WebPage/win/WebInspectorUIWin.cpp 2019-12-20 20:42:43 UTC (rev 253837)
@@ -39,7 +39,7 @@
return false;
}
-String WebInspectorUI::localizedStringsURL()
+String WebInspectorUI::localizedStringsURL() const
{
#if USE(CF)
RetainPtr<CFURLRef> stringsURLRef = adoptCF(CFBundleCopyResourceURL(WebCore::webKitBundle(), CFSTR("localizedStrings"), CFSTR("js"), CFSTR("WebInspectorUI")));
@@ -49,7 +49,7 @@
#endif
}
-String RemoteWebInspectorUI::localizedStringsURL()
+String RemoteWebInspectorUI::localizedStringsURL() const
{
#if USE(CF)
RetainPtr<CFURLRef> stringsURLRef = adoptCF(CFBundleCopyResourceURL(WebCore::webKitBundle(), CFSTR("localizedStrings"), CFSTR("js"), CFSTR("WebInspectorUI")));
Modified: trunk/Source/WebKit/WebProcess/WebPage/wpe/WebInspectorUIWPE.cpp (253836 => 253837)
--- trunk/Source/WebKit/WebProcess/WebPage/wpe/WebInspectorUIWPE.cpp 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKit/WebProcess/WebPage/wpe/WebInspectorUIWPE.cpp 2019-12-20 20:42:43 UTC (rev 253837)
@@ -35,12 +35,12 @@
return false;
}
-String WebInspectorUI::localizedStringsURL()
+String WebInspectorUI::localizedStringsURL() const
{
return String();
}
-String RemoteWebInspectorUI::localizedStringsURL()
+String RemoteWebInspectorUI::localizedStringsURL() const
{
return String();
}
Modified: trunk/Source/WebKitLegacy/ios/ChangeLog (253836 => 253837)
--- trunk/Source/WebKitLegacy/ios/ChangeLog 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/ios/ChangeLog 2019-12-20 20:42:43 UTC (rev 253837)
@@ -1,3 +1,14 @@
+2019-12-20 Brian Burg <[email protected]>
+
+ Web Inspector: convert some InspectorFrontendHost methods to getters
+ https://bugs.webkit.org/show_bug.cgi?id=205475
+
+ Reviewed by Devin Rousso.
+
+ * WebCoreSupport/WebInspectorClientIOS.mm:
+ (WebInspectorFrontendClient::localizedStringsURL const):
+ (WebInspectorFrontendClient::localizedStringsURL): Deleted.
+
2019-12-17 Tim Horton <[email protected]>
macCatalyst: Cursor should update on mouse movement and style change
Modified: trunk/Source/WebKitLegacy/ios/WebCoreSupport/WebInspectorClientIOS.mm (253836 => 253837)
--- trunk/Source/WebKitLegacy/ios/WebCoreSupport/WebInspectorClientIOS.mm 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/ios/WebCoreSupport/WebInspectorClientIOS.mm 2019-12-20 20:42:43 UTC (rev 253837)
@@ -123,7 +123,7 @@
void WebInspectorFrontendClient::attachAvailabilityChanged(bool) { }
void WebInspectorFrontendClient::frontendLoaded() { }
-String WebInspectorFrontendClient::localizedStringsURL() { return String(); }
+String WebInspectorFrontendClient::localizedStringsURL() const { return String(); }
void WebInspectorFrontendClient::bringToFront() { }
void WebInspectorFrontendClient::closeWindow() { }
void WebInspectorFrontendClient::reopen() { }
Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (253836 => 253837)
--- trunk/Source/WebKitLegacy/mac/ChangeLog 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog 2019-12-20 20:42:43 UTC (rev 253837)
@@ -1,3 +1,15 @@
+2019-12-20 Brian Burg <[email protected]>
+
+ Web Inspector: convert some InspectorFrontendHost methods to getters
+ https://bugs.webkit.org/show_bug.cgi?id=205475
+
+ Reviewed by Devin Rousso.
+
+ * WebCoreSupport/WebInspectorClient.h:
+ * WebCoreSupport/WebInspectorClient.mm:
+ (WebInspectorFrontendClient::localizedStringsURL const):
+ (WebInspectorFrontendClient::localizedStringsURL): Deleted.
+
2019-12-20 Alex Christensen <[email protected]>
Allow a managed configuration to re-enable TLS 1.0 and 1.1
Modified: trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.h (253836 => 253837)
--- trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.h 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.h 2019-12-20 20:42:43 UTC (rev 253837)
@@ -117,8 +117,8 @@
void startWindowDrag() override;
- String localizedStringsURL() override;
String debuggableType() const final { return "page"_s; };
+ String localizedStringsURL() const override;
void bringToFront() override;
void closeWindow() override;
Modified: trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.mm (253836 => 253837)
--- trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.mm 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.mm 2019-12-20 20:42:43 UTC (rev 253837)
@@ -220,7 +220,7 @@
[[m_frontendWindowController window] performWindowDragWithEvent:[NSApp currentEvent]];
}
-String WebInspectorFrontendClient::localizedStringsURL()
+String WebInspectorFrontendClient::localizedStringsURL() const
{
NSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.apple.WebInspectorUI"];
if (!bundle)
Modified: trunk/Source/WebKitLegacy/win/ChangeLog (253836 => 253837)
--- trunk/Source/WebKitLegacy/win/ChangeLog 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/win/ChangeLog 2019-12-20 20:42:43 UTC (rev 253837)
@@ -1,3 +1,15 @@
+2019-12-20 Brian Burg <[email protected]>
+
+ Web Inspector: convert some InspectorFrontendHost methods to getters
+ https://bugs.webkit.org/show_bug.cgi?id=205475
+
+ Reviewed by Devin Rousso.
+
+ * WebCoreSupport/WebInspectorClient.cpp:
+ (WebInspectorFrontendClient::localizedStringsURL const):
+ (WebInspectorFrontendClient::localizedStringsURL): Deleted.
+ * WebCoreSupport/WebInspectorClient.h:
+
2019-12-13 Brady Eidson <[email protected]>
Refactor ScriptController's proliferation of ExceptionDetails*.
Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp (253836 => 253837)
--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp 2019-12-20 20:42:43 UTC (rev 253837)
@@ -248,7 +248,7 @@
setAttachedWindow(m_attached ? DockSide::Bottom : DockSide::Undocked);
}
-String WebInspectorFrontendClient::localizedStringsURL()
+String WebInspectorFrontendClient::localizedStringsURL() const
{
RetainPtr<CFURLRef> url = "" CFSTR("localizedStrings"), CFSTR("js"), CFSTR("WebInspectorUI")));
if (!url)
Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.h (253836 => 253837)
--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.h 2019-12-20 20:40:47 UTC (rev 253836)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.h 2019-12-20 20:42:43 UTC (rev 253837)
@@ -103,7 +103,7 @@
// InspectorFrontendClient API.
void frontendLoaded() override;
- WTF::String localizedStringsURL() override;
+ WTF::String localizedStringsURL() const override;
String debuggableType() const final { return "page"_s; };
void bringToFront() override;