New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webextension fixes #7958
Webextension fixes #7958
Conversation
Don't use shared dependencies for manifest children Allow browser_specific_settings Fix web_accessible_resources generation
Looks good, can you fix the linter? |
This broke a few things actually, let me try to fix first. EDIT: It looks like parallel priority doesn't actually work reliably for repackaging. It only seems to update when you add the first CSS asset, and doesn't work at all for other asset types. |
@devongovett I think we're going to need a new type of invalidation for packagers to properly support web extensions. The only reason adding CSS into JS works when the parent is an HTML is due to the CSS packager concatenating assets into a single bundle. Maybe |
Doing all of the changes to actually fix the packager will actually take substantially more time so I'll mark this as ready for review again and will submit a separate PR to potentially revamp packager caching later. At the moment everything still works, just not for hot reload. I'm thinking that since the bundle graph is provided in its entirety to each packager, package requests should also include the hash of the bundle graph in their IDs (which makes hashing the bundle redundant) or at least there should be a way to invalidate the cache from the packager. |
Just realized this now breaks importing stuff from content scripts but I'm not going to be able to fix for a few days, plus I don't want to overload you guys with so many PRs. |
getting the following with latest nightly now, is that the issue you refer to @101arrowz or should I report a separate one? :
|
That issue is probably just a caching bug (at least I had that issue before and it started working after I cleared my cache). If not, refer to #4145. |
Trying this again in v4.5 and clearing cache ( |
↪️ Pull Request
Don't use shared dependencies for manifest children, allow
browser_specific_settings
, and fixweb_accessible_resources
generation for the web extension config.Fixes #7952
Fixes #7953 (mostly)
Fixes #7050 (comment) (we should support this key since it's sometimes mandatory in Firefox)