Closed Bug 1442874 Opened 8 years ago Closed 8 years ago

add initiator property to webRequest details object

Categories

(WebExtensions :: Request Handling, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kernp25, Unassigned)

Details

From https://chromium.googlesource.com/chromium/src/+/master/extensions/common/api/web_request.json: "initiator": {"type": "string", "optional": true, "description": "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."} It will look like: {frameId: 32, initiator: "https://fssecure.t-online.de", method: "GET", parentFrameId: 31, requestId: "766", …} frameId: 32 initiator: "https://fssecure.t-online.de" method: "GET" parentFrameId: 31 requestId: "766" tabId: 15 timeStamp: 1520084487853.6528 type: "image" url: "https://pssl.stroeerdp.de/partner/htdocs/loginbox_https_next/images/1_1520083893_ladeblume.gif"
What do you think? Compatibility? Or is this the same as originUrl?
Flags: needinfo?(mixedpuppy)
frameAncestors would give you the hierarchy within a document (ie. image/etc loaded from the top level doc). originUrl gives you the url that triggered the request (triggeringPrincipal). documentURL is the url of the document loading the request (loadingPrincipal). I think you're looking for frameAncestors.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(mixedpuppy)
Resolution: --- → WONTFIX
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.