DescriptionReally fix crash when dragging and dropping in chrome://settings/startup
The root cause of this crash was that dropping in the <input> field
dispatches a DragDropStartupPage event to the C++ handler. Since the
<input> field doesn't have a corresponding index in the C++ model,
CustomHomePagesModel would attempt to dereference an index past the end
of |entries_|. The fix is to suppress drop events on the <input> field
from triggering the C++ handler, since you can't move the <input> field
anyway.
Also clean up the code to use ints (and remove conversions to/from
strings) where appropriate.
BUG=132974
TBR=jhawkins
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187153
Patch Set 1 #
Total comments: 5
Patch Set 2 : ints are awesome #Patch Set 3 : Less Strings #Patch Set 4 : Snip #
Total comments: 5
Patch Set 5 : Fixes #Patch Set 6 : Trim quotes #
Messages
Total messages: 9 (0 generated)
|