phishy / drive4addons

A JavaScript bookmarklet that adds functionality to Google Apps Script editor to save embedded AddOn source code to Google Drive
2 stars 0 forks source link

Transient Authorization pop-up on Firefox #2

Open mogsdad opened 9 years ago

mogsdad commented 9 years ago

During first use of d4a in this browser, the authorization pop-up appeared for a brief time, and disappeared before it could be read or responded to.

Environment: Browser: Firefox 33.1 OS: Windows 7 Pro SP1

Steps taken:

mogsdad commented 9 years ago

Using Account Permissions I revoked authorization for Google Drive for Add-Ons, then reloaded script editor and clicked bookmarklet again. Authorization pop-up appeared and stayed, I granted permission, and it showed "Drive4AddOns Enabled" in top-right of editor.

Still, when a file is saved in editor, d4a does not engage. Nothing saved to Drive.

phishy commented 9 years ago

Please post any errors in the Javascript console. In my experience, sometimes if I run it once, it fails, but if I reload and run again, it works the 2nd time. Thanks for taking the time to submit this, if you find ay more information in the console, please pass along the output.

mogsdad commented 9 years ago

Java console errors captured when "File unavailable" message appears:

CustomError: Error in protected function: drive is not defined
CustomError: Error in protected function: drive is not defined
"Drive for Add-ons loaded successfully" bookmarklet.js:193
"Successfully authenticated with Google" jquery-2.1.1.min.js line 2 > eval:9
no element found jserror:1
mogsdad commented 9 years ago

Here's another Java console capture. After the previous error, I reloaded and ran again, as suggested. This time, there appears to be some tight loop - CustomError: Error in protected function: drive is not defined is being logged continuously, several thousand times before I finally killed it. (Repeats in brackets)

CustomError: Error in protected function: drive is not defined
CustomError: Error in protected function: drive is not defined (3)
no element found jserror:1
CustomError: Error in protected function: drive is not defined (472)
CustomError: Error in protected function: drive is not defined (520)
CustomError: Error in protected function: drive is not defined (194)
CustomError: Error in protected function: drive is not defined (147)
CustomError: Error in protected function: drive is not defined (254)
...