diff options
-rw-r--r-- | chrome/browser/resources/history/history.js | 3 |
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. |