diff options
author | ericdingle@chromium.org <ericdingle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-16 19:52:56 +0000 |
---|---|---|
committer | ericdingle@chromium.org <ericdingle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-16 19:52:56 +0000 |
commit | f7faf2e6fcf95298aeba944f17c4d4fe9e32dbfd (patch) | |
tree | 135c2d8859000b3630069425417e680b29cc4d46 | |
parent | 85d2654929c4b52cd4156e469c5086f3559f5818 (diff) | |
download | chromium_src-f7faf2e6fcf95298aeba944f17c4d4fe9e32dbfd.zip chromium_src-f7faf2e6fcf95298aeba944f17c4d4fe9e32dbfd.tar.gz chromium_src-f7faf2e6fcf95298aeba944f17c4d4fe9e32dbfd.tar.bz2 |
Fix to FF CEEE windows.getCurrent implementation.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5910003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69449 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | ceee/firefox/content/overlay.js | 1 | ||||
-rw-r--r-- | ceee/firefox/content/window_api.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ceee/firefox/content/overlay.js b/ceee/firefox/content/overlay.js index 7b94b5e..9931566 100644 --- a/ceee/firefox/content/overlay.js +++ b/ceee/firefox/content/overlay.js @@ -828,7 +828,6 @@ CEEE_Class.prototype.onCfMessage_ = function(evt, target) { this.logError('onCfMessage_: exception thrown by handler cmd=' + cmd + ' err=' + ex); err = ex.message; - value = null; } } else { this.logError('onCfMessage_: dispatch entry is not a function'); diff --git a/ceee/firefox/content/window_api.js b/ceee/firefox/content/window_api.js index ac13f8b..9018d82 100644 --- a/ceee/firefox/content/window_api.js +++ b/ceee/firefox/content/window_api.js @@ -149,6 +149,9 @@ CEEE_window_internal_.getCurrentWindow_ = function(cmd, data) { if (win) return this.buildWindowValue(win); } + + throw(new Error(CEEE_window_internal_.CMD_GET_CURRENT_WINDOW + + ': invalid context')); }; CEEE_window_internal_.CMD_GET_LAST_FOCUSED_WINDOW = |