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

Unified Diff: chrome/browser/resources/safe_browsing_multiple_threat_block.html

Issue 10694107: Revert 145523 - Add a policy to disable proceeding through the Safe Browsing interstitials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
Index: chrome/browser/resources/safe_browsing_multiple_threat_block.html
===================================================================
--- chrome/browser/resources/safe_browsing_multiple_threat_block.html (revision 145621)
+++ chrome/browser/resources/safe_browsing_multiple_threat_block.html (working copy)
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html id="template_root">
+<html>
<head>
<title i18n-content="title"></title>
<style>
@@ -87,76 +87,53 @@
window.domAutomationController.send(command);
}
+function showDiagnostic(errorID) {
+ sendCommand("showDiagnostic:" + errorID);
+}
+
+function reportError(errorID) {
+ sendCommand("reportError:" + errorID);
+}
+
function learnMore() {
- sendCommand('learnMore');
+ sendCommand("learnMore");
}
function proceed() {
- sendCommand('proceed');
+ sendCommand("proceed");
}
function takeMeBack() {
- sendCommand('takeMeBack');
+ sendCommand("takeMeBack");
}
-
-/**
- * Called when the user clicks the link to show the diagnostic or report a
- * malware site, depending on the threat type.
- * @param {MouseEvent} event The mouse event that triggered this call.
- */
-function showOrReport(event) {
- var id = event.currentTarget.getAttribute('chromiumID');
- var isMalware = event.currentTarget.getAttribute('chromiumIsMalware');
- var cmd = isMalware ? 'showDiagnostic:' : 'reportError:';
- sendCommand(cmd + id);
- return false;
-}
</script>
</head>
<body oncontextmenu="return false;">
-<div class="background">
- <img src="ssl_roadblock_background.png" width="100%" height="100%"
- alt="background" onmousedown="return false;">
-</div>
+<div class="background"><img src="ssl_roadblock_background.png" width="100%" height="100%" alt="background" onmousedown="return false;"/></div>
<table width="100%" cellspacing="0" cellpadding="0">
<td class="cell" valign="middle" align="center">
<div class="box">
- <div class="icon">
- <img src="shared/images/phishing_icon.png" alt="Malware Icon"
- onmousedown="return false;">
- </div>
+ <div class="icon"><img src="shared/images/phishing_icon.png" alt="Malware Icon" onmousedown="return false;"/></div>
<div class="title" i18n-content="headLine"></div>
<div class="main" i18n-values=".innerHTML:description1"></div>
<div class="main" i18n-content="description2"></div>
- <div class="main">
+ <div class="main" id="template_root">
<table cellpadding="5" jsvalues="$counter:{value: 0}">
<tr jsselect="errors" class="errorlist">
<td jscontent="typeLabel"></td>
<td jscontent="url"></td>
- <td><a href="" onclick="showOrReport(event)"
- jsvalues="chromiumID:$counter.value;chromiumIsMalware:type=='malware'"
- jscontent="errorLink" jseval="$counter.value++"></a></td>
+ <td><a href="" onclick="var id= this.getAttribute('chromiumID'); this.getAttribute('chromiumIsMalware') ? showDiagnostic(id) : reportError(id); return false;" jscontent="errorLink" jsvalues="chromiumID:$counter.value;chromiumIsMalware:type=='malware'" jseval="$counter.value++"></a></td>
</tr>
</table>
</div>
+ <div class="main"><a href="" i18n-content="description3" onclick="learnMore(); return false;" onmousedown="return false;"></a></div>
<div class="main">
- <a href="" i18n-content="description3" onmousedown="return false;"
- onclick="learnMore(); return false;"></a>
- </div>
- <div class="main">
<form class="submission">
- <input id="checky" name="checky" type="checkbox"
- jsdisplay="!proceedDisabled"
- onclick="agreed(this.form)">&nbsp;
- <label for="checky" i18n-content="confirm_text"
- jsdisplay="!proceedDisabled"></label>
- <button name="continue_button" i18n-content="continue_button"
- disabled="true" jsdisplay="!proceedDisabled"
- onclick="proceed();"></button><br>
- <button name="back_button" i18n-content="back_button"
- onclick="takeMeBack()"></button>
+ <input name="checky" id="checky" type="checkbox" onclick="agreed(this.form)">&nbsp;<label for="checky" i18n-content="confirm_text"></label>
+ <input type="button" name="continue_button" i18n-values="value:continue_button" disabled="true" onclick="proceed();"><br>
+ <input type="button" name="back_button" i18n-values="value:back_button" onclick="takeMeBack()">
</form>
</div>
</div>
Property changes on: chrome\browser\resources\safe_browsing_multiple_threat_block.html
___________________________________________________________________
Deleted: svn:mime-type
- text/html
« no previous file with comments | « chrome/browser/resources/safe_browsing_malware_block.html ('k') | chrome/browser/resources/safe_browsing_phishing_block.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698