mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 766616. Don't try to inject mozSocial in about pages. r=jaws
This commit is contained in:
parent
b2d3fe5e5f
commit
820eab13c3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user