forked from servo/servo
-
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.
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 servo#9919.
- Loading branch information
Showing
8 changed files
with
102 additions
and
9 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
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
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
3 changes: 3 additions & 0 deletions
3
tests/wpt/mozilla/meta/css/iframe/mozbrowser_navigation.html.ini
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,3 @@ | ||
[mozbrowser_navigation.html] | ||
type: reftest | ||
prefs: [dom.mozbrowser.enabled:true] |
33 changes: 33 additions & 0 deletions
33
tests/wpt/mozilla/tests/css/iframe/mozbrowser_navigation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
|
19 changes: 19 additions & 0 deletions
19
tests/wpt/mozilla/tests/css/iframe/mozbrowser_navigation_ref.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
|
||
|