Closed Bug 1412813 Opened 7 years ago Closed 7 years ago

Unable to read contents of cross-origin iframes in content scripts

Categories

(WebExtensions :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1214373

People

(Reporter: u462496, Unassigned)

Details

Reading the following doc: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Content_scripts#Cross-domain_privileges I get the impression that, using a content script, I should be able to get access to the document in a web page's iframe, even if the src for the iframe is in another domain, as long as I have provided sufficient permissions. However, with "permissions": [ "<all_urls>"], set in my manifest, I am unsuccessful, with iframe.contentDocument == null, or I get errror: "Permission denied to access property "document" on cross-origin object".
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.