Make it possible to navigate <iframes>

Also, add support for exposing services to <iframes>. This worked before but
now that [Client=...] is gone we need to create another message pipe.

R=sky@chromium.org

Review URL: https://codereview.chromium.org/882723003
This commit is contained in:
Adam Barth
2015-01-27 10:35:52 -08:00
parent 4de104b325
commit 211ffcb881
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
PASS: [object Object]
PASS: [object Object]

View File

@@ -0,0 +1,17 @@
<html>
<import src="../resources/dump-as-text.sky" />
<iframe src="about:blank" />
<div id="result1">FAIL</div>
<div id="result2">FAIL</div>
<script>
var elmt = document.querySelector('iframe');
var pipe1 = elmt.takeServicesHandle();
document.getElementById("result1").textContent =
pipe1 ? "PASS: " + pipe1 : "FAIL: elmt.takeServicesHandle is missing";
var pipe2 = elmt.takeExposedServicesHandle();
document.getElementById("result2").textContent =
pipe2 ? "PASS: " + pipe2 : "FAIL: elmt.takeExposedServicesHandle is missing";
</script>
</html>