Title: [295554] trunk/Source/WebInspectorUI/UserInterface/Base/BrowserInspectorFrontendHost.js
- Revision
- 295554
- Author
- [email protected]
- Date
- 2022-06-15 00:55:27 -0700 (Wed, 15 Jun 2022)
Log Message
[WPE][GTK] REGRESSION(r292084): Browser frontend host is missing recent additions
https://bugs.webkit.org/show_bug.cgi?id=241594
Reviewed by Patrick Angle.
Update BrowserInspectorFrontendHost.js to add missing methods, update
signatures of changed ones, and remove those which are no longer present
in the IDL interface. This makes the Web Inspector work again when
loaded over HTTP.
* Source/WebInspectorUI/UserInterface/Base/BrowserInspectorFrontendHost.js:
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.canLoad): Added, always
returns false.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.load): Added stub.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.getPath): Added stub.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.canPickColorFromScreen):
Added, always returns false.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.pickColorFromScreen):
Added stub.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.getCurrentX): Added stub.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.getCurrentY): Added stub.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.setPath): Added stub.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.get port): Deleted.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.append): Deleted.
(window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.close): Deleted.
Canonical link: https://commits.webkit.org/251559@main
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/BrowserInspectorFrontendHost.js (295553 => 295554)
--- trunk/Source/WebInspectorUI/UserInterface/Base/BrowserInspectorFrontendHost.js 2022-06-15 06:38:29 UTC (rev 295553)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/BrowserInspectorFrontendHost.js 2022-06-15 07:55:27 UTC (rev 295554)
@@ -60,11 +60,6 @@
};
}
- get port()
- {
- return "unknown";
- }
-
get platform()
{
const match = navigator.platform.match(/mac|win|linux/i);
@@ -228,25 +223,61 @@
window.open(url, "_blank");
}
- canSave()
+ canSave(saveMode)
{
return false;
}
- save(url, content, base64encoded, forceSaveAs)
+ save(saveDatas, forceSaveAs)
{
// FIXME: Create a Blob from the content, get an object URL, open it to trigger a download.
throw "unimplemented";
}
- append(url, content)
+ canLoad()
{
+ return false;
}
- close(url)
+ load(path)
{
+ throw "unimplemented";
}
+ getPath(file)
+ {
+ return null;
+ }
+
+ canPickColorFromScreen()
+ {
+ return false;
+ }
+
+ pickColorFromScreen()
+ {
+ throw "unimplemented";
+ }
+
+ revealFileExternally(path)
+ {
+ }
+
+ getCurrentX(context)
+ {
+ return 0.0;
+ }
+
+ getCurrentY(context)
+ {
+ return 0.0;
+ }
+
+ setPath(context, path2d)
+ {
+ console.log("setPath", context, path2d);
+ }
+
showContextMenu(event, items)
{
this._contextMenu = WI.SoftContextMenu(items);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes