Index: chrome/browser/resources/options/browser_options_startup_page_list.js |
diff --git a/chrome/browser/resources/options/browser_options_startup_page_list.js b/chrome/browser/resources/options/browser_options_startup_page_list.js |
index d15995727f6966f5f9c0704e2f8427b03f3e610f..afdef5f7ddff8793d9ee8cbe1d964187aa0f11a2 100644 |
--- a/chrome/browser/resources/options/browser_options_startup_page_list.js |
+++ b/chrome/browser/resources/options/browser_options_startup_page_list.js |
@@ -83,6 +83,7 @@ cr.define('options.browser_options', function() { |
urlField.addEventListener('blur', function(event) { |
self.parentNode.autocompleteList.detach(); |
}); |
+ |
this.draggable = true; |
}, |
@@ -171,6 +172,12 @@ cr.define('options.browser_options', function() { |
* @private |
*/ |
handleDragStart_: function(e) { |
+ // Prevent dragging if the list is disabled. |
+ if (this.disabled) { |
+ e.preventDefault(); |
+ return false; |
+ } |
+ |
var target = e.target; |
// StartupPageListItem should be the only draggable element type in the |
// page but let's make sure. |