Closed Bug 1456129 Opened 6 years ago Closed 6 years ago

HAR toolbar button should support import

Categories

(DevTools :: Netmonitor, enhancement, P2)

enhancement

Tracking

(firefox61 fixed)

RESOLVED FIXED
Firefox 61
Tracking Status
firefox61 --- fixed

People

(Reporter: Honza, Assigned: Honza)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is a follow up for bug 1403530.

The HAR toolbar button should also support: "Import" HAR action.

Honza
Assignee: nobody → odvarko
Status: NEW → ASSIGNED
Priority: -- → P2
Comment on attachment 8970439 [details]
Bug 1456129 - Extend HAR toolbar with import;

https://reviewboard.mozilla.org/r/239028/#review245070

Works great!  What is the use case for this though?  Is there some type of comparison tool or is it simply for auditing?
Attachment #8970439 - Flags: review?(dwalsh) → review+
(In reply to David Walsh :davidwalsh from comment #3)
> Comment on attachment 8970439 [details]
> Bug 1456129 - Extend HAR toolbar with import;
> 
> https://reviewboard.mozilla.org/r/239028/#review245070
> 
> Works great!  What is the use case for this though?  Is there some type of
> comparison tool or is it simply for auditing?
It's intended as HAR file preview feature.

You can also drag drop HAR file onto Network panel content, but it's a bit hidden and users don't know about it. Having the feature available in the UI helps.

Thanks David for the review!

Honza
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f1618a167883
Extend HAR toolbar with import; r=davidwalsh
Backed out for failing eslint at /builds/worker/checkouts/gecko/devtools/client/netmonitor/src/components/Toolbar.js:28

Push that caused the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=f1618a16788385f61267bf584d702e7db13c1b9a

Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=175664047&repo=autoland&lineNumber=255

Backout: https://hg.mozilla.org/integration/autoland/rev/ff08a042faec4233facf5b879be7d2a95acd08c9
Flags: needinfo?(odvarko)
Sorry, both failures fixed!

Honza
Flags: needinfo?(odvarko)
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c75b36672e2a
Extend HAR toolbar with import; r=davidwalsh
Backe dout for failing eslit at /builds/worker/checkouts/gecko/devtools/client/netmonitor/src/components/DropHarHandler.js:13 and clipboard at devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=4da66989752079b16519ad896cdf9267f4f17dac

Failure log:
Eslint: https://treeherder.mozilla.org/logviewer.html#?job_id=175668906&repo=autoland&lineNumber=66

Clipboard: https://treeherder.mozilla.org/logviewer.html#?job_id=175672426&repo=autoland&lineNumber=7915
Flags: needinfo?(odvarko)
(In reply to Andreea Pavel [:apavel] from comment #10)
> Backe dout for failing eslit at
> /builds/worker/checkouts/gecko/devtools/client/netmonitor/src/components/
> DropHarHandler.js:13 and clipboard at
> devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js
> 
> Push with failures:
> https://treeherder.mozilla.org/#/
> jobs?repo=autoland&revision=4da66989752079b16519ad896cdf9267f4f17dac
> 
> Failure log:
> Eslint:
> https://treeherder.mozilla.org/logviewer.
> html#?job_id=175668906&repo=autoland&lineNumber=66
> 
> Clipboard:
> https://treeherder.mozilla.org/logviewer.
> html#?job_id=175672426&repo=autoland&lineNumber=7915

Backout: https://hg.mozilla.org/integration/autoland/rev/00e2674c6aea301e1c84d5e10f973c4d84dc03e4
The ESlint failure occurs because bug 1456686 got merged and the now unused HARImporter gets detected.
You're also failing browser/base/content/test/static/browser_misused_characters_in_strings.js

07:23:27    ERROR -  51 INFO TEST-UNEXPECTED-FAIL | browser/base/content/test/static/browser_misused_characters_in_strings.js | jar:file:///Z:/task_1524726398/build/application/firefox/browser/omni.ja!/chrome/en-US/locale/en-US/devtools/client/netmonitor.properties with key=netmonitor.context.importHar has a misused ellipsis. Strings with an ellipsis should use the Unicode … character instead of three periods. -
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.

hg error in cmd: hg rebase -s 8044e25d9af8367c430ad1e0b3ebeaba14993a47 -d 04ed44189998: rebasing 460631:8044e25d9af8 "Bug 1456129 - Extend HAR toolbar with import; r=davidwalsh" (tip)
other [source] changed devtools/client/netmonitor/src/har/har-menu-utils.js which local [dest] deleted
use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
merging devtools/client/locales/en-US/netmonitor.properties
merging devtools/client/netmonitor/src/components/App.js
merging devtools/client/netmonitor/src/components/DropHarHandler.js
merging devtools/client/netmonitor/src/components/MonitorPanel.js
merging devtools/client/netmonitor/src/components/Toolbar.js
merging devtools/client/netmonitor/src/utils/menu.js
warning: conflicts while merging devtools/client/netmonitor/src/components/Toolbar.js! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/35223e75d84e
Extend HAR toolbar with import; r=davidwalsh
https://hg.mozilla.org/mozilla-central/rev/35223e75d84e
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.