hint icon indicating copy to clipboard operation
hint copied to clipboard

Noopener

Open molant opened this issue 4 years ago • 4 comments

Might be time to revisit this hint and the advice it provides:

https://twitter.com/ericlaw/status/1351976704210849795?s=21

molant avatar Jan 21 '21 03:01 molant

If I'm reading the tweet correctly it means target="_blank" implies noopener in Chrome 88+ (as well as the latest versions of Firefox and Safari since some time in 2019).

Seems we should update the hint then to no longer suggest adding noopener unless you're still targeting a browser that needs it (which is still probably likely for most people in the immediate future).

antross avatar Jan 21 '21 16:01 antross

I have been told that noreferrer is the only value you need as noopener is already implied by it: https://html.spec.whatwg.org/#link-type-noreferrer

Is that not true for all browsers?

masi avatar Feb 16 '21 20:02 masi

It depends on the browsers you need to support. Newer version do not require anything, while olders might need noreferral/noopener. The current hint does not reflect yet the case where nothing is required.

molant avatar Feb 17 '21 01:02 molant

We should be able to use the MDN data related to this page to update hint-disown-opener

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#browser_compatibility

sarvaje avatar Mar 12 '21 17:03 sarvaje