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

messaging: page-world bridge #1213

Merged
merged 17 commits into from
Nov 15, 2024
Merged

Conversation

shakyShane
Copy link
Contributor

@shakyShane shakyShane commented Nov 11, 2024

Asana Task/Github Issue: https://app.asana.com/0/1201141132935289/1208740665800207/f

Description

  • added a new feature called messageBridge (apple-isolated only for now)
  • added createMessageBridge on navigatorInterface - to return the MessagingInterface
    • this is always present, but will throw an exception if the bridge is not allowed, installed or enabled
    • exception is just a generic message, it does not reveal a reason

Testing Steps

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

@shakyShane
Copy link
Contributor Author

shakyShane commented Nov 11, 2024

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

Copy link

github-actions bot commented Nov 11, 2024

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

Copy link

github-actions bot commented Nov 11, 2024

[Beta] Generated file diff

Time updated: Fri, 15 Nov 2024 18:47:54 GMT

Android
    - android/autofillPasswordImport.js
  • android/contentScope.js

File has changed

Chrome
    - chrome/inject.js

File has changed

Chrome-mv3
    - chrome-mv3/inject.js

File has changed

Firefox
    - firefox/inject.js

File has changed

Integration
    - integration/contentScope.js

File has changed

Windows
    - windows/contentScope.js

File has changed

Apple
    - dist/contentScope.js
  • dist/contentScopeIsolated.js

File has changed

Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for content-scope-scripts ready!

Name Link
🔨 Latest commit 7762e78
🔍 Latest deploy log https://app.netlify.com/sites/content-scope-scripts/deploys/673797201ef44f0008423b99
😎 Deploy Preview https://deploy-preview-1213--content-scope-scripts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@shakyShane shakyShane marked this pull request as ready for review November 11, 2024 18:14
@shakyShane shakyShane requested review from brianhall and a team as code owners November 11, 2024 18:14
@muodov muodov self-requested a review November 12, 2024 08:47
Copy link
Member

@muodov muodov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good! I just want to make sure that we give the config structure enough time.

injected/src/features/broker-protection/utils.js Outdated Show resolved Hide resolved
injected/src/features/message-bridge.js Outdated Show resolved Hide resolved
injected/src/features/message-bridge.js Outdated Show resolved Hide resolved
injected/src/features/message-bridge.js Outdated Show resolved Hide resolved
injected/entry-points/apple.js Outdated Show resolved Hide resolved
@shakyShane shakyShane requested a review from a team as a code owner November 15, 2024 12:56
@shakyShane
Copy link
Contributor Author

shakyShane commented Nov 15, 2024 via email

Copy link
Contributor

@jonathanKingston jonathanKingston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a few lines we can remove that are commented out.

However we really need to get on top of the boilerplate we're amassing in the tests; can you file a follow up please?

@jonathanKingston
Copy link
Contributor

I’ll fast follow with removing all the rest.

Cool yeah do we need to rethink them all being mapped into that pages test? Happy to cover in a follow up anyway :)

@shakyShane
Copy link
Contributor Author

I’ll fast follow with removing all the rest.

Cool yeah do we need to rethink them all being mapped into that pages test? Happy to cover in a follow up anyway :)

Yeah, we should just have 2 boiler plates. Extension setup + all the rest. I actually have a branch with this all sorted so I will bring it back to life now that this is getting worse.

@shakyShane
Copy link
Contributor Author

I'll merge this, and follow immediately with boilerplate removal where possible.

@shakyShane shakyShane merged commit ad3c4ac into main Nov 15, 2024
19 checks passed
@shakyShane shakyShane deleted the 11-11-messaging_page-world_bridge branch November 15, 2024 21:22
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.

3 participants