Index: chrome/browser/resources/history/history.js |
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js |
index f71c4992d985dfac0d05218b1ab03232550e3d8a..ef386d903966f216891b23efb6302e63c2270289 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. |