Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Unified Diff: ceee/firefox/content/window_api.js

Issue 5512001: Cloned from issue http://codereview.chromium.org/5277004/ by rogerta@chromium... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ceee/firefox/content/tab_api.js ('k') | ceee/firefox/modules/global.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/firefox/content/window_api.js
===================================================================
--- ceee/firefox/content/window_api.js (revision 67716)
+++ ceee/firefox/content/window_api.js (working copy)
@@ -143,7 +143,12 @@
CEEE_window_internal_.CMD_GET_CURRENT_WINDOW = 'windows.getCurrent';
CEEE_window_internal_.getCurrentWindow_ = function(cmd, data) {
- return this.buildWindowValue(window);
+ var tab = data.tab;
+ if (tab) {
+ var win = CEEE_mozilla_windows.findWindowFromCfSessionId(tab.id);
+ if (win)
+ return this.buildWindowValue(win);
+ }
};
CEEE_window_internal_.CMD_GET_LAST_FOCUSED_WINDOW =
« no previous file with comments | « ceee/firefox/content/tab_api.js ('k') | ceee/firefox/modules/global.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698