Content script ignores iframes without src attribute
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
People
(Reporter: seleznev.stas, Unassigned)
Details
Attachments
(1 file)
1.01 KB,
application/x-zip-compressed
|
Details |
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.
Comment 1•6 years ago
|
||
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.
Description
•