|
|
Chromium Code Reviews|
Created:
3 years, 9 months ago by Charlie Reis Modified:
3 years, 9 months ago Reviewers:
nasko CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionDon't reset URL for CAN_COMMIT_URL_BLOCKED renderer kill.
This is no longer necessary now that we have an early return.
BUG=622385
TEST=Non-blank URL in crash dumps.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Review-Url: https://codereview.chromium.org/2758143002
Cr-Commit-Position: refs/heads/master@{#458509}
Committed: https://chromium.googlesource.com/chromium/src/+/cc3210aac06fd0f9437a66b6d9d784cb80b481d9
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove line. #Messages
Total messages: 16 (11 generated)
Description was changed from ========== Reset URL after CAN_COMMIT_URL_BLOCKED renderer kill. BUG=622385 TEST=Non-blank URL in crash dumps. ========== to ========== Reset URL after CAN_COMMIT_URL_BLOCKED renderer kill. BUG=622385 TEST=Non-blank URL in crash dumps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
The CQ bit was checked by creis@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: This issue passed the CQ dry run.
creis@chromium.org changed reviewers: + nasko@chromium.org
Just a minor change to avoid resetting the URL before the crash dump is generated.
The move itself LGTM, but I did some digging and it might be safe to just remove that line, which also would be LGTM :). https://codereview.chromium.org/2758143002/diff/1/content/browser/frame_host/... File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2758143002/diff/1/content/browser/frame_host/... content/browser/frame_host/render_frame_host_impl.cc:1227: validated_params.url = GURL(url::kAboutBlankURL); Doing some code archeology, it looks like we might actually not need that line. We don't have it in the CanCommitOrigin check below, so we should be consistent. We had to have it before, as there was no return statement in this if block, which meant that the URL had to be rewritten to be safe. However as part of https://codereview.chromium.org/1775543002, the return statement is added and this seems to no longer be needed. The ordering of dates back from https://chromiumcodereview.appspot.com/15017018, so it looks like we didn't really get meaningful URLs from this kill all along.
Description was changed from ========== Reset URL after CAN_COMMIT_URL_BLOCKED renderer kill. BUG=622385 TEST=Non-blank URL in crash dumps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Don't reset URL for CAN_COMMIT_URL_BLOCKED renderer kill. This is no longer necessary now that we have an early return. BUG=622385 TEST=Non-blank URL in crash dumps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
https://codereview.chromium.org/2758143002/diff/1/content/browser/frame_host/... File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2758143002/diff/1/content/browser/frame_host/... content/browser/frame_host/render_frame_host_impl.cc:1227: validated_params.url = GURL(url::kAboutBlankURL); On 2017/03/20 21:37:14, nasko (slow) wrote: > Doing some code archeology, it looks like we might actually not need that line. > We don't have it in the CanCommitOrigin check below, so we should be consistent. > > We had to have it before, as there was no return statement in this if block, > which meant that the URL had to be rewritten to be safe. However as part of > https://codereview.chromium.org/1775543002, the return statement is added and > this seems to no longer be needed. > > The ordering of dates back from https://chromiumcodereview.appspot.com/15017018?_ga=1.13635511.1028966180.148..., > so it looks like we didn't really get meaningful URLs from this kill all along. Good call! Done.
The CQ bit was checked by creis@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nasko@chromium.org Link to the patchset: https://codereview.chromium.org/2758143002/#ps20001 (title: "Remove line.")
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": 20001, "attempt_start_ts": 1490121134741820,
"parent_rev": "cd7193637823047ec88226019bb1d987215a35db", "commit_rev":
"cc3210aac06fd0f9437a66b6d9d784cb80b481d9"}
Message was sent while issue was closed.
Description was changed from ========== Don't reset URL for CAN_COMMIT_URL_BLOCKED renderer kill. This is no longer necessary now that we have an early return. BUG=622385 TEST=Non-blank URL in crash dumps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Don't reset URL for CAN_COMMIT_URL_BLOCKED renderer kill. This is no longer necessary now that we have an early return. BUG=622385 TEST=Non-blank URL in crash dumps. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2758143002 Cr-Commit-Position: refs/heads/master@{#458509} Committed: https://chromium.googlesource.com/chromium/src/+/cc3210aac06fd0f9437a66b6d9d7... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/cc3210aac06fd0f9437a66b6d9d7... |
