diff --git a/browser/devtools/scratchpad/scratchpad.js b/browser/devtools/scratchpad/scratchpad.js
index 3700143549e..6e1e609faea 100644
--- a/browser/devtools/scratchpad/scratchpad.js
+++ b/browser/devtools/scratchpad/scratchpad.js
@@ -1068,7 +1068,15 @@ var Scratchpad = {
handler.apply(observer, aArgs);
}
}
- }
+ },
+
+ openDocumentationPage: function SP_openDocumentationPage()
+ {
+ let url = this.strings.GetStringFromName("help.openDocumentationPage");
+ let newTab = this.gBrowser.addTab(url);
+ this.browserWindow.focus();
+ this.gBrowser.selectedTab = newTab;
+ },
};
XPCOMUtils.defineLazyGetter(Scratchpad, "strings", function () {
diff --git a/browser/devtools/scratchpad/scratchpad.xul b/browser/devtools/scratchpad/scratchpad.xul
index eb3c17b08c2..b0dc59960bb 100644
--- a/browser/devtools/scratchpad/scratchpad.xul
+++ b/browser/devtools/scratchpad/scratchpad.xul
@@ -83,6 +83,7 @@