summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvitalyp <vitalyp@chromium.org>2014-09-06 11:57:36 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-06 19:00:16 +0000
commit87a3ebac6b26918b151151efed3311d0ddc20d73 (patch)
tree368e5472a321f98cdbe042bae1288ad7da889461
parent8e6fae0b21680e56793dde769bdc36daca8880bb (diff)
downloadchromium_src-87a3ebac6b26918b151151efed3311d0ddc20d73.zip
chromium_src-87a3ebac6b26918b151151efed3311d0ddc20d73.tar.gz
chromium_src-87a3ebac6b26918b151151efed3311d0ddc20d73.tar.bz2
Small fix in chrome://history: mark checkbox as HTMLInputElement
R=dbeam@chromium.org BUG=393873 TEST=GYP_GENERATORS=ninja gyp --depth . third_party/closure_compiler/compiled_resources.gyp && ninja -C out/Default Review URL: https://codereview.chromium.org/545303003 Cr-Commit-Position: refs/heads/master@{#293627}
-rw-r--r--chrome/browser/resources/history/history.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index f71c499..ef386d9 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -2180,7 +2180,8 @@ function entryBoxClick(event) {
return;
}
}
- var checkbox = $(event.currentTarget.getAttribute('for'));
+ var checkbox = assertInstanceof($(event.currentTarget.getAttribute('for')),
+ HTMLInputElement);
checkbox.checked = !checkbox.checked;
handleCheckboxStateChange(checkbox, event.shiftKey);
// We don't want to focus on the checkbox.