2011-01-28 Pavel Feldman <pfeldman@chromium.org>
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Jan 2011 15:18:33 +0000 (15:18 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Jan 2011 15:18:33 +0000 (15:18 +0000)
        Reviewed by Yury Semikhatsky.

        Web Inspector: copy HAR to clipboard instead of saving blob on export.
        https://bugs.webkit.org/show_bug.cgi?id=53328

        * inspector/front-end/NetworkPanel.js:
        (WebInspector.NetworkPanel.prototype._exportAll):
        (WebInspector.NetworkPanel.prototype._exportResource):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@77128 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/NetworkPanel.js

index 9c4877e..1038914 100644 (file)
@@ -1,3 +1,14 @@
+2011-01-28  Pavel Feldman  <pfeldman@chromium.org>
+
+        Reviewed by Yury Semikhatsky.
+
+        Web Inspector: copy HAR to clipboard instead of saving blob on export.
+        https://bugs.webkit.org/show_bug.cgi?id=53328
+
+        * inspector/front-end/NetworkPanel.js:
+        (WebInspector.NetworkPanel.prototype._exportAll):
+        (WebInspector.NetworkPanel.prototype._exportResource):
+
 2011-01-30  Pavel Feldman  <pfeldman@chromium.org>
 
         Reviewed by Timothy Hatcher.
index dd507bf..485856e 100644 (file)
@@ -1020,13 +1020,13 @@ WebInspector.NetworkPanel.prototype = {
         var harArchive = {
             log: (new WebInspector.HARLog()).build()
         }
-        offerFileForDownload(JSON.stringify(harArchive));
+        InspectorFrontendHost.copyText(JSON.stringify(harArchive));
     },
 
     _exportResource: function(resource)
     {
         var har = (new WebInspector.HAREntry(resource)).build();
-        offerFileForDownload(JSON.stringify(har));
+        InspectorFrontendHost.copyText(JSON.stringify(har));
     },
 
     _updateOffscreenRows: function(e)