Bug 766616. Don't try to inject mozSocial in about pages. r=jaws

This commit is contained in:
Felipe Gomes 2012-10-05 17:22:09 -07:00
parent b2d3fe5e5f
commit 820eab13c3

View File

@ -43,6 +43,11 @@ function injectController(doc, topic, data) {
if (!window)
return;
// Do not attempt to load the API into about: error pages
if (doc.documentURIObject.scheme == "about") {
return;
}
var containingBrowser = window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShell)