summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-03 22:49:26 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-03 22:49:26 +0000
commitc88620903fab9c32cb64b271b97b1fcd01bf820d (patch)
tree0f70978b36107aded57ed910c76e7b2056f881ac /chrome
parentce39c457611011707abc11a63ff8f91046ded031 (diff)
downloadchromium_src-c88620903fab9c32cb64b271b97b1fcd01bf820d.zip
chromium_src-c88620903fab9c32cb64b271b97b1fcd01bf820d.tar.gz
chromium_src-c88620903fab9c32cb64b271b97b1fcd01bf820d.tar.bz2
Fix a crash where we would try to add a
DocumentMarker with the same start- and endOffset, which AddMarker in WebKit will ignore. As a result, our marker vector is empty and we try to access the element with index -1. Also added a check to avoid a NOTREACHED in debug build, which can happen under normal circumstances (when you navigate away from a page when a search is in progress). BUG=http://crbug.com/7250 TEST=We don't have reproduction steps for the crash but if we stop seeing this on our crash server we'll know that it is fixed. Review URL: http://codereview.chromium.org/20028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9105 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
0 files changed, 0 insertions, 0 deletions