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

Issue 2957233002: Fix parsing of effective TLD wildcarding across IPC. (Closed)

Created:
3 years, 5 months ago by nrpeter
Modified:
3 years, 5 months ago
Reviewers:
*lazyboy, *estark
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

To use URLPattern with an effective TLD wildcard, a second parameter must be passed to the constructor specifically allowing this. The IPC message parsing for URLPattern should always accept an effective TLD wildcard. This is since the check would have been done on the initial parse to populate a URLPattern. This adds a unit test of the runtime blocked hosts and runtime allowed hosts in the extension messages IPC. This also adds a browser test for an effective TLD wildcard. BUG=737315 Review-Url: https://codereview.chromium.org/2957233002 Cr-Commit-Position: refs/heads/master@{#483860} Committed: https://chromium.googlesource.com/chromium/src/+/605f1df1854d4bc8868bfbd3bc4945c8d200ece0

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M chrome/browser/extensions/content_script_apitest.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M extensions/common/extension_messages.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M extensions/common/extension_messages_unittest.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
nrpeter
3 years, 5 months ago (2017-06-27 23:44:50 UTC) #4
estark
IPC security lgtm. AFAICT these URLPatterns only get sent from browser -> renderer so there ...
3 years, 5 months ago (2017-06-28 00:40:04 UTC) #5
nrpeter
3 years, 5 months ago (2017-06-30 17:43:11 UTC) #8
lazyboy
few nits only. https://codereview.chromium.org/2957233002/diff/1/chrome/browser/extensions/content_script_apitest.cc File chrome/browser/extensions/content_script_apitest.cc (right): https://codereview.chromium.org/2957233002/diff/1/chrome/browser/extensions/content_script_apitest.cc#newcode425 chrome/browser/extensions/content_script_apitest.cc:425: // Verifies wildcard can be used ...
3 years, 5 months ago (2017-06-30 20:43:22 UTC) #9
nrpeter
https://codereview.chromium.org/2957233002/diff/1/chrome/browser/extensions/content_script_apitest.cc File chrome/browser/extensions/content_script_apitest.cc (right): https://codereview.chromium.org/2957233002/diff/1/chrome/browser/extensions/content_script_apitest.cc#newcode425 chrome/browser/extensions/content_script_apitest.cc:425: // Verifies wildcard can be used for effecitve TLD. ...
3 years, 5 months ago (2017-06-30 21:22:15 UTC) #10
lazyboy
lgtm
3 years, 5 months ago (2017-06-30 21:24:59 UTC) #11
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/2957233002/20001
3 years, 5 months ago (2017-06-30 21:28:13 UTC) #14
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 23:24:22 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/605f1df1854d4bc8868bfbd3bc49...

Powered by Google App Engine
This is Rietveld 408576698