Safari App Extension iframe content issue

During importing a Chrome extension to Safari App Extension I've met strange issue when the content of an iframe is blocked by the page. I have selected the option `Safari opens with: All windows from last session` in the Safari’s config. For example, I have 4 opened windows in Safari. I close Safari and open again. Safari restores these 4 windows from the last session. The problem is that my extension can't load content into iframe if a site is opened in the first window. I have an error in console:

[blocked] The page at about:blank was not allowed to display insecure content from safari-extension://extension.path/index.html?host=https://www.somesite.com&iframeId=id

If I open a current site in the new window then the iframe's content is loaded normally. I don't have this problem in other windows. It's doesn't depend on what site is opened in the first window. Reloading of the window doesn't help. But, I don't have this issue in Safari Technology Preview.

So maybe anybody met this problem or can confirm that it's a bug of Safari and it will be fixed soon?

Thanks.

Replies

Hi archi90,


Even I am seeing the similar behaviour but in a different context. Instead of having multiple windows. I have multiple tabs opened in a single window, and i get the error mentioned by you (

[blocked] The page at about:blank was not allowed to display insecure content from safari-extension://extension.path/index.html?host=https://www.somesite.com&iframeId=id )

when setting iframe src in first tab alone after restroring tabs from last session. But, I am able to set the same from second tab onwards.


Please let me know if you find any solution/can i know if you had filed a bug if it actually a bug from safari

This should be fixed in Safari in the macOS Catalina beta, Safari 13 and the latest version of Safari Technology Preview.


Are you still able to reproduce the issue using any of those version of Safari?

Update