| Index: ios/web/web_state/js/resources/window_id.js
|
| diff --git a/ios/web/web_state/js/resources/window_id.js b/ios/web/web_state/js/resources/window_id.js
|
| index 8935d8024bb28d5cb03cab1018ae0b727b0193e2..3908d4df103cbd1431eeff30d67668f9ee8afb50 100644
|
| --- a/ios/web/web_state/js/resources/window_id.js
|
| +++ b/ios/web/web_state/js/resources/window_id.js
|
| @@ -16,16 +16,6 @@ __gCrWeb['windowIdObject'] = {};
|
| // injection.
|
| __gCrWeb['windowId'] = '$(WINDOW_ID)';
|
|
|
| - // Wrap queues flushing in setTimeout to avoid reentrant calls.
|
| - // In some circumstances setTimeout does not work on iOS8 if set from
|
| - // injected script. There is an assumption that it's happen when the script
|
| - // has been injected too early. Do not place anything important to delayed
|
| - // function body, since there is no guarantee that it will ever be executed.
|
| - // TODO(eugenebut): Find out why setTimeout does not work (crbug.com/402682).
|
| - window.setTimeout(function() {
|
| - // Send messages queued since message.js injection.
|
| - if (__gCrWeb.message) {
|
| - __gCrWeb.message.invokeQueues();
|
| - }
|
| - }, 0);
|
| + // Send messages queued since message.js injection.
|
| + __gCrWeb.message.invokeQueues();
|
| }());
|
|
|