Closed Bug 1623391 Opened 6 years ago Closed 6 years ago

Support initiator alias to originUrl

Categories

(WebExtensions :: Request Handling, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mixedpuppy, Unassigned)

Details

(Keywords: parity-chrome)

On chrome webrequest listeners have an initiator, which looks like our originUrl. We should consider an alias for it.

Initiator: The origin where the request was initiated. This does not change through redirects. If this is an opaque origin, the string 'null' will be used. 

Is this not the same bug?

(In reply to kernp25 from comment #1)

Is this not the same bug?

Yep. Sorry about that.

Adding the information has the cost of adding a bit more bloat to events for every request.
It does not offer that much value to extensions, because they can already easily account for the difference in Chrome and Firefox by using details.originUrl || details.initiator. Besides, Firefox has a more powerful webRequest API than Chrome (notably the support of promises as a blocking response), and we do currently not plan to remove it (unlike Chrome).

Note that Firefox had already supported this functionality since 54 (feb 2017) with bug 1311815,
whereas Chrome had only added it in Chrome 63 (sep 27) in crbug.com/755398.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX

and we do currently not plan to remove it

I hope, you will not remove it in the Future.

You need to log in before you can comment on or make changes to this bug.