-
Notifications
You must be signed in to change notification settings - Fork 929
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ca11b5c
to
f87ff09
Compare
f87ff09
to
63e7261
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works as expected, thanks @joshliebe !
...ava/com/duckduckgo/contentscopescripts/impl/features/messagebridge/di/MessageBridgeModule.kt
Show resolved
Hide resolved
...ava/com/duckduckgo/contentscopescripts/impl/features/messagebridge/store/MessageBridgeDao.kt
Show resolved
Hide resolved
|
||
@Entity(tableName = "message_bridge") | ||
data class MessageBridgeEntity( | ||
@PrimaryKey val id: Int = 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed this offline, we don’t really seem to need a Room db, but since this pattern is already used in other c-s-s features let’s not change anything now.
Task/Issue URL: https://app.asana.com/0/488551667048375/1208697679300718/f
Description
content-scope-scripts-impl
module to inject thenavigatorInterface
JSON from the privacy config.messageBridge
C-S-S feature which is required for SERP<->native communication.Steps to test this PR
navigatorInterface
messageBridge
chrome://inspect
navigator.duckduckgo.createMessageBridge(“aiChat").notify("helloWorld”)