Skip to content
This repository was archived by the owner on Jan 4, 2019. It is now read-only.

Implements chrome.windows.remove method #290

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Conversation

jonathansampson
Copy link
Collaborator

Implements the chrome.windows.remove method.

Fixes brave/browser-laptop#8678

if (win) {
win.close()
} else {
console.warn('chrome.windows.remove could not find windowId ' + windowId)
Copy link
Collaborator

@bridiver bridiver Sep 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it isn't clear from the docs, but this method should set lastError if the window id doesn't exist. See tabs.remove in tabs_bindings.js for an example

kevinlawler
kevinlawler previously approved these changes Sep 7, 2017
Copy link
Contributor

@kevinlawler kevinlawler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@jonathansampson
Copy link
Collaborator Author

@bridiver Now setting lastError when necessary.

@bridiver
Copy link
Collaborator

please set branch labels/milestone

@bridiver bridiver added this to the 4.4.27 milestone Sep 29, 2017
@bridiver bridiver merged commit 7949e04 into master Oct 10, 2017
bridiver added a commit that referenced this pull request Oct 12, 2017
Implements chrome.windows.remove method
bridiver added a commit that referenced this pull request Oct 21, 2017
Implements chrome.windows.remove method
@bsclifton bsclifton deleted the chrome.windows.remove branch June 18, 2018 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants