Insert translate_ios.js between translate.js and element.js. |
||||
Issue descriptionThe current injection order is: 1. translate.js (bundled script for all platforms) 2. element.js (downloaded from translate server) 3. translate_ios.js (bundled script only for iOS) translate_ios.js sets callbacks on translate.js and so must be injected after. However, element.js can trigger events in translate.js before translate_ios.js has had a chance to install callbacks on translate.js. The injection order should be: 1. translate.js 2. translate_ios.js 3. element.js
,
Aug 31
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/626cb9384e17018c37c65a15c21bf333234ab8df commit 626cb9384e17018c37c65a15c21bf333234ab8df Author: John Z Wu <jzw@chromium.org> Date: Fri Aug 31 18:46:20 2018 Update translate_ios.js to define a function to install callbacks. This ensures that callbacks can be installed before they are invoked. Bug: 877706 Change-Id: Iabaac2bdeda2347b6968f0c03ade3a71739e290f Reviewed-on: https://chromium-review.googlesource.com/1192419 Commit-Queue: John Wu <jzw@chromium.org> Reviewed-by: David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#588099} [modify] https://crrev.com/626cb9384e17018c37c65a15c21bf333234ab8df/components/translate/core/browser/resources/translate.js [modify] https://crrev.com/626cb9384e17018c37c65a15c21bf333234ab8df/components/translate/ios/browser/js_translate_manager.mm [modify] https://crrev.com/626cb9384e17018c37c65a15c21bf333234ab8df/components/translate/ios/browser/resources/translate_ios.js
,
Sep 12
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/59ed680b9fc2cc5fe0e2b1bf487d70df9608c8d6 commit 59ed680b9fc2cc5fe0e2b1bf487d70df9608c8d6 Author: John Z Wu <jzw@chromium.org> Date: Wed Sep 12 04:01:31 2018 Update translate_ios.js to define a function to install callbacks. This ensures that callbacks can be installed before they are invoked. Bug: 877706 Change-Id: Iabaac2bdeda2347b6968f0c03ade3a71739e290f Reviewed-on: https://chromium-review.googlesource.com/1192419 Commit-Queue: John Wu <jzw@chromium.org> Reviewed-by: David Roger <droger@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#588099}(cherry picked from commit 626cb9384e17018c37c65a15c21bf333234ab8df) Reviewed-on: https://chromium-review.googlesource.com/1220399 Reviewed-by: John Wu <jzw@chromium.org> Cr-Commit-Position: refs/branch-heads/3538@{#309} Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811} [modify] https://crrev.com/59ed680b9fc2cc5fe0e2b1bf487d70df9608c8d6/components/translate/core/browser/resources/translate.js [modify] https://crrev.com/59ed680b9fc2cc5fe0e2b1bf487d70df9608c8d6/components/translate/ios/browser/js_translate_manager.mm [modify] https://crrev.com/59ed680b9fc2cc5fe0e2b1bf487d70df9608c8d6/components/translate/ios/browser/resources/translate_ios.js
,
Sep 12
Here's a summary of the rules that were executed: - OnlyMergeApprovedChange: Rule Failed -- Revision 59ed680b9fc2cc5fe0e2b1bf487d70df9608c8d6 was merged to refs/branch-heads/3538 branch with no merge approval from a TPM! Please explain why this change was merged to the branch!
,
Sep 20
Hi jzw, seems this CL was merged to branch without TPM approval. Was this related to a different bug that I gave approval on?
,
Sep 20
This was cherrypicked as part of https://bugs.chromium.org/p/chromium/issues/detail?id=881518#c13. It landed before that bug was created, sorry for the confusion.
,
Oct 12
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Aug 30