Description
Windows opened via <a target=_blank>
currently have an opener unless specified otherwise via rel="noopener"
. While most developers expect a window opened via window.open()
to have an opener, I believe most do not necessarily realize the same applies to windows opened via <a target=_blank>
. It is unfortunately too rare to see Web developers use rel="noopener"
in cases where it can and should definitely be used, even on top Web sites (see for example articles on Google News).
As a result, I would argue that we should switch the default behavior so that windows opened via <a target=_blank>
do not get an opener, except if the developers explicitly asks for one via rel="opener"
.
This change would be beneficial for security: both in the general Web security aspect (e.g. not being able to navigate one's opener) but also for process isolation. For engines such as WebKit which do not currently support out of process iframes, this would allow for process swapping in more cases.
I understand this change could be risky for a compatibility point of view. It is hard - however - for me to tell how risky it would really be. Also, there would still be a way for Web content to get an opener if they really wanted to, either by using window.open()
, or rel="opener"
.
We are considering experimenting with this new behavior in WebKit (via Safari Technology Preview) so I wanted to file this issue beforehand to gather some feedback and get a feel of how other browser vendors feel about this. For example, if you know of a good reason why we should definitely not do this, we'd really like know :)