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

Issue 1062813007: If shadow DOM is not supported, search for i18n attributes without using the /deep/ selector. (Closed)

Created:
5 years, 8 months ago by Kyle Horimoto
Modified:
5 years, 6 months ago
Reviewers:
James Hawkins, Dan Beam
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.

Description

If 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M ui/webui/resources/js/i18n_template_no_process.js View 1 2 3 1 chunk +8 lines, -1 line 1 comment Download

Messages

Total messages: 29 (13 generated)
Kyle Horimoto
5 years, 8 months ago (2015-04-07 01:29:00 UTC) #2
James Hawkins
Is this still necessary?
5 years, 8 months ago (2015-04-07 15:14:48 UTC) #3
Kyle Horimoto
On 2015/04/07 15:14:48, James Hawkins wrote: > Is this still necessary? Yes. This fixes an ...
5 years, 8 months ago (2015-04-07 17:06:39 UTC) #4
James Hawkins
lgtm
5 years, 8 months ago (2015-04-07 17:09:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/20001
5 years, 8 months ago (2015-04-07 17:12:07 UTC) #7
commit-bot: I haz the power
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_rel_ng/builds/51517)
5 years, 8 months ago (2015-04-07 19:04:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/20001
5 years, 8 months ago (2015-04-07 19:07:16 UTC) #11
commit-bot: I haz the power
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_rel_ng/builds/51580)
5 years, 8 months ago (2015-04-07 20:22:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/20001
5 years, 8 months ago (2015-04-07 20:26:30 UTC) #15
commit-bot: I haz the power
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_asan_rel/builds/53080)
5 years, 8 months ago (2015-04-07 21:12:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/40001
5 years, 8 months ago (2015-04-07 22:10:41 UTC) #20
commit-bot: I haz the power
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_ng/builds/53118)
5 years, 8 months ago (2015-04-08 00:30:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062813007/60001
5 years, 8 months ago (2015-04-08 01:12:29 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-08 02:37:50 UTC) #26
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0a1bc58020bbafa7ee80a7990cc6b89acb1d21e9 Cr-Commit-Position: refs/heads/master@{#324179}
5 years, 8 months ago (2015-04-08 02:38:33 UTC) #27
Dan Beam
5 years, 6 months ago (2015-06-23 23:33:12 UTC) #29
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.

Powered by Google App Engine
This is Rietveld 408576698