From 1598273d6a1e7ea35fb24dcae0e4889b02aa1a89 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 19 Oct 2015 19:05:18 -0400 Subject: [PATCH] minor code review --- platform/firefox/vapi-background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) {