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

Unified Diff: chrome/renderer/resources/blocked_plugin.html

Issue 2967007: Disable outdated plugins, block non-sandboxed plugins. (Closed)
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/blocked_plugin.html
diff --git a/chrome/renderer/resources/blocked_plugin.html b/chrome/renderer/resources/blocked_plugin.html
index bf97d5ed02803f72b29afc012c8f41529d206494..78d8a664f778dc603fc9e1615044eae234e1d499 100644
--- a/chrome/renderer/resources/blocked_plugin.html
+++ b/chrome/renderer/resources/blocked_plugin.html
@@ -1,6 +1,20 @@
<!DOCTYPE html>
<html>
<head>
+<script>
+function debug(msg) {
+ document.getElementById('debug').innerHTML = msg;
+}
+
+function bodyClicked() {
+ var group = templateData.pluginGroup;
+ if (group) {
+ plugin.update(group.update_url);
+ } else {
+ plugin.load();
+ }
+}
+</script>
<style>
body {
background-color: rgb(252, 235, 162);
@@ -43,14 +57,16 @@ body {
</head>
<body id="t">
-<div id="outer" onclick="plugin.load()">
+<div id="outer" onclick="bodyClicked()">
<div id="left"></div>
<div id="right"></div>
<div id="top"></div>
<div id="bottom"></div>
<div id="inner">
<div><img src="../../app/theme/extensions_section.png" /></div>
-<p i18n-content="loadPlugin">LOAD_PLUGIN</p>
+<p jsdisplay="!hasOwnProperty('pluginGroup') || !pluginGroup.critical" i18n-content="loadPlugin">LOAD_PLUGIN</p>
+<p jsdisplay="hasOwnProperty('pluginGroup')" i18n-content="updatePlugin">UPDATE_PLUGIN</p>
+<p id="debug"> </p>
</div>
</div>
</body>
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698