summaryrefslogtreecommitdiffstats
path: root/layout/tools/layout-debug
diff options
context:
space:
mode:
Diffstat (limited to 'layout/tools/layout-debug')
-rw-r--r--layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp2
-rw-r--r--layout/tools/layout-debug/ui/content/layoutdebug.js2
2 files changed, 1 insertions, 3 deletions
diff --git a/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp b/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp
index 05ad47356d..6df2ad5d71 100644
--- a/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp
+++ b/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp
@@ -21,8 +21,6 @@
#include "nsViewManager.h"
#include "nsIFrame.h"
-#include "nsLayoutCID.h"
-
#include "mozilla/dom/Document.h"
#include "mozilla/dom/Element.h"
#include "mozilla/Preferences.h"
diff --git a/layout/tools/layout-debug/ui/content/layoutdebug.js b/layout/tools/layout-debug/ui/content/layoutdebug.js
index 0c68f0155c..b381822c3c 100644
--- a/layout/tools/layout-debug/ui/content/layoutdebug.js
+++ b/layout/tools/layout-debug/ui/content/layoutdebug.js
@@ -443,7 +443,7 @@ function toggle(menuitem) {
function openFile() {
var fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
- fp.init(window, "Select a File", Ci.nsIFilePicker.modeOpen);
+ fp.init(window.browsingContext, "Select a File", Ci.nsIFilePicker.modeOpen);
fp.appendFilters(Ci.nsIFilePicker.filterHTML | Ci.nsIFilePicker.filterAll);
fp.open(rv => {
if (