forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1667491: Fix null pointer deref. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D91834
- Loading branch information
Showing
3 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<script> | ||
function go() { | ||
const HTML = ` | ||
<script> | ||
function go() { | ||
document.body.appendChild(a) | ||
window.frames[0].onbeforeunload = document.createElement("body").onload; | ||
window.requestIdleCallback(() => { | ||
window.close(); | ||
finish(); | ||
}); | ||
} | ||
<\/script> | ||
<body onload="go()"> | ||
<iframe id="a"></iframe> | ||
<iframe></iframe> | ||
`; | ||
|
||
let win = window.open(`data:text/html,${encodeURIComponent(HTML)}`); | ||
win.finish = function() { | ||
document.documentElement.removeAttribute("class"); | ||
}; | ||
} | ||
</script> | ||
</head> | ||
<body onload="go()"> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters