New issue
Advanced search Search tips

Issue 686246 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Chrome Extension API - Send event notification when HTTP headers are modified by another extension

Reported by timmy....@docusign.com, Jan 27 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36

Steps to reproduce the problem:
The Chrome extension we've developed modifies certain HTTP headers in order for itself to function properly.

We've noticed that if another extension modifies the same HTTP header, then the user sees the following warning message:
"Warning:
This extension failed to modify the response header "content-security-policy" of a network request because the modification conflicted with another extension (HubSpot Sales)."

We would like our extension to be notified if this happens, but the current behavior in Chrome is that extensions only get notified for canceled requests, not modified ones.

Quoting from https://developer.chrome.com/extensions/webRequest (under the section "Conflict resolution"):
"In the current implementation of the web request API, a request is considered as cancelled if at least one extension instructs to cancel the request. If an extension cancels a request, all extensions are notified by an onErrorOccurred event. Only one extension is allowed to redirect a request or modify a header at a time. If more than one extension attempts to modify the request, the most recently installed extension wins and all others are ignored. An extension is not notified if its instruction to modify or redirect has been ignored."

What is the expected behavior?
The extension is notified in some way that another extension is modifying the same HTTP header.

What went wrong?
The extension is NOT notified that another extension is modifying the same HTTP header.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 53.0.2785.143  Channel: stable
OS Version: 
Flash Version:
 

Comment 1 by tkent@chromium.org, Jan 30 2017

Components: Platform>Extensions
Labels: Needs-Triage-M58
Labels: TE-NeedsTriageHelp
Adding 'TE-NeedsTriageHelp' label to the issue as it is out of scope from TE end to triage the issue.Requesting dev team for further investigation.

Thanks.
Project Member

Comment 4 by sheriffbot@chromium.org, Feb 12 2018

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment