Commit 2a3c6817 authored by tedchoc@chromium.org's avatar tedchoc@chromium.org

Fix chrome://history on Android (check whether element is present first).

$('alertOverlay') is null so the call for classList failed.  Guard the
condition to see if the element exists.

BUG=379194

Review URL: https://codereview.chromium.org/301223009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273956 0039d316-1c4b-4281-b951-d872f2087c98
parent caf24ff4
...@@ -996,7 +996,8 @@ HistoryView.prototype.positionNotificationBar = function() { ...@@ -996,7 +996,8 @@ HistoryView.prototype.positionNotificationBar = function() {
* @private * @private
*/ */
HistoryView.prototype.clear_ = function() { HistoryView.prototype.clear_ = function() {
if ($('alertOverlay').classList.contains('showing')) var alertOverlay = $('alertOverlay');
if (alertOverlay && alertOverlay.classList.contains('showing'))
hideConfirmationOverlay(); hideConfirmationOverlay();
this.resultDiv_.textContent = ''; this.resultDiv_.textContent = '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment