index.html:
<iframe srcdoc="<a href=popup.html target=test rel=noreferrer>Open a popup?</a>" sandbox="allow-popups"></iframe>
popup.html:
<script> document.write("Origin: " + self.origin + "<br>Name" + self.name); </script>
I think ideally we'd ignore rel="noreferrer noopener" and create an auxiliary browsing context. Supporting non-auxiliary browsing contexts with inherited states seems like complexity that's better avoided, but perhaps there are some implications I haven't thought through.
Bug 1521542 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
index.html:
```html
<iframe srcdoc="<a href=popup.html target=test rel=noreferrer>Open a popup?</a>" sandbox="allow-popups"></iframe>
```
popup.html:
```html
<script> document.write("Origin: " + self.origin + "<br>Name" + self.name); </script>
```
I think ideally we'd ignore rel="noreferrer noopener" and create an auxiliary browsing context. Supporting non-auxiliary browsing contexts with inherited states seems like complexity that's better avoided, but perhaps there are some implications I haven't thought through.
index.html:
```html
<iframe srcdoc="<a href=popup.html target=test rel=noreferrer>Open a popup?</a>" sandbox="allow-popups"></iframe>
```
popup.html:
```html
<script> document.write("Origin: " + self.origin + "<br>Name:" + self.name); </script>
```
I think ideally we'd ignore rel="noreferrer noopener" and create an auxiliary browsing context. Supporting non-auxiliary browsing contexts with inherited states seems like complexity that's better avoided, but perhaps there are some implications I haven't thought through.