diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 19:57:52 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 19:57:52 +0000 |
commit | a5e4bb0a67fc355053668c1175c2371a41ee8c92 (patch) | |
tree | 259636f1f5f0742511df95d1c1b9d2ead1ad8a40 /chrome/browser/resources | |
parent | bd0b334ad288b039b6576db5877a57796d20c517 (diff) | |
download | chromium_src-a5e4bb0a67fc355053668c1175c2371a41ee8c92.zip chromium_src-a5e4bb0a67fc355053668c1175c2371a41ee8c92.tar.gz chromium_src-a5e4bb0a67fc355053668c1175c2371a41ee8c92.tar.bz2 |
Disabled the drag and drop of images and links in the blocking pages to prevent bad navigations.
Removed an unused file as well.
BUG=3235
TEST=Trigger a blocking page (ex: https://ebay.com). Try dragging the warning image and link around. This should not do anything.
Review URL: http://codereview.chromium.org/6590
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r-- | chrome/browser/resources/safe_browsing_malware_block.html | 4 | ||||
-rw-r--r-- | chrome/browser/resources/safe_browsing_phishing_block.html | 6 | ||||
-rw-r--r-- | chrome/browser/resources/ssl_error.html | 22 |
3 files changed, 5 insertions, 27 deletions
diff --git a/chrome/browser/resources/safe_browsing_malware_block.html b/chrome/browser/resources/safe_browsing_malware_block.html index 1e815ea..f0b836a 100644 --- a/chrome/browser/resources/safe_browsing_malware_block.html +++ b/chrome/browser/resources/safe_browsing_malware_block.html @@ -83,11 +83,11 @@ input { <table width="100%" cellspacing="0" cellpadding="0"> <td class="cell" valign="middle" align="center"> <div class="box"> - <div class="icon"><img src="phishing_icon.png" alt="Malware Icon" /></div> + <div class="icon"><img src="phishing_icon.png" alt="Malware Icon" onmousedown="return false;"/></div> <div class="title" jscontent="headLine"></div> <div class="main" jseval="this.innerHTML = $this.description1;"></div> <div class="main" jseval="this.innerHTML = $this.description2;"></div> - <div class="main"><a href="" jscontent="description3" onclick="sendCommand(2); return false;"></a></div> + <div class="main"><a href="" jscontent="description3" onclick="sendCommand(2); return false;" onmousedown="return false;"></a></div> <div class="main"> <form class="submission"> <input name="checky" type="checkbox" onclick="agreed(this.form)"> <span jscontent="confirm_text"></span> diff --git a/chrome/browser/resources/safe_browsing_phishing_block.html b/chrome/browser/resources/safe_browsing_phishing_block.html index 2731f82..31bd6a0 100644 --- a/chrome/browser/resources/safe_browsing_phishing_block.html +++ b/chrome/browser/resources/safe_browsing_phishing_block.html @@ -81,21 +81,21 @@ html[dir='rtl'] .helpbutton { </script> </head> <body oncontextmenu="return false;"> -<div class="background"><img src="../security/resources/ssl_roadblock_background.png" width="100%" height="100%" alt="background" /></div> +<div class="background"><img src="../security/resources/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="phishing_icon.png" alt="Phishing Warning Icon" /></div> <div class="title" jscontent="headLine"></div> <div class="main" jseval="this.innerHTML = $this.description1;"></div> - <div class="main"><a href="" jscontent="description2" onclick="sendCommand(2); return false;"></a></div> + <div class="main"><a href="" jscontent="description2" onclick="sendCommand(2); return false;" onmousedown="return false;"></a></div> <div class="main"> <form class="submission"> <input type="button" name="continue_button" jsvalues="value:continue_button" onclick="sendCommand(1)"> <input type="button" name="back_button" jsvalues="value:back_button" onclick="sendCommand(0)"> </form> </div> - <div class="main"><a href="" onclick="sendCommand(3); return false;" jscontent="report_error"></a></div> + <div class="main"><a href="" onclick="sendCommand(3); return false;" onmousedown="return false;" jscontent="report_error"></a></div> </div> </td> </table> diff --git a/chrome/browser/resources/ssl_error.html b/chrome/browser/resources/ssl_error.html deleted file mode 100644 index fe6414a..0000000 --- a/chrome/browser/resources/ssl_error.html +++ /dev/null @@ -1,22 +0,0 @@ -<html id="template_root"> - -<head> - <title jscontent="title"></title> - <script> - function sendCommand(cmd) { - window.domAutomationController.setAutomationId(1); - window.domAutomationController.send(cmd); - } - </script> -</head> - -<body> - <h1 jscontent="headLine"></h1> - <div jscontent="description"></div> - <form a=""> - <input type="button" jsvalues="value:proceed" onClick="sendCommand(1);"/> - <input type="button" jsvalues="value:leave" onClick="sendCommand(0);"/> - </form> - -</body> -</html> |