KartikTalwar / gmail.js

Gmail JavaScript API
MIT License
3.74k stars 456 forks source link

Compose button not added to Gmail toolbar after page refresh with open compose window #750

Open michaelrokosh opened 1 year ago

michaelrokosh commented 1 year ago

Hello everyone,

I am experiencing an issue in Gmail where the compose button (😊) is not being added to the compose toolbar after the page is refreshed with an open compose window.

This issue occurs in two edge cases:

  1. When the user refreshes the browser with a Reply compose window open containing a draft.
  2. When the user refreshes the browser with a New Message window open.

In both cases, the compose windows stay open after the page is refreshed, but the "compose" observer never fires.

I am currently looking for a solution to re-add the compose buttons in a dirty way. I would greatly appreciate any suggestions or guidance on the correct way to re-add them. Thank you in advance for your help!

a4a2bff0e66769cdd5e9359ce8bf190a

josteink commented 1 year ago

Hey there and thanks for the bug report. This may not be document, but it's definitely a known issue.

In my extension, I've simply resorted to saying that reloading from the compose-page isn't supported.

A better fix would definitely be appreciated, but it hasn't been worth the effort so far. PRs welcome :)