Support initiator alias to originUrl
Categories
(WebExtensions :: Request Handling, enhancement)
Tracking
(Not tracked)
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.
| Reporter | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
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.
and we do currently not plan to remove it
I hope, you will not remove it in the Future.
Description
•