I know this question is old, but I ran into the same problem. This worked for me:
window.open('', '_self', ''); //bug fix
window.close();
More Related Contents:
- How to wait until an element exists?
- Chrome doesn’t delete session cookies
- How do I load an HTML page in a div using JavaScript?
- Chrome desktop notification example [closed]
- How does the paste image from clipboard functionality work in Gmail and Google Chrome 12+?
- JSFiddle code not working in my own page
- How to use jQuery in chrome extension?
- “Uncaught TypeError: a.indexOf is not a function” error when opening new foundation project
- Chrome extension: How to save a file on disk
- How to getting browser current locale preference using javascript?
- getUserMedia() in chrome 47 without using https
- Chrome Extension: Make it run every page load
- \u200b (Zero width space) characters in my JS code. Where did they come from?
- Chrome Autofill/Autocomplete no value for password
- Animated gif only loops once in Chrome and Firefox
- Finding JavaScript memory leaks with Chrome
- Facebook: Unsafe JavaScript issue (document.domain values should be same)
- google chrome extension :: console.log() from background page?
- Sending message to background script
- Resource interpreted as Script but transferred with MIME type text/plain – for local file
- Can’t find serviceWorker in navigator anymore
- Chrome Speech Synthesis with longer texts
- Javascript window.print() in chrome, closing new window or tab instead of cancelling print leaves javascript blocked in parent window
- Stop Chrome Caching My JS Files
- Force hide address bar in Chrome on Android
- CreateTextRange is not working in Chrome
- chrome Pop-up blocker when to re-check after allowing page
- Cross-domain XMLHttpRequest using background pages
- XMLHttpRequest; Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource [duplicate]
- blocked a frame of origin “null” from accessing a cross-origin frame – chrome