mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
Switch the browser tag sample to actually use <browser>, now that it's supported (as of http://crrev.com/145229).
This commit is contained in:
@@ -1,15 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Browser tag</title>
|
||||
</head>
|
||||
<body>
|
||||
<object id="mybrowser" src="http://news.google.com/" type="application/browser-plugin" width="640" height="480"></object>
|
||||
|
||||
<script src="move.js">
|
||||
|
||||
</script>
|
||||
|
||||
<browser src="http://news.google.com/" width="640" height="480"></browser>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
onload = function() {
|
||||
|
||||
var iframe = document.createElement('iframe');
|
||||
iframe.className = 'sandboxed';
|
||||
iframe.sandbox = 'allow-scripts';
|
||||
iframe.src = chrome.extension.getURL('iframe.html');
|
||||
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
}
|
||||
},
|
||||
"permissions": [
|
||||
"experimental"
|
||||
"experimental",
|
||||
"browserTag"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
mybrowser.postMessage("http://paul.kinlan.me");
|
||||
Reference in New Issue
Block a user