mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
This makes it easier to manage bindings, being just init scripts. Fixes the BFCache binding problem. Makes bindings removable in Firefox. Fixes #31515.
12 lines
327 B
HTML
12 lines
327 B
HTML
<!DOCTYPE html>
|
|
<link rel='stylesheet' href='./one-style.css'>
|
|
<div>BFCached</div>
|
|
<script>
|
|
window.didShow = new Promise(f => window.addEventListener('pageshow', event => {
|
|
console.log(event);
|
|
window._persisted = !!event.persisted;
|
|
window._event = event;
|
|
f({ persisted: !!event.persisted });
|
|
}));
|
|
</script>
|