


Update: While much of what has been suggested has serious limitations and usability issues, the latest suggestion (specific to TamperMonkey) using // window.close in the script header will often do the trick even on those tabs that normally can't handle the close method. So does anyone have real, functional and proven method of closing a window using something like javascript:window.close() or javascript:self.close() that actually does what is expected and something that happens just fine in every browser that is NOT Chrome based? Any suggestions would be greatly appreciated and I am looking for Javascript specific solution, nothing JQuery or third party implementation. That is patently false but regardless it is supposed to still do it, even if it requires to pop up an alert to confirm. Now there seems to be a belief that in Chrome you can't close by script any window that is not script created. Sometimes data might take slightly longer to delete than the length of time that you specify.The issue is that when I invoke window.close() or self.close() it doesn't close the window. Maximum- 2,147,483,647, the largest value that a signed 32-bit integer field can hold.Specify the length of time after which Chrome deletes certain types of data. This policy does not take precedence over AllowDeletingBrowserHistory.Ĭonfigure browsing data lifetime settings for Chrome. Specify the browsing data types that are deleted when Chrome closes. hosted_app_data-Deletes data cache for hosted apps that are installed in the browser.site_settings-Resets site settings to their defaults.autofill-Deletes saved autofill data that was saved in the browser.password_signin-Deletes saved passwords.cached_images_and_files-Deletes cached images and files on the users device.

cookies_and_other_site_data-Deletes cookies and other site data.download_history-Deletes the download history.browsing_history-Deletes the browsing history.The data types that you can delete are:.

Likewise, if you set the policy to delete data at user level, you need to turn off Sync at user level. If you set the policy to delete data at platform level, you need to turn off Sync at platform level.
