Open Bug 1145235 Opened 10 years ago Updated 3 months ago

Implement Network Error Logging spec

Categories

(Core :: Networking, task, P3)

task

Tracking

()

ASSIGNED

People

(Reporter: marcosc, Assigned: valentin)

References

(Depends on 1 open bug, )

Details

(Keywords: dev-doc-needed, parity-chrome, Whiteboard: [necko-backlog])

Attachments

(1 file, 4 obsolete files)

The spec "defines a mechanism that enables developers to declare a network error reporting policy for a web application. A user agent can use this policy to report encountered network errors that prevented it from successfully fetching requested resources."
Assignee: nobody → daniel
Whiteboard: [necko-backlog]
Assignee: daniel → nobody
Priority: -- → P1
Priority: P1 → P3

This was implemented in Chrome 69: https://www.chromestatus.com/feature/5391249376804864

Do we have plans to tackle this for Firefox? It's a very useful feature for website owners to find out if their users are experiencing network or other issues while accessing their sites.

Keywords: parity-chrome

(In reply to Logan Rosen [:Logan] from comment #3)

This was implemented in Chrome 69: https://www.chromestatus.com/feature/5391249376804864

Do we have plans to tackle this for Firefox? It's a very useful feature for website owners to find out if their users are experiencing network or other issues while accessing their sites.

How widely is it used? It was put in "backlog" because it was not widely used. Has this changed?

We're looking into enabling a NEL policy for LinkedIn due to reporting being enabled by default in Chrome - we think we can get some really useful data about the types of issues members may be experiencing while accessing our products. I'd love to see our members who use Firefox being able to contribute reports as well.

On top of this, Catchpoint, a popular external monitoring solution, recently announced a Real User Monitoring product that accepts NEL reports, so this is definitely getting more adoption: http://blog.catchpoint.com/2018/09/27/identify-website-availability-issues-with-real-user-monitoring/

The University of Warwick is using this in production as part of a wider strategy to help track fetch errors (particularly those that occur during online assessments). Wider browser support would be welcomed.

I've found that documentation on this feature (and the reporting API itself) is thin on the ground. So, I've written up some docs to cover NEL on MDN:

And added some compat data:

Wikimedia is now using NEL on a large scale as well. For example, it feeds the "user-reported connectivity errors" metric listed on our systems status page. The behind-the-scenes details are documented at wikitech.wikimedia.org/wiki/Network_Error_Logging.

Severity: normal → S3

:chutten could you please have a look at the attached data review request? We need to define the categories of the collected data so decide if or how we want to support this.

Flags: needinfo?(chutten)
Flags: needinfo?(chutten)
Attachment #9357803 - Flags: data-review?(chutten)

I'm a little confused, is this data being collected and sent to Mozilla's servers about the use of Network Error Logging? Or is this data request about the mechanism of Network Error Logging itself?

If the latter, please engage directly with Privacy and Trust for reviewing the addition of a new system of data collection and reporting.

Flags: needinfo?(sfriedberger)

Comment on attachment 9357803 [details]
nel data review request.txt

Upon conversation this is indeed a "data request about the mechanism of Network Error Logging itself".

Attachment #9357803 - Flags: data-review?(chutten)

It is indeed the latter.

Flags: needinfo?(sfriedberger)
Depends on: 1620573
Type: defect → task
Assignee: nobody → valentin.gosu
Status: NEW → ASSIGNED
Attachment #9400724 - Attachment description: WIP: Bug 1145235 - Add nsIIOService.originAttributesForNetworkState r=#necko → Bug 1145235 - Add nsIIOService.originAttributesForNetworkState r=#necko
Attachment #9401354 - Attachment description: WIP: Bug 1145235 - Expose last status on nsIHttpChannelInternal r=#necko → Bug 1145235 - Expose last status on nsIHttpChannelInternal r=#necko
Attachment #9400725 - Attachment description: WIP: Bug 1145235 - Implement (subset of) NEL spec r=#necko → Bug 1145235 - Implement (subset of) NEL spec r=#necko

This allows code with Chrome priviledges to use the fetch API
to specify a triggering principal instead of needing to use
XMLHttpRequest.
The triggeringPrincipal is only used when the fetch principal
is already the systemPrincipal.

Depends on: 1911759

Comment on attachment 9400724 [details]
Bug 1145235 - Add nsIIOService.originAttributesForNetworkState r=#necko

Revision D209819 was moved to bug 1911759. Setting attachment 9400724 [details] to obsolete.

Attachment #9400724 - Attachment is obsolete: true

Comment on attachment 9401354 [details]
Bug 1145235 - Expose last status on nsIHttpChannelInternal r=#necko

Revision D210145 was moved to bug 1911759. Setting attachment 9401354 [details] to obsolete.

Attachment #9401354 - Attachment is obsolete: true

Comment on attachment 9400725 [details]
Bug 1145235 - Implement (subset of) NEL spec r=#necko

Revision D209820 was moved to bug 1911759. Setting attachment 9400725 [details] to obsolete.

Attachment #9400725 - Attachment is obsolete: true

Comment on attachment 9406974 [details]
Bug 1145235 - Add triggeringPrincipal override to RequestInit r=#necko

Revision D213418 was moved to bug 1911759. Setting attachment 9406974 [details] to obsolete.

Attachment #9406974 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: