You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2024. It is now read-only.
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport" content="width=device-width, initial-scale=1.0"></head><body><script>window.close();</script>
Test
</body></html>
Actual result:
The website is shown and "Test" is displayed.
Expected result:
The website (tab) should be closed.
On both Brave Android and Safari iOS the website behaves as expected, the tab is closed.
Mozilla MDN states the following about window.close()1:
This method can only be called on windows that were opened by a script using the Window.open() method, or on top-level windows that have a single history entry.
The window in the tab was NOT opened by a script so it doesn't meet the first criteria, but I think it should meet the second as it is a new window being opened from a link.
Enter account credentials > Finish sign in > Verify
ACTUAL RESULTS:
Verified that the website (tab) https://peach-tina-74.tiiny.site/ is not opened
Verified that signing in with Google to websites like https://tunein.com or https://lookielooapp.com temporarily opens a new tab, and when the sign-in flow is done, that tab closes automatically
Description:
The behaviour of the javascript
window.close()
function is not consistent with Brave Android or Safari iOS.Steps to Reproduce
The contents of the website are:
Actual result:
The website is shown and "Test" is displayed.
Expected result:
The website (tab) should be closed.
On both Brave Android and Safari iOS the website behaves as expected, the tab is closed.
Mozilla MDN states the following about
window.close()
1:The window in the tab was NOT opened by a script so it doesn't meet the first criteria, but I think it should meet the second as it is a new window being opened from a link.
Reproduces how often:
Every time - Tested on multiple phones.
Brave Version:
Version: 1.52.1 (23.7.11.14)
BraveCode: 1.52.129 (114.0.5735.198)
Device details:
iPhone 14 (iOS 16.5.1)
Website problems only:
Additional Information
Footnotes
https://developer.mozilla.org/en-US/docs/Web/API/Window/close ↩
The text was updated successfully, but these errors were encountered: