|
|
Chromium Code Reviews
DescriptionBlock navigations to hosted apps non-icon resources with PlzNavigate.
BUG=717626
Review-Url: https://codereview.chromium.org/2875493002
Cr-Commit-Position: refs/heads/master@{#474469}
Committed: https://chromium.googlesource.com/chromium/src/+/68e5e6de4f09b9bc50ec0460fcad02d5923304d9
Patch Set 1 #Patch Set 2 : Rebase on nick@'s recent changes. #
Total comments: 5
Patch Set 3 : Add a TODO. #Patch Set 4 : Add a test for allowed navigation to an icon file. #
Total comments: 2
Patch Set 5 : Remove incorrect TODO. #
Messages
Total messages: 40 (24 generated)
The CQ bit was checked by nasko@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by nasko@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
nasko@chromium.org changed reviewers: + nick@chromium.org
Hey Nick, Can you review this CL for me? It fixes the issue with hosted apps manifest being given to renderer process to render, while displaying chrome://invalid in the omnibox. Thanks in advance! Nasko
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
nasko@chromium.org changed reviewers: + rdevlin.cronin@chromium.org
Hey Devlin, Can you do an owners review on this CL? Thanks in advance! Nasko
lgtm! https://codereview.chromium.org/2875493002/diff/20001/chrome/browser/extensio... File chrome/browser/extensions/process_manager_browsertest.cc (right): https://codereview.chromium.org/2875493002/diff/20001/chrome/browser/extensio... chrome/browser/extensions/process_manager_browsertest.cc:1251: content::PAGE_TYPE_ERROR); Can we expand this to include a check for icons that passes? https://codereview.chromium.org/2875493002/diff/20001/extensions/browser/exte... File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2875493002/diff/20001/extensions/browser/exte... extensions/browser/extension_navigation_throttle.cc:71: if (target_extension->is_hosted_app()) { Will the old check in chrome/renderer/extensions/resource_request_policy.cc still be necessary once PlzNavigate ships? If not, can we add a TODO to coalesce these?
https://codereview.chromium.org/2875493002/diff/20001/extensions/browser/exte... File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2875493002/diff/20001/extensions/browser/exte... extensions/browser/extension_navigation_throttle.cc:71: if (target_extension->is_hosted_app()) { On 2017/05/24 17:27:19, Devlin (catching up) wrote: > Will the old check in chrome/renderer/extensions/resource_request_policy.cc > still be necessary once PlzNavigate ships? If not, can we add a TODO to > coalesce these? Yes, it can be removed, as it will be redundant and arguably a bit of a worse behavior, as "chrome-extension://invalid/" is a strange URL to navigate to and it has no user feedback. I've added a TODO.
The CQ bit was checked by nasko@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nick@chromium.org, rdevlin.cronin@chromium.org Link to the patchset: https://codereview.chromium.org/2875493002/#ps40001 (title: "Add a TODO.")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2875493002/diff/20001/chrome/browser/extensio... File chrome/browser/extensions/process_manager_browsertest.cc (right): https://codereview.chromium.org/2875493002/diff/20001/chrome/browser/extensio... chrome/browser/extensions/process_manager_browsertest.cc:1251: content::PAGE_TYPE_ERROR); On 2017/05/24 17:27:19, Devlin (catching up) wrote: > Can we expand this to include a check for icons that passes? Missed this one?
The CQ bit was unchecked by nasko@chromium.org
https://codereview.chromium.org/2875493002/diff/20001/chrome/browser/extensio... File chrome/browser/extensions/process_manager_browsertest.cc (right): https://codereview.chromium.org/2875493002/diff/20001/chrome/browser/extensio... chrome/browser/extensions/process_manager_browsertest.cc:1251: content::PAGE_TYPE_ERROR); On 2017/05/24 17:39:17, Devlin (catching up) wrote: > On 2017/05/24 17:27:19, Devlin (catching up) wrote: > > Can we expand this to include a check for icons that passes? > > Missed this one? Oops, sorry, indeed I missed this one. Added.
The CQ bit was checked by nasko@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
s lgtm as long as the bots are happy. It's possible there's some test out there that relies on hosted_app not having icons; if there is we can just copy it to make hosted_app_with_icons. :) (And if not, then this is fine)
The CQ bit was unchecked by nasko@chromium.org
The CQ bit was checked by nasko@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nick@chromium.org Link to the patchset: https://codereview.chromium.org/2875493002/#ps60001 (title: "Add a test for allowed navigation to an icon file.")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by nasko@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2875493002/diff/60001/extensions/browser/exte... File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2875493002/diff/60001/extensions/browser/exte... extensions/browser/extension_navigation_throttle.cc:73: // once PlzNavigate is the default. Can we though? If you remove the enforcement in ResourceRequestPolicy, doesn't that mean you'll be able to xhr manifest.json?
https://codereview.chromium.org/2875493002/diff/60001/extensions/browser/exte... File extensions/browser/extension_navigation_throttle.cc (right): https://codereview.chromium.org/2875493002/diff/60001/extensions/browser/exte... extensions/browser/extension_navigation_throttle.cc:73: // once PlzNavigate is the default. On 2017/05/24 21:13:16, ncarter (slow) wrote: > Can we though? If you remove the enforcement in ResourceRequestPolicy, doesn't > that mean you'll be able to xhr manifest.json? This is a good point. It might still be possible, but I think we are better off blocking this on the browser side. However, you are correct that PlzNavigate will only help with navigations.
The CQ bit was checked by nasko@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nick@chromium.org, rdevlin.cronin@chromium.org Link to the patchset: https://codereview.chromium.org/2875493002/#ps80001 (title: "Remove incorrect TODO.")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1495660953729180,
"parent_rev": "59c3060ac761de2221eea6febe7be5d223f0266a", "commit_rev":
"68e5e6de4f09b9bc50ec0460fcad02d5923304d9"}
Message was sent while issue was closed.
Description was changed from ========== Block navigations to hosted apps non-icon resources with PlzNavigate. BUG=717626 ========== to ========== Block navigations to hosted apps non-icon resources with PlzNavigate. BUG=717626 Review-Url: https://codereview.chromium.org/2875493002 Cr-Commit-Position: refs/heads/master@{#474469} Committed: https://chromium.googlesource.com/chromium/src/+/68e5e6de4f09b9bc50ec0460fcad... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/68e5e6de4f09b9bc50ec0460fcad... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
