-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the onboarding flow for the Chrome MV3 build (#2509)
The onboarding code has some logic to display a welcome banner the first time the user performs a DuckDuckGo search after installing the extension. Until now, that code did not work for Chrome MV3 builds, since it attempted to inject a script into the "main world" by appending a <script> element - that does not work with MV3 due to the stricter Content-Security-Policy used. Let's use the scripting.executeScript API instead to inject the required code into the "main world". Note: This code is somewhat convoluted and could likely be simplified in the future. But for now, with the upcoming MV3 migration deadline, let's make the minimum changes required to get this working!
- Loading branch information
Showing
3 changed files
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters