diff options
3 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc index 6628cf1..c2873f3 100644 --- a/chrome/browser/automation/automation_provider_observers.cc +++ b/chrome/browser/automation/automation_provider_observers.cc @@ -365,7 +365,7 @@ void TabCountChangeObserver::TabInsertedAt(TabContents* contents, CheckTabCount(); } -void TabCountChangeObserver::TabClosingAt(TabContents* contents, int index) { +void TabCountChangeObserver::TabDetachedAt(TabContents* contents, int index) { CheckTabCount(); } diff --git a/chrome/browser/automation/automation_provider_observers.h b/chrome/browser/automation/automation_provider_observers.h index e03f8a3..842092a 100644 --- a/chrome/browser/automation/automation_provider_observers.h +++ b/chrome/browser/automation/automation_provider_observers.h @@ -205,7 +205,7 @@ class TabCountChangeObserver : public TabStripModelObserver { virtual void TabInsertedAt(TabContents* contents, int index, bool foreground); - virtual void TabClosingAt(TabContents* contents, int index); + virtual void TabDetachedAt(TabContents* contents, int index); virtual void TabStripModelDeleted(); private: diff --git a/chrome/test/interactive_ui/keyboard_access_uitest.cc b/chrome/test/interactive_ui/keyboard_access_uitest.cc index 8fb0f98..54054be 100644 --- a/chrome/test/interactive_ui/keyboard_access_uitest.cc +++ b/chrome/test/interactive_ui/keyboard_access_uitest.cc @@ -117,8 +117,9 @@ TEST_F(KeyboardAccessTest, TestShiftAltMenuKeyboardAccess) { TestMenuKeyboardAccess(true, views::Event::EF_SHIFT_DOWN); } -// Fails, http://crbug.com/50760. -TEST_F(KeyboardAccessTest, FAILS_ReserveKeyboardAccelerators) { +// Test that JavaScript cannot intercept reserved keyboard accelerators like +// ctrl-t to open a new tab or ctrl-f4 to close a tab. +TEST_F(KeyboardAccessTest, ReserveKeyboardAccelerators) { const std::string kBadPage = "<html><script>" "document.onkeydown = function() {" |