Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: chrome/test/data/extensions/api_test/bindings/iframe_before_navigate.html

Issue 2151693002: Fix extension bindings injection for iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <body>
4 <iframe id="frame" src="chrome-extension://ficgdghpakbhhkmdjamiedmcoobamkoo/publ ic.html"></iframe>
5 <script>
Devlin 2016/07/14 16:46:35 due to the semi-ambiguous ordering of when blink c
asargent_no_longer_on_chrome 2016/07/20 21:36:47 Done. Also added tests of existent/nonexisting pag
6 var didRun = false;
7 var id;
8 var frame = document.getElementById("frame");
9 try {
10 id = frame.contentWindow.eval("chrome.runtime.id");
11 frame.contentWindow.eval("chrome.runtime.sendMessage(" +
12 "'mlmdejkkkhmhchpmepehbcncoalclded', 'evil')");
13 } catch (e) {}
14 didRun = true;
15
16 function getResult() {
17 window.domAutomationController.send(didRun && typeof(id) == "undefined");
Devlin 2016/07/14 16:46:35 typeof is an operator, not a function, so this sho
asargent_no_longer_on_chrome 2016/07/20 21:36:47 Done.
18 }
19
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698