Bug 1403977 - Show taller toolbox for tool-specific screenshots;r=MattN
authorBrian Grinstead <bgrinstead@mozilla.com>
Fri, 10 Nov 2017 15:12:53 -0800
changeset 391575 45ee82268d2d8eebd49fb655ff302ba384a95488
parent 391574 2ce1806a42ca685a9ba0ba1c35c51b5a13b1a9f7
child 391576 43948076a0a623db3cbdd3718c888e7a41731511
push id55270
push userbgrinstead@mozilla.com
push dateMon, 13 Nov 2017 20:23:43 +0000
treeherderautoland@43948076a0a6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1403977
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1403977 - Show taller toolbox for tool-specific screenshots;r=MattN MozReview-Commit-ID: 27O0YDdFbzr
browser/tools/mozscreenshots/mozscreenshots/extension/configurations/DevTools.jsm
browser/tools/mozscreenshots/mozscreenshots/extension/lib/mozscreenshots-script.js
--- a/browser/tools/mozscreenshots/mozscreenshots/extension/configurations/DevTools.jsm
+++ b/browser/tools/mozscreenshots/mozscreenshots/extension/configurations/DevTools.jsm
@@ -29,26 +29,28 @@ this.DevTools = {
   init(libDir) {
     let panels = ["options", "webconsole", "jsdebugger", "styleeditor",
                   "performance", "netmonitor"];
 
     panels.forEach(panel => {
       this.configurations[panel] = {};
       this.configurations[panel].selectors = [selectToolbox];
       this.configurations[panel].applyConfig = async function() {
+        Services.prefs.setIntPref("devtools.toolbox.footer.height", 800);
         await gDevTools.showToolbox(getTargetForSelectedTab(), panel, "bottom");
         await new Promise(resolve => setTimeout(resolve, 500));
       };
     });
   },
 
   configurations: {
     bottomToolbox: {
       selectors: [selectToolbox],
       async applyConfig() {
+        Services.prefs.clearUserPref("devtools.toolbox.footer.height");
         await gDevTools.showToolbox(getTargetForSelectedTab(), "inspector", "bottom");
         await new Promise(resolve => setTimeout(resolve, 1000));
       },
     },
     sideToolbox: {
       selectors: [selectToolbox],
       async applyConfig() {
         await gDevTools.showToolbox(getTargetForSelectedTab(), "inspector", "side");
--- a/browser/tools/mozscreenshots/mozscreenshots/extension/lib/mozscreenshots-script.js
+++ b/browser/tools/mozscreenshots/mozscreenshots/extension/lib/mozscreenshots-script.js
@@ -6,8 +6,14 @@ console.log(document, document.body);
 console.assert(false, "Failing mozscreenshots assertion");
 
 console.group("Grouped Message");
 console.log("group message 1");
 console.groupEnd();
 
 console.count("counter");
 console.count("counter");
+
+console.log("first", {a: 1}, "second", {b: "hello"}, "third", {c: new Map()});
+console.log("first", {a: 1}, "second", {b: "hello"});
+console.log("first", {a: 1}, "\nsecond", {b: "hello"});
+console.log("first", "\nsecond");
+console.log("\nfirst", "second");