4d9dc8c0e6
This pull request to adds better support for OOP iframes (see #2548) The current problem with OOP iframes is that they are moved to a different target. Because of this, the previous versions of Puppeteer pretty much ignored them. This change extends the FrameManager to already take OOP iframes into account and hides the fact that those frames are actually in different targets. Further work needs to be done to also make the NetworkManager aware of these and to make sure that settings like emulations etc. are also properly passed down to the new targets.
11 lines
346 B
HTML
11 lines
346 B
HTML
<script>
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
const iframe = document.createElement('iframe');
|
|
const url = new URL(location.href);
|
|
url.hostname = url.hostname === 'localhost' ? '127.0.0.1' : 'localhost';
|
|
url.pathname = '/oopif.html';
|
|
iframe.src = url.toString();
|
|
document.body.appendChild(iframe);
|
|
}, false);
|
|
</script>
|