Bug 246620

Summary: Messages send from iFrame not received by extension popup
Product: WebKit Reporter: Carlos J. <carlosj-webkit-bugzilla>
Component: WebKit ExtensionsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Carlos J.
Reported 2022-10-17 05:00:33 PDT
Try to send a message from an iframe running a contentscript to the extension page containing the iFrame. Sample extension: https://github.com/carlosjeurissen/webext-tech-demo-extensions/tree/main/issues/safari-9637664-messaging-api-from-content-script-frame If it works (like in Google Chrome), the text of the extension page should change to "success".
Attachments
Alexey Proskuryakov
Comment 2 2022-10-17 10:26:46 PDT
Carlos J.
Comment 3 2024-04-23 06:52:38 PDT
Just tested in Safari Technology Preview 192, and the issue persists.
Carlos J.
Comment 4 2024-12-11 07:29:49 PST
In Safari 18.1.1, calls to chrome.runtime.sendMessage from within a contentScript of an iframe in an extension popup throws the "Error: Invalid call to runtime.sendMessage(). Tab not found." Same behaviour can be found in Safari Tech Preview 209.
Note You need to log in before you can comment on or make changes to this bug.