Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Andrew H.21's avatar
Andrew H.21
New member | Level 1
10 years ago

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:

  1. Open a new page (perhaps in an IFrame) from a domain that is on your "Drop-ins domains" list.
  2. 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-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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.

About Dropbox API Support & Feedback

Node avatar for 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!