| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html id="template_root"> |
| 3 <head> | 3 <head> |
| 4 <title i18n-content="title"></title> | 4 <title i18n-content="title"></title> |
| 5 <style> | 5 <style> |
| 6 body { | 6 body { |
| 7 background-color:#500; | 7 background-color:#500; |
| 8 font-family:Helvetica,Arial,sans-serif; | 8 font-family:Helvetica,Arial,sans-serif; |
| 9 margin:0px; | 9 margin:0px; |
| 10 } | 10 } |
| 11 .background { | 11 .background { |
| 12 position:absolute; | 12 position:absolute; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 <script> | 80 <script> |
| 81 function agreed(form) { | 81 function agreed(form) { |
| 82 form.continue_button.disabled = !form.continue_button.disabled; | 82 form.continue_button.disabled = !form.continue_button.disabled; |
| 83 } | 83 } |
| 84 | 84 |
| 85 function sendCommand(command) { | 85 function sendCommand(command) { |
| 86 window.domAutomationController.setAutomationId(1); | 86 window.domAutomationController.setAutomationId(1); |
| 87 window.domAutomationController.send(command); | 87 window.domAutomationController.send(command); |
| 88 } | 88 } |
| 89 | 89 |
| 90 function showDiagnostic(errorID) { | |
| 91 sendCommand("showDiagnostic:" + errorID); | |
| 92 } | |
| 93 | |
| 94 function reportError(errorID) { | |
| 95 sendCommand("reportError:" + errorID); | |
| 96 } | |
| 97 | |
| 98 function learnMore() { | 90 function learnMore() { |
| 99 sendCommand("learnMore"); | 91 sendCommand('learnMore'); |
| 100 } | 92 } |
| 101 | 93 |
| 102 function proceed() { | 94 function proceed() { |
| 103 sendCommand("proceed"); | 95 sendCommand('proceed'); |
| 104 } | 96 } |
| 105 | 97 |
| 106 function takeMeBack() { | 98 function takeMeBack() { |
| 107 sendCommand("takeMeBack"); | 99 sendCommand('takeMeBack'); |
| 100 } |
| 101 |
| 102 /** |
| 103 * Called when the user clicks the link to show the diagnostic or report a |
| 104 * malware site, depending on the threat type. |
| 105 * @param {MouseEvent} event The mouse event that triggered this call. |
| 106 */ |
| 107 function showOrReport(event) { |
| 108 var id = event.currentTarget.getAttribute('chromiumID'); |
| 109 var isMalware = event.currentTarget.getAttribute('chromiumIsMalware'); |
| 110 var cmd = isMalware ? 'showDiagnostic:' : 'reportError:'; |
| 111 sendCommand(cmd + id); |
| 112 return false; |
| 108 } | 113 } |
| 109 </script> | 114 </script> |
| 110 </head> | 115 </head> |
| 111 | 116 |
| 112 <body oncontextmenu="return false;"> | 117 <body oncontextmenu="return false;"> |
| 113 <div class="background"><img src="ssl_roadblock_background.png" width="100%" hei
ght="100%" alt="background" onmousedown="return false;"/></div> | 118 <div class="background"> |
| 119 <img src="ssl_roadblock_background.png" width="100%" height="100%" |
| 120 alt="background" onmousedown="return false;"> |
| 121 </div> |
| 114 <table width="100%" cellspacing="0" cellpadding="0"> | 122 <table width="100%" cellspacing="0" cellpadding="0"> |
| 115 <td class="cell" valign="middle" align="center"> | 123 <td class="cell" valign="middle" align="center"> |
| 116 <div class="box"> | 124 <div class="box"> |
| 117 <div class="icon"><img src="shared/images/phishing_icon.png" alt="Malware
Icon" onmousedown="return false;"/></div> | 125 <div class="icon"> |
| 126 <img src="shared/images/phishing_icon.png" alt="Malware Icon" |
| 127 onmousedown="return false;"> |
| 128 </div> |
| 118 <div class="title" i18n-content="headLine"></div> | 129 <div class="title" i18n-content="headLine"></div> |
| 119 <div class="main" i18n-values=".innerHTML:description1"></div> | 130 <div class="main" i18n-values=".innerHTML:description1"></div> |
| 120 <div class="main" i18n-content="description2"></div> | 131 <div class="main" i18n-content="description2"></div> |
| 121 <div class="main" id="template_root"> | 132 <div class="main"> |
| 122 <table cellpadding="5" jsvalues="$counter:{value: 0}"> | 133 <table cellpadding="5" jsvalues="$counter:{value: 0}"> |
| 123 <tr jsselect="errors" class="errorlist"> | 134 <tr jsselect="errors" class="errorlist"> |
| 124 <td jscontent="typeLabel"></td> | 135 <td jscontent="typeLabel"></td> |
| 125 <td jscontent="url"></td> | 136 <td jscontent="url"></td> |
| 126 <td><a href="" onclick="var id= this.getAttribute('chromiumID'); thi
s.getAttribute('chromiumIsMalware') ? showDiagnostic(id) : reportError(id); retu
rn false;" jscontent="errorLink" jsvalues="chromiumID:$counter.value;chromiumIsM
alware:type=='malware'" jseval="$counter.value++"></a></td> | 137 <td><a href="" onclick="showOrReport(event)" |
| 138 jsvalues="chromiumID:$counter.value;chromiumIsMalware:type=='mal
ware'" |
| 139 jscontent="errorLink" jseval="$counter.value++"></a></td> |
| 127 </tr> | 140 </tr> |
| 128 </table> | 141 </table> |
| 129 </div> | 142 </div> |
| 130 | 143 |
| 131 <div class="main"><a href="" i18n-content="description3" onclick="learnMor
e(); return false;" onmousedown="return false;"></a></div> | 144 <div class="main"> |
| 145 <a href="" i18n-content="description3" onmousedown="return false;" |
| 146 onclick="learnMore(); return false;"></a> |
| 147 </div> |
| 132 <div class="main"> | 148 <div class="main"> |
| 133 <form class="submission"> | 149 <form class="submission"> |
| 134 <input name="checky" id="checky" type="checkbox" onclick="agreed(this.
form)"> <label for="checky" i18n-content="confirm_text"></label> | 150 <input id="checky" name="checky" type="checkbox" |
| 135 <input type="button" name="continue_button" i18n-values="value:continu
e_button" disabled="true" onclick="proceed();"><br> | 151 jsdisplay="!proceedDisabled" |
| 136 <input type="button" name="back_button" i18n-values="value:back_button
" onclick="takeMeBack()"> | 152 onclick="agreed(this.form)"> |
| 153 <label for="checky" i18n-content="confirm_text" |
| 154 jsdisplay="!proceedDisabled"></label> |
| 155 <button name="continue_button" i18n-content="continue_button" |
| 156 disabled="true" jsdisplay="!proceedDisabled" |
| 157 onclick="proceed();"></button><br> |
| 158 <button name="back_button" i18n-content="back_button" |
| 159 onclick="takeMeBack()"></button> |
| 137 </form> | 160 </form> |
| 138 </div> | 161 </div> |
| 139 </div> | 162 </div> |
| 140 </td> | 163 </td> |
| 141 </table> | 164 </table> |
| 142 </body> | 165 </body> |
| 143 </html> | 166 </html> |
| OLD | NEW |