diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 9fd3183ef..64e67986b 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1218,7 +1218,8 @@ var tabWatcher = (function() { observe: function(subject, topic) { var win; try { - win = subject.QueryInterface(Ci.nsIDOMWindow); + win = subject.QueryInterface(Ci.nsIInterfaceRequestor) + .getInterface(Ci.nsIDOMWindow); } catch (ex) { } if ( !win ) {