Title: [152956] trunk/Source/WebInspectorUI
- Revision
- 152956
- Author
- [email protected]
- Date
- 2013-07-21 20:24:22 -0700 (Sun, 21 Jul 2013)
Log Message
Web Inspector: Cleanup InspectorFrontendHostStub.js
https://bugs.webkit.org/show_bug.cgi?id=118959
Patch by Seokju Kwon <[email protected]> on 2013-07-21
Reviewed by Timothy Hatcher.
Remove some functions because we dont use on New Inspector.
* UserInterface/InspectorFrontendHostStub.js:
(.WebInspector.InspectorFrontendHostStub):
(.WebInspector.InspectorFrontendHostStub.prototype.save):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (152955 => 152956)
--- trunk/Source/WebInspectorUI/ChangeLog 2013-07-22 00:13:37 UTC (rev 152955)
+++ trunk/Source/WebInspectorUI/ChangeLog 2013-07-22 03:24:22 UTC (rev 152956)
@@ -1,3 +1,16 @@
+2013-07-21 Seokju Kwon <[email protected]>
+
+ Web Inspector: Cleanup InspectorFrontendHostStub.js
+ https://bugs.webkit.org/show_bug.cgi?id=118959
+
+ Reviewed by Timothy Hatcher.
+
+ Remove some functions because we dont use on New Inspector.
+
+ * UserInterface/InspectorFrontendHostStub.js:
+ (.WebInspector.InspectorFrontendHostStub):
+ (.WebInspector.InspectorFrontendHostStub.prototype.save):
+
2013-07-17 Seokju Kwon <[email protected]>
Web Inspector: Fix a typo in WebInspector.loaded
Modified: trunk/Source/WebInspectorUI/UserInterface/InspectorFrontendHostStub.js (152955 => 152956)
--- trunk/Source/WebInspectorUI/UserInterface/InspectorFrontendHostStub.js 2013-07-22 00:13:37 UTC (rev 152955)
+++ trunk/Source/WebInspectorUI/UserInterface/InspectorFrontendHostStub.js 2013-07-22 03:24:22 UTC (rev 152956)
@@ -34,26 +34,10 @@
WebInspector.InspectorFrontendHostStub = function()
{
this._attachedWindowHeight = 0;
- this._fileBuffers = {};
}
WebInspector.InspectorFrontendHostStub.prototype = {
- platform: function()
- {
- var match = navigator.userAgent.match(/Windows NT/);
- if (match)
- return "windows";
- match = navigator.userAgent.match(/Mac OS X/);
- if (match)
- return "mac";
- return "linux";
- },
- port: function()
- {
- return "unknown";
- },
-
bringToFront: function()
{
this._windowVisible = true;
@@ -111,50 +95,10 @@
window.open(url, "_blank");
},
- canSave: function()
- {
- return true;
- },
-
save: function(url, content, forceSaveAs)
{
- if (this._fileBuffers[url])
- throw new Error("Concurrent file modification denied.");
-
- this._fileBuffers[url] = [content];
},
- append: function(url, content)
- {
- var buffer = this._fileBuffers[url];
- if (!buffer)
- throw new Error("File is not open for write yet.");
-
- buffer.push(content);
- },
-
- close: function(url)
- {
- var content = this._fileBuffers[url];
- delete this._fileBuffers[url];
-
- if (!content)
- return;
-
- var lastSlashIndex = url.lastIndexOf("/");
- var fileNameSuffix = lastSlashIndex === -1 ? url : url.substring(lastSlashIndex + 1);
-
- var blob = new Blob(content, {type: "application/octet-stream"});
- var objectUrl = window.URL.createObjectURL(blob);
- window.location = objectUrl + "#" + fileNameSuffix;
-
- function cleanup()
- {
- window.URL.revokeObjectURL(objectUrl);
- }
- setTimeout(cleanup, 0);
- },
-
sendMessageToBackend: function(message)
{
},
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes