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

Issue 2761173002: Disallow JS execution on WebUI pages. (Closed)

Created:
3 years, 9 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 9 months ago
Reviewers:
lpromero
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow JS execution on WebUI pages. As a side effect TapWebViewElementWithId now actually opens windows instead of popups, which is definitely a correct behavior. BUG=692378 Review-Url: https://codereview.chromium.org/2761173002 Cr-Commit-Position: refs/heads/master@{#459149} Committed: https://chromium.googlesource.com/chromium/src/+/cfe21b64486c2a1bfed6e0e7304fcf8f1748ccfe

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Fixed tests #

Patch Set 4 : Fixed popups tests #

Patch Set 5 : Fixed ToolbarTestCase #

Patch Set 6 : Actually fixed ToolbarTestCase #

Total comments: 8

Patch Set 7 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -15 lines) Patch
M ios/chrome/browser/ui/settings/block_popups_egtest.mm View 1 2 3 3 chunks +15 lines, -8 lines 0 comments Download
M ios/chrome/browser/ui/toolbar/toolbar_egtest.mm View 1 2 3 4 5 6 2 chunks +26 lines, -1 line 0 comments Download
M ios/web/public/test/web_view_interaction_test_util.mm View 1 2 3 4 1 chunk +9 lines, -5 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 2 3 4 5 6 2 chunks +63 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/web_view_js_utils.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 35 (30 generated)
Eugene But (OOO till 7-30)
PTAL. History tests failures are not related to this change.
3 years, 9 months ago (2017-03-22 20:56:42 UTC) #23
lpromero
lgtm https://codereview.chromium.org/2761173002/diff/100001/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm File ios/chrome/browser/ui/toolbar/toolbar_egtest.mm (right): https://codereview.chromium.org/2761173002/diff/100001/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm#newcode360 ios/chrome/browser/ui/toolbar/toolbar_egtest.mm:360: // Loads WebUI page, types JavaScript into Omnibox ...
3 years, 9 months ago (2017-03-23 12:43:48 UTC) #24
Eugene But (OOO till 7-30)
Thanks! https://codereview.chromium.org/2761173002/diff/100001/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm File ios/chrome/browser/ui/toolbar/toolbar_egtest.mm (right): https://codereview.chromium.org/2761173002/diff/100001/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm#newcode360 ios/chrome/browser/ui/toolbar/toolbar_egtest.mm:360: // Loads WebUI page, types JavaScript into Omnibox ...
3 years, 9 months ago (2017-03-23 17:45:08 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2761173002/120001
3 years, 9 months ago (2017-03-23 17:45:52 UTC) #32
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 18:18:54 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/cfe21b64486c2a1bfed6e0e7304f...

Powered by Google App Engine
This is Rietveld 408576698