Unstable Firefox dev server

28 Replies
lab
lab2y ago
hmm... Ididn't add anything that refresh it that much :d....
Avi
AviOP2y ago
FYI, it doesn't matter if I load firefox-mv3-dev via web-ext or onto Firefox directly as a temporary addon
lab
lab2y ago
This issue... I'm not sure what' causing it lol xD in what condition does it happen?
Avi
AviOP2y ago
I run
plasmo dev --target=firefox-mv3 --verbose
plasmo dev --target=firefox-mv3 --verbose
I load Firefox, load a temp addon, go to about:addons and make sure that the ext has the permission to run on https://www.youtube.com When I toggle on the host permission, the background script goes crazy
lab
lab2y ago
hmmm when you toggle host permission, what does ff do? does it like.. inject the script at that time?
Avi
AviOP2y ago
This No
lab
lab2y ago
what do you mean by toggle host permission btw
Avi
AviOP2y ago
Avi
AviOP2y ago
Initially, the bottom toggle is off No idea why
lab
lab2y ago
hmmm optional permission :d.... that's a MV2 quirk what if you just move that host_perm over to the mv3 format?
Avi
AviOP2y ago
I mean, in the prod manifest it should look like
{
"host_permissions": ["https://www.youtube.com/*"]
}
{
"host_permissions": ["https://www.youtube.com/*"]
}
lab
lab2y ago
yeah it should right :d
Avi
AviOP2y ago
Though in this specific ext I don't actually send any requests to YouTube but only need it in the content script
lab
lab2y ago
it only occurs when you toggle that permission on/off right? Is there like any need for it at all :d
Avi
AviOP2y ago
Yeah I think so
lab
lab2y ago
What if you just.. remove the perm :d
Avi
AviOP2y ago
Well, if I don't toggle it on, the only way for it run on the web page is by clicking on the icon on the top right corner And well the point is to see the behavior as soon as the web page loads like a normal extension Sadly I need to go to sleep 🙃 If the issue can't be fixed by the weekend, I guess I'll just resort to good ol' loading the prod version I.e. change code ➡️ build ➡️ re-load ➡️ test ➡️ repeat
lab
lab2y ago
My key wondering is that.. is this a plasmo bug or a firefox bug? xd.... @avi12 can you make a quick reprod with least minimal amount of code :d
Avi
AviOP9mo ago
Def a Plasmo bug It has never occurred to me on Firefox before The problem is back on track, this time in 0.85.0
lab
lab9mo ago
Hmmmm might be related to this PR?
Avi
AviOP9mo ago
I couldn't bother continuing testing on Firefox so I quickly installed Opera
lab
lab9mo ago
GitHub
unmount react root by veedeo · Pull Request #893 · PlasmoHQ/plasmo
Details This PRs add a proper React's root.unmount() logic so React components destructor will be called as expected Code of Conduct I agree to follow this project's Code of Conduct I ag...
lab
lab9mo ago
but.. that's on react xd
Avi
AviOP9mo ago
What does it have to do with the constantly reloading background script on Firefox?
lab
lab9mo ago
it's the only thing that touched csui iirc
Avi
AviOP9mo ago
So you're suggesting that a similar PR needs to be made for Svelte CSUI?
lab
lab9mo ago
if you look at the diff between the 2 versions: https://github.com/PlasmoHQ/plasmo/compare/v0.84.2...v0.85.0
GitHub
Comparing v0.84.2...v0.85.0 · PlasmoHQ/plasmo
🧩 The Browser Extension Framework. Contribute to PlasmoHQ/plasmo development by creating an account on GitHub.
lab
lab9mo ago
there's... barely anything related to bgsw xD
Want results from more Discord servers?
Add your server