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:
@@ -0,0 +1,2 @@
|
||||
PASS: [object Object]
|
||||
PASS: [object Object]
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user