Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Extension API: chrome.windows.onFocusChanged #6195

Closed
jonathansampson opened this issue Dec 13, 2016 · 1 comment
Closed

Extension API: chrome.windows.onFocusChanged #6195

jonathansampson opened this issue Dec 13, 2016 · 1 comment

Comments

@jonathansampson
Copy link
Collaborator

jonathansampson commented Dec 13, 2016

Describe the issue you encountered:
The chrome.windows.onFocusChanged API is not presently supported. As a result, the following throws:

      chrome.windows.onFocusChanged.addListener((function(_this) {
        return function(wnd) {
          if (wnd !== chrome.windows.WINDOW_ID_NONE) {
            return chrome.tabs.query({
              windowId: wnd,
              active: true
            }, function(tabs) {
              if (tabs[0]) {
                return _this.register(tabs[0].id);
              }
            });
          }
        };
      })(this));

Expected behavior:
Brave should be able to inform Vimium when the window has lost focus.

Blocked Extensions

@jonathansampson jonathansampson mentioned this issue Jun 16, 2017
47 tasks
@jonathansampson jonathansampson changed the title Vimium: chrome.windows.onFocusChanged not supported Extension API: chrome.windows.onFocusChanged Jun 18, 2017
@jonathansampson
Copy link
Collaborator Author

Dupe of #4760

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant