Commit b654c932 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 28efb0a7
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> 2011-01-30 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Timothy Hatcher. Reviewed by Timothy Hatcher.
...@@ -1020,13 +1020,13 @@ WebInspector.NetworkPanel.prototype = { ...@@ -1020,13 +1020,13 @@ WebInspector.NetworkPanel.prototype = {
var harArchive = { var harArchive = {
log: (new WebInspector.HARLog()).build() log: (new WebInspector.HARLog()).build()
} }
offerFileForDownload(JSON.stringify(harArchive)); InspectorFrontendHost.copyText(JSON.stringify(harArchive));
}, },
_exportResource: function(resource) _exportResource: function(resource)
{ {
var har = (new WebInspector.HAREntry(resource)).build(); var har = (new WebInspector.HAREntry(resource)).build();
offerFileForDownload(JSON.stringify(har)); InspectorFrontendHost.copyText(JSON.stringify(har));
}, },
_updateOffscreenRows: function(e) _updateOffscreenRows: function(e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment