mozilla / web-ext

A command line tool to help build, run, and test web extensions
Mozilla Public License 2.0
2.65k stars 334 forks source link

Unable to Test Spotify with Chromium, Missing Components #3093

Open flynncao opened 4 months ago

flynncao commented 4 months ago

Is this a feature request or a bug?

Bug.

What is the current behavior?

Seeking assistance in finding a solution to this issue. Any help would be greatly appreciated!

Web Extension: slyrics-1.5.33.zip

What is the expected or desired behavior?

Allow me to test web extensions on spotify.com without encountering previously displayed promotional text within the Chrome browser environment.

Version information (for bug reports)

Rob--W commented 3 months ago

Widevine is a CDM (content decryption module) used to implement DRM.

The underlying chrome-launcher dependency starts Chrome with several flags, listed here:

https://github.com/GoogleChrome/chrome-launcher/blob/v0.15.1/src/flags.ts

When web-ext run launches Chrome, Chrome starts with these flags minus those listed in EXCLUDED_CHROME_FLAGS at https://github.com/mozilla/web-ext/blob/7.11.0/src/extension-runners/chromium.js#L41.

This list of standard flags is currently not configurable, but you can edit your local version of web-ext and modify EXCLUDED_CHROME_FLAGS, by editing node_modules/web-ext/lib/extension-runners/chromium.js and adding the flags that you would like to NOT pass.

Could you try copy-pasting flags from chrome-launcher's flags.ts to EXCLUDED_CHROME_FLAGS and see if that fixes your issue?