Use js_template in system health story selectors |
||
Issue description
Some places are using naive string interpolation, e.g.:
def _NavigateToItem(self, action_runner, index):
item_selector = 'document.querySelectorAll("%s")[%d]' % (
self.ITEM_SELECTOR, index)
https://cs.chromium.org/chromium/src/tools/perf/page_sets/system_health/browsing_stories.py?rcl=9bb7c0c57c6be13b19f47a289bafed94d55c3c45
which pushes to clients the responsibility of properly quoting strings. Clients should not need to worry about this.
,
Sep 8 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Sep 8 2017