Skip to content

Commit

Permalink
Deal with <frame> edge case in the code from bug 1891335.
Browse files Browse the repository at this point in the history
Apparently we might not create a subdoc frame for <frame> unless it's
inside <frameset>.

Let's treat it as fully hidden.

Differential Revision: https://phabricator.services.mozilla.com/D221943

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1917361
gecko-commit: 36af09c3c6fa2111176acc433edc074dda75209d
gecko-reviewers: smaug
  • Loading branch information
emilio authored and moz-wptsync-bot committed Sep 13, 2024
1 parent c49e7dd commit cc35f23
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917361">
<script>
document.addEventListener("DOMContentLoaded", () => {
const a = new Document()
const b = a.createElementNS("http://www.w3.org/1999/xhtml", "frame")
document.documentElement.appendChild(b)
try { b.contentWindow.history.replaceState(undefined, "𛵢") } catch (e) {}
b.contentWindow.history.go()
})
</script>

0 comments on commit cc35f23

Please sign in to comment.