mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
script: Make iframes know their pipeline IDs at all times, even after
navigation. Since WebRender uses the pipeline ID stored in the iframe element to determine which pipeline to display, it had better be kept up to date! Closes #9919.
This commit is contained in:
parent
c011c3197d
commit
7bd257089c
8 changed files with 102 additions and 9 deletions
|
@ -1788,6 +1788,18 @@
|
|||
"url": "/_mozilla/css/iframe/hide_layers2.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/mozbrowser_navigation.html": [
|
||||
{
|
||||
"path": "css/iframe/mozbrowser_navigation.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/iframe/mozbrowser_navigation_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/iframe/mozbrowser_navigation.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/multiple_external.html": [
|
||||
{
|
||||
"path": "css/iframe/multiple_external.html",
|
||||
|
@ -8516,6 +8528,18 @@
|
|||
"url": "/_mozilla/css/iframe/hide_layers2.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/mozbrowser_navigation.html": [
|
||||
{
|
||||
"path": "css/iframe/mozbrowser_navigation.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/iframe/mozbrowser_navigation_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/iframe/mozbrowser_navigation.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/multiple_external.html": [
|
||||
{
|
||||
"path": "css/iframe/multiple_external.html",
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[mozbrowser_navigation.html]
|
||||
type: reftest
|
||||
prefs: [dom.mozbrowser.enabled:true]
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
iframe {
|
||||
display: block;
|
||||
border: 1px solid black;
|
||||
width: 500px;
|
||||
height: 300px;
|
||||
margin-left: 10px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
</style>
|
||||
<link rel="match" href="mozbrowser_navigation_ref.html">
|
||||
</head>
|
||||
<body>
|
||||
<iframe mozbrowser="true" src="data:text/html,Hello%20world"></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName('iframe')[0];
|
||||
iframe.addEventListener('load', function first() {
|
||||
iframe.removeEventListener('load', first);
|
||||
iframe.src = "data:text/html,Foo";
|
||||
iframe.addEventListener('load', function() {
|
||||
iframe.goBack();
|
||||
iframe.offsetHeight; // flush layout
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
}, false);
|
||||
}, false);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
iframe {
|
||||
display: block;
|
||||
border: 1px solid black;
|
||||
width: 500px;
|
||||
height: 300px;
|
||||
margin-left: 10px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<iframe src="data:text/html,Hello%20world"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue