|
|
Created:
5 years, 8 months ago by Kyle Horimoto Modified:
5 years, 6 months ago CC:
chromium-reviews, oshima+watch_chromium.org, kkhorimoto Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionIf shadow DOM is not supported, search for i18n attributes without using the /deep/ selector.
This fixes an issue where Chrome on iOS failed to translate interstitial pages due to use of this selector (on iOS, Chrome uses UIWebView which does not have native support for shadow DOM).
Note that Polymer-based pages will still work in iOS WebUI pages because /deep/ will be polyfilled.
BUG=474360
Committed: https://crrev.com/0a1bc58020bbafa7ee80a7990cc6b89acb1d21e9
Cr-Commit-Position: refs/heads/master@{#324179}
Patch Set 1 #Patch Set 2 : Update comment to note that createShadowRoot() can be polyfilled. #Patch Set 3 : Use parentheses for the ternary operator. #Patch Set 4 : Add existence check for window.document.body before window.document.body.createShadowRoot. #
Total comments: 1
Messages
Total messages: 29 (13 generated)
khorimoto@chromium.org changed reviewers: + jhawkins@chromium.org
Is this still necessary?
On 2015/04/07 15:14:48, James Hawkins wrote: > Is this still necessary? Yes. This fixes an issue where Chrome on iOS failed to translate interstitial pages due to use of this selector (on iOS, Chrome uses UIWebView which does not have native support for shadow DOM). In this case, using the /deep/ selector causes document.querySelectorAll() to fail and return 0 results.
lgtm
The CQ bit was checked by khorimoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by khorimoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by khorimoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by khorimoto@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jhawkins@chromium.org Link to the patchset: https://codereview.chromium.org/1062813007/#ps40001 (title: "Use parentheses for the ternary operator.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by khorimoto@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jhawkins@chromium.org Link to the patchset: https://codereview.chromium.org/1062813007/#ps60001 (title: "Add existence check for window.document.body before window.document.body.createShadowRoot.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/60001
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/0a1bc58020bbafa7ee80a7990cc6b89acb1d21e9 Cr-Commit-Position: refs/heads/master@{#324179}
Message was sent while issue was closed.
dbeam@chromium.org changed reviewers: + dbeam@chromium.org
Message was sent while issue was closed.
https://codereview.chromium.org/1062813007/diff/60001/ui/webui/resources/js/i... File ui/webui/resources/js/i18n_template_no_process.js (right): https://codereview.chromium.org/1062813007/diff/60001/ui/webui/resources/js/i... ui/webui/resources/js/i18n_template_no_process.js:120: 'html /deep/ [' + attributeNames.join('],[') + ']' : so this is whining in the console now about /deep/ being deprecated: /deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details. |