Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Andrew H.21
10 years agoNew member | Level 1
Saver Drop-In doesn't work for Chrome Extensions
Even when you add your extension id to the Drop-Ins Domain list, triggering the Saver Drop-In from a Chrome extension currently results in an "Unable to communicate with the parent window" error because for all popups triggered from a Chrome Extension, the window.opener variable in the popup will be NULL.
Does anyone have an elegant solution for resolving this? So far the only potential fix I can see is generally a no-no with Chrome Extensions:
- Open a new page (perhaps in an IFrame) from a domain that is on your "Drop-ins domains" list.
- Include a Content Script in that page that injects (via "<script>" tags) the Dropbox saver code into the DOM of the page (as opposed to just running in the sandboxed extension DOM).
3 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Unfortunately we don't have any official guidance or support for using the Drop-ins in a Chrome extension right now, but I'll be sure to pass this along as a request.
- Andrew H.2110 years agoNew member | Level 1
Thanks for the update Greg, I don't have a silver bullet solution but I would suggest that, if the developers were up to the challenge of making Drop-Ins work for Chrome Extensions, they take a look at Message Passing from Webpages: https://developer.chrome.com/extensions/messaging#external-webpage
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the tip Andrew!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!