Skip to content
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

Add navigatorInterface + messageBridge support #5461

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

joshliebe
Copy link
Contributor

@joshliebe joshliebe commented Jan 13, 2025

Task/Issue URL: https://app.asana.com/0/488551667048375/1208697679300718/f

Description

  • Adds a new package to the content-scope-scripts-impl module to inject the navigatorInterface JSON from the privacy config.
  • Also adds the related messageBridge C-S-S feature which is required for SERP<->native communication.

Steps to test this PR

navigatorInterface

Screenshot 2025-01-16 at 00 51 01

messageBridge

  • Go to duckduckgo.com
  • Open Chrome and go to chrome://inspect
  • In the console, type: navigator.duckduckgo.createMessageBridge(“aiChat").notify("helloWorld”)
  • Verify that you see the following:
Screenshot 2025-01-16 at 14 59 51

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@joshliebe joshliebe changed the title Add navigator interface support Add navigatorInterface + messageBridge support Jan 15, 2025
@joshliebe joshliebe marked this pull request as ready for review January 16, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant