Index: chrome/browser/resources/options/options_page.js |
diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js |
index c5296397c2e884a91319d833739c8c078dbdf2ab..4186d1fb44345100fc7d9feb1dfbbe7316d24eef 100644 |
--- a/chrome/browser/resources/options/options_page.js |
+++ b/chrome/browser/resources/options/options_page.js |
@@ -699,6 +699,12 @@ cr.define('options', function() { |
if (!topPage || topPage.isOverlay || !topPage.parentPage) |
return; |
+ // Don't close subpages if a user is clicking in a select element. |
+ // This is necessary because WebKit sends click events with strange |
+ // coordinates when a user selects a new entry in a select element. |
Evan Stade
2011/06/23 02:05:05
add crbug link
|
+ if (event.srcElement.nodeName == 'SELECT') |
+ return; |
+ |
// Do nothing if the client coordinates are not within the source element. |
// This occurs if the user toggles a checkbox by pressing spacebar. |
// This is a workaround to prevent keyboard events from closing the window. |