Closed Bug 1521286 Opened 6 years ago Closed 6 years ago

Content script ignores iframes without src attribute

Categories

(WebExtensions :: General, defect)

64 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1486036

People

(Reporter: seleznev.stas, Unassigned)

Details

Attachments

(1 file)

1.01 KB, application/x-zip-compressed
Details
Attached file firefox_bug.zip

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce:

I load the extension through Temporary Load. In manifest.json:
{
"permissions": [],
"content_scripts": [{
"all_frames": true,
"match_about_blank": true,
"js": [
"contentScript.js"
],
"matches": ["<all_urls>"],
"run_at": "document_end"
}]
}

Open page.html (from attachment), open devtools and reload page.
Page.html
<!DOCTYPE html>
<html>
<head></head>
<body>
<iframe></iframe>
</body>
</html>

Actual results:

Content script load only in main page.

Expected results:

Content script should load in main page and iframe.

When I follow the exact steps, then I see two console messages (when I open the DevTools after running the tests).

If I open the DevTools before loading the page, I only see a console.log message for the main frame, not the child frame.

This looks identical to bug 1486036.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: