Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Issue 1132163007: Invoke JS messaging for UIWebView via window.requestAnimationFrame (Closed)

Created:
5 years, 7 months ago by Jackie Quinn
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invoke JS messaging for UIWebView via window.requestAnimationFrame JS messaging to native code for UIWebView is accomplished by adding and removing an iframe to the window. Some pages interact badly with this mechanism, including iforgot.apple.com. To circumvent this for such pages, the functionality in message_dynamic.sendQueue is wrapped in a function and invoked from window.requestAnimationFrame to delay message sending. BUG=470595 Committed: https://crrev.com/b593a61fafbdfb29a4382263f138586913b8a3bd Cr-Commit-Position: refs/heads/master@{#330430}

Patch Set 1 #

Patch Set 2 : Hard code message queue send delay for iforgot.apple.com #

Total comments: 2

Patch Set 3 : Use requestAnimationFrame, separate method for pageRequiresDelayedSend #

Patch Set 4 : Indentation fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -17 lines) Patch
M ios/web/web_state/js/resources/message_dynamic_ui.js View 1 2 3 1 chunk +37 lines, -17 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Jackie Quinn
5 years, 7 months ago (2015-05-14 19:16:52 UTC) #2
Eugene But (OOO till 7-30)
This is something, that needs to be checked with Stuart
5 years, 7 months ago (2015-05-14 21:51:38 UTC) #4
Jackie Quinn
On 2015/05/14 21:51:38, eugenebut wrote: > This is something, that needs to be checked with ...
5 years, 7 months ago (2015-05-14 23:23:29 UTC) #5
Jackie Quinn
As discussed online, wrapped the entire dynamic.sendQueue method and call after delay only for iforgot.apple.com.
5 years, 7 months ago (2015-05-18 19:40:36 UTC) #6
stuartmorgan
CL description/title need updating for the current implementation. Since the animation timeout should be ~10x ...
5 years, 7 months ago (2015-05-18 19:57:08 UTC) #7
Jackie Quinn
On 2015/05/18 19:57:08, stuartmorgan wrote: > CL description/title need updating for the current implementation. > ...
5 years, 7 months ago (2015-05-18 20:36:35 UTC) #8
Jackie Quinn
https://codereview.chromium.org/1132163007/diff/20001/ios/web/web_state/js/resources/message_dynamic_ui.js File ios/web/web_state/js/resources/message_dynamic_ui.js (right): https://codereview.chromium.org/1132163007/diff/20001/ios/web/web_state/js/resources/message_dynamic_ui.js#newcode47 ios/web/web_state/js/resources/message_dynamic_ui.js:47: if (window.location.origin === "https://iforgot.apple.com") { On 2015/05/18 19:57:08, stuartmorgan ...
5 years, 7 months ago (2015-05-18 20:36:42 UTC) #9
stuartmorgan
LGTM. I really wish we knew more about the underlying bug so that we could ...
5 years, 7 months ago (2015-05-18 20:53:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132163007/60001
5 years, 7 months ago (2015-05-18 21:00:00 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-18 21:35:54 UTC) #13
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 22:44:03 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b593a61fafbdfb29a4382263f138586913b8a3bd
Cr-Commit-Position: refs/heads/master@{#330430}

Powered by Google App Engine
This is Rietveld 408576698