Bug 831900 - Ensure that SpecialPowers.getFocusedElementForWindow actually returns something; r=ted
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 17 Jan 2013 15:23:49 -0500
changeset 119176 b8e4b51b78ab64a59b82250587152859247806c6
parent 119175 55d244d28023239ac82ca551394efb1c313c870c
child 119177 d9f4929d5738dd93a9ec684bf0ff4c56f6770a48
push id21509
push usereakhgari@mozilla.com
push dateThu, 17 Jan 2013 20:23:54 +0000
treeherdermozilla-inbound@b8e4b51b78ab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs831900
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 831900 - Ensure that SpecialPowers.getFocusedElementForWindow actually returns something; r=ted
testing/specialpowers/content/specialpowersAPI.js
--- a/testing/specialpowers/content/specialpowersAPI.js
+++ b/testing/specialpowers/content/specialpowersAPI.js
@@ -1106,17 +1106,17 @@ SpecialPowersAPI.prototype = {
 
     this._fm = Components.classes["@mozilla.org/focus-manager;1"].
                         getService(Components.interfaces.nsIFocusManager);
 
     return this._fm;
   },
 
   getFocusedElementForWindow: function(targetWindow, aDeep, childTargetWindow) {
-    this.focusManager.getFocusedElementForWindow(targetWindow, aDeep, childTargetWindow);
+    return this.focusManager.getFocusedElementForWindow(targetWindow, aDeep, childTargetWindow);
   },
 
   activeWindow: function() {
     return this.focusManager.activeWindow;
   },
 
   focusedWindow: function() {
     return this.focusManager.focusedWindow;