DescriptionInvoke 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 #Messages
Total messages: 14 (3 generated)
|