Enable tools menu in DevTools
See original GitHub issueWe currently disable the export menu in DevTools:
/*
Some features in the export drop down menu don't work in the DevTools
client. They could with some tweaks, but currently they don't. For example:
Saving as HTML/JSON - does not bring up a file dialog, as one would expect in DevTools.
also, it saves the AuditsPanel HTML, which is funky.
*/
.lh-devtools .lh-export__button {
display: none;
}
Need to:
- Override _saveFile in Audits panel, and use the DevTools save functionality instead. Difference being that the system file dialog prompt will open.
getReportHtml
currently causes the entire DevTools app’s HTML to be saved. Could changethis._document.documentElement
to_getScrollParent
- but, it wouldn’t create a well-formed HTML file. I think we’d have to overridegetReportHtml
in DevTools, and regenerate the report but withLighthouse.ReportGenerator.generateReportHtml
- that usesreport-template.html
, which the normal DevTools flow does not.
For 1, maybe we could just change the normal report to open with a file system dialog?
With this, do we want to scratch this Chromium change - and remove the “save” action from the Audits panel?
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Run commands in the Command Menu - Chrome Developers
# Open the Command Menu · Press Control + Shift + P (Windows / Linux) or Command + Shift + P (Mac). ·...
Read more >How to Open the Developer Tools in a Browser
From the drop-down menu that appears, move your mouse cursor over More tools, and select Developer tools from the expanded menu.
Read more >Use the developer tools in the Develop menu in Safari on Mac
If you don't see the Develop menu in the menu bar, choose Safari > Settings, click Advanced, then select “Show Develop menu in...
Read more >The Beginner's Guide to Chrome Developer Tools
Open the Chrome menu and go to “More Tools” > “Developer Tools.” chrome menu screenshot. Finally, you can right-click (Windows) or Ctrl-click (Mac)...
Read more >no developer tools menu in chrome - Google Groups
Enable USB debugging (within the Android settings, not specifically the browser), plug your device to your computer, start desktop Chrome and go ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t believe it’s possible to open the “Save As” dialog from normal js. The best we can do is what it’s currently doing, using an
<a href="bloburl" download="report.html">
to trigger the download.Or do you mean “change the normal report to open with a file system dialog” like change it when in devtools (though a
devtools-ui-features.js
or whatever)? If so, I apologize for drawing this all out 😃yeah, the default behavior of the regular report experience