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

Target for RUN_BRICK not found when targeting the window: top tab #6807

Closed
twschiller opened this issue Nov 2, 2023 · 5 comments
Closed
Labels
bug Something isn't working customer Required for a customer projct triage

Comments

@twschiller
Copy link
Contributor

twschiller commented Nov 2, 2023

Describe the bug

To Reproduce

  • TBD: have not been able to reproduce in the sandbox yet

Additional context

  • What mod(s) were you running? See deployment link
  • What website(s) were you using? See deployment link
  • Do you need any special permissions to reproduce? We have credentials for customer's client sandbox

Discussion

@twschiller twschiller added bug Something isn't working customer Required for a customer projct labels Nov 2, 2023
@twschiller
Copy link
Contributor Author

@fregante could you help clarify under which circumstances the above error message would occur?

@fregante
Copy link
Contributor

fregante commented Nov 2, 2023

The error comes from this line:

https://github.com/pixiebrix/webext-messenger/blob/b3aed0cd3096b26f5a242bcd7de0b0a2a5d831a1/source/sender.ts#L155-L159

Line 94 is for {page} targets, while the log is a direct {tabId, frameId} target.

It might be this, which is something I'm working on:

If urgent, I think the existing version of my package should cover it: https://github.com/fregante/webext-inject-on-install/blob/master/index.js

@twschiller
Copy link
Contributor Author

It might be this, which is something I'm working on

If that's the root cause (e.g., restarts/context invalidation), it won't be too urgent. I'll take a look at telemetry to see if the error timing seems to correspond with an extension upgrade/restart

@fregante
Copy link
Contributor

fregante commented Jan 5, 2024

Since #6548 was resolved, this might be too.

@fregante
Copy link
Contributor

fregante commented Feb 9, 2024

Can't repro, probably fixed with #6548

Test

  1. Visit https://ephiframe.vercel.app/Pixie?iframe=https://extra-ephiframe.vercel.app/Brix%3Fiframe%3Dhttps%3A%2F%2Fephiframe.vercel.app%2FPixie
  2. Add "Window alert" brick
  3. Set to "execute in top level frame"
  4. Save and refresh page (due to Iframes are not updated until reload #6648)
  5. Click the button in either the frame or the top frame

Demo

Screen.Recording.4.mov

@fregante fregante closed this as completed Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working customer Required for a customer projct triage
Development

No branches or pull requests

2 participants