New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 867605 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Jul 27
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 1
Type: Bug



Sign in to add a comment

Network Error Logging: Reports not generated for same-origin include_subdomains policies

Project Member Reported by dcreager@chromium.org, Jul 25

Issue description

If a NEL policy has include_subdomains set, it can only be used to report errors that occur during DNS resolution — but only if the report origin and the policy origin are different.  If they're the same (or, put another way, if the policy would be used even if include_subdomains wasn't set), then the policy should be able to be used to generate _any_ NEL report about the origin.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 25

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/38267a5a7e21d74ef99d382a1e77cc4c8a979691

commit 38267a5a7e21d74ef99d382a1e77cc4c8a979691
Author: Douglas Creager <dcreager@chromium.org>
Date: Wed Jul 25 22:47:25 2018

Network Error Logging: Ignore include_subdomains for same-origin reports

The include_subdomains field in a NEL policy triggers special behavior:
the policy can only be used to generate reports about DNS errors (and
not about other kinds of errors, or about successful requests) — but
only if the policy and report have different origins!  If they have the
same origin, the policy would have matched even if include_subdomains
weren't set, and the special logic shouldn't apply.

Bug:  867605 
Change-Id: Iaa72c9dd2dc8e634f8b10acda8acc5e012bb460b
Reviewed-on: https://chromium-review.googlesource.com/1150663
Reviewed-by: Misha Efimov <mef@chromium.org>
Commit-Queue: Douglas Creager <dcreager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578106}
[modify] https://crrev.com/38267a5a7e21d74ef99d382a1e77cc4c8a979691/net/network_error_logging/network_error_logging_service.cc
[modify] https://crrev.com/38267a5a7e21d74ef99d382a1e77cc4c8a979691/net/network_error_logging/network_error_logging_service_unittest.cc

Labels: Merge-Request-69
Pls apply appropriate OSs label. Thank you.
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 26

Labels: -Merge-Request-69 Hotlist-Merge-Approved Merge-Approved-69
Your change meets the bar and is auto-approved for M69. Please go ahead and merge the CL to branch 3497 manually. Please contact milestone owner if you have questions.
Owners: amineer@(Android), kariahda@(iOS), cindyb@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: OS-Android OS-Chrome OS-Linux OS-Mac OS-Windows
Project Member

Comment 6 by bugdroid1@chromium.org, Jul 27

Labels: -merge-approved-69 merge-merged-3497
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3f9ae242f6c368acfbd35cfdce499500836d78ea

commit 3f9ae242f6c368acfbd35cfdce499500836d78ea
Author: Douglas Creager <dcreager@chromium.org>
Date: Fri Jul 27 15:08:21 2018

Network Error Logging: Ignore include_subdomains for same-origin reports

The include_subdomains field in a NEL policy triggers special behavior:
the policy can only be used to generate reports about DNS errors (and
not about other kinds of errors, or about successful requests) — but
only if the policy and report have different origins!  If they have the
same origin, the policy would have matched even if include_subdomains
weren't set, and the special logic shouldn't apply.

Bug:  867605 
Change-Id: Iaa72c9dd2dc8e634f8b10acda8acc5e012bb460b
Reviewed-on: https://chromium-review.googlesource.com/1150663
Reviewed-by: Misha Efimov <mef@chromium.org>
Commit-Queue: Douglas Creager <dcreager@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#578106}(cherry picked from commit 38267a5a7e21d74ef99d382a1e77cc4c8a979691)
Reviewed-on: https://chromium-review.googlesource.com/1152648
Cr-Commit-Position: refs/branch-heads/3497@{#149}
Cr-Branched-From: 271eaf50594eb818c9295dc78d364aea18c82ea8-refs/heads/master@{#576753}
[modify] https://crrev.com/3f9ae242f6c368acfbd35cfdce499500836d78ea/net/network_error_logging/network_error_logging_service.cc
[modify] https://crrev.com/3f9ae242f6c368acfbd35cfdce499500836d78ea/net/network_error_logging/network_error_logging_service_unittest.cc

Status: Verified (was: Assigned)

Sign in to add a comment