| Index: chrome/browser/extensions/extension_messages_apitest.cc
|
| diff --git a/chrome/browser/extensions/extension_messages_apitest.cc b/chrome/browser/extensions/extension_messages_apitest.cc
|
| index 81257d685b39c566b34b4b437dbead7b68ad84fa..83f3356df10f372fcb9ad96feb48afe070ee6479 100644
|
| --- a/chrome/browser/extensions/extension_messages_apitest.cc
|
| +++ b/chrome/browser/extensions/extension_messages_apitest.cc
|
| @@ -1011,38 +1011,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MessagingUserGesture) {
|
| " window.domAutomationController.send('' + response.result);\n"
|
| " });\n"
|
| "});", receiver->id().c_str())));
|
| -
|
| - // Messges sent from a setTimeout handler should not forward the user gesture
|
| - // again.
|
| - EXPECT_EQ(
|
| - "false",
|
| - ExecuteScriptInBackgroundPage(
|
| - sender->id(),
|
| - base::StringPrintf(
|
| - "chrome.test.runWithUserGesture(function() {\n"
|
| - " window.setTimeout(function() {\n"
|
| - " chrome.runtime.sendMessage('%s', {}, function(response) {\n"
|
| - " window.domAutomationController.send('' + "
|
| - " response.result);\n"
|
| - " });\n"
|
| - " }, 0);\n"
|
| - "});",
|
| - receiver->id().c_str())));
|
| -
|
| - // The user gesture should not be send back with the reply message, gestures
|
| - // are only forwarded once.
|
| - EXPECT_EQ(
|
| - "false",
|
| - ExecuteScriptInBackgroundPage(
|
| - sender->id(),
|
| - base::StringPrintf(
|
| - "chrome.test.runWithUserGesture(function() {\n"
|
| - " chrome.runtime.sendMessage('%s', {}, function(response) {\n"
|
| - " window.domAutomationController.send('' + "
|
| - " chrome.test.isProcessingUserGesture());\n"
|
| - " });\n"
|
| - "});",
|
| - receiver->id().c_str())));
|
| }
|
|
|
| // Tests that a hosted app on a connectable site doesn't interfere with the
|
|
|