Post

Replies

Boosts

Views

Activity

Infinite loop in "browser.i18n.getMessage" API
I was tracking down an infinite loop and it's caused by calling: browser.i18n.getMessage('faq_4a', ['$13.99']) Where the "faq_4a" is defined as: "faq_4a": { "message": "Highlight all prices like $1" }, The problem is the parameter ['$13.99'], if I use this parameter for any message that accepts a placeholder, it will just froze the console or whatever executed it. Can someone please try to run this code to verify? I need to know if this is a Safari issue or if just my Safari broken. I use Safari 15.3 (17612.4.9.1.8). Thank you!
2
0
1.3k
Mar ’22
How to completely remove extension?
Some users send me error logs which says that the IndexedDB is broken (all DB operations throws TypeError: Load failed). And reinstalling doesn't help. It seems that uninstalling extension doesn't delete all data so the corrupted database is still there. How can I find and delete the extension files manually after it's been uninstalled?
0
0
584
Jun ’23
Is "storage.session" not available in Manifest V3?
I'm trying to port MV3 extension but it seem that storage.session API is not available. Is that right? I've checked the docs but there is 0 articles when searching for "storage": https://developer.apple.com/documentation/safariservices/safari_web_extensions MDN: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/session Is there a plan to support this API? If not, then where do I store session related data?
2
0
1.4k
Sep ’22
Cannot import script to service worker with `self.importScripts`
I'm getting the following error when I try to import my service worker script: [Error] Failed to load resource: unsupported URL (background_ah.worker.js, line 0) [Error] NetworkError: Load failed Using the following code: try { self.importScripts('./background_ah.worker.js'); } catch (e) { console.error(e); } Am I doing something wrong? The file is there but from the error it seems the extension protocol is not supported at all. It works in Chrome and it's based on this: https://stackoverflow.com/questions/66406672/chrome-extension-mv3-modularize-service-worker-js-file
1
1
2.5k
Aug ’23
Infinite loop in "browser.i18n.getMessage" API
I was tracking down an infinite loop and it's caused by calling: browser.i18n.getMessage('faq_4a', ['$13.99']) Where the "faq_4a" is defined as: "faq_4a": { "message": "Highlight all prices like $1" }, The problem is the parameter ['$13.99'], if I use this parameter for any message that accepts a placeholder, it will just froze the console or whatever executed it. Can someone please try to run this code to verify? I need to know if this is a Safari issue or if just my Safari broken. I use Safari 15.3 (17612.4.9.1.8). Thank you!
Replies
2
Boosts
0
Views
1.3k
Activity
Mar ’22
How to completely remove extension?
Some users send me error logs which says that the IndexedDB is broken (all DB operations throws TypeError: Load failed). And reinstalling doesn't help. It seems that uninstalling extension doesn't delete all data so the corrupted database is still there. How can I find and delete the extension files manually after it's been uninstalled?
Replies
0
Boosts
0
Views
584
Activity
Jun ’23
Is "storage.session" not available in Manifest V3?
I'm trying to port MV3 extension but it seem that storage.session API is not available. Is that right? I've checked the docs but there is 0 articles when searching for "storage": https://developer.apple.com/documentation/safariservices/safari_web_extensions MDN: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/session Is there a plan to support this API? If not, then where do I store session related data?
Replies
2
Boosts
0
Views
1.4k
Activity
Sep ’22
Cannot import script to service worker with `self.importScripts`
I'm getting the following error when I try to import my service worker script: [Error] Failed to load resource: unsupported URL (background_ah.worker.js, line 0) [Error] NetworkError: Load failed Using the following code: try { self.importScripts('./background_ah.worker.js'); } catch (e) { console.error(e); } Am I doing something wrong? The file is there but from the error it seems the extension protocol is not supported at all. It works in Chrome and it's based on this: https://stackoverflow.com/questions/66406672/chrome-extension-mv3-modularize-service-worker-js-file
Replies
1
Boosts
1
Views
2.5k
Activity
Aug ’23