openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.44k stars 304 forks source link

[Bug] Unable to sync with Dropbox in Firefox #1631

Open Still34 opened 1 year ago

Still34 commented 1 year ago

Bug Report

Bug Description

Attempting to setup sync with Dropbox results in redirection to https://clngdbkpkpeebahjckkjfobafhncgmne.chromiumapp.org, resulting in failure to finish syncing on Firefox.

Screenshots

image

CSS Code

System Information

Additional Context

tophf commented 1 year ago

@eight04, I guess dropbox changed their API so maybe you can update your db-to-cloud? FWIW, here's how Violentmonkey did it.

eight04 commented 1 year ago

The screenshot looks like a login error so I guess something went wrong in token manager or launchWebAuthFlow.

I can't reproduce on Windows 10 + Nightly 117.0a1 + Stylus 1.5.33 image

Still34 commented 1 year ago

Anything I can do to help debug besides building and debugging locally?

tophf commented 1 year ago

Our extension is not using a build system for the source files, which are the same as the shipped version. Try clicking Inspect in about:debugging and see what's printed in console, check the network panel, set a breakpoint in https://github.com/openstyles/stylus/blob/1da00a91017ba550159ef7cb23da60e214ccb460/vendor/webext-launch-web-auth-flow/webext-launch-web-auth-flow.js#L193 then press F10 to verify it successfully completes to the return a few lines below.

tophf commented 1 year ago

Also disable all other extensions temporarily.

Dboingue commented 1 year ago

Bug Report

Bug Description

Attempting to setup sync with Dropbox results in redirection to https://clngdbkpkpeebahjckkjfobafhncgmne.chromiumapp.org, resulting in failure to finish syncing on Firefox.

(clipped)

I get the same thing migrating from windows 7 where it worked on google drive, now to windows 10 (yet surrendering), latest chrome there and max version on windows 7.

I am using the same google chorme profile and account. upon syncing via extension options, it does present the right google pop up window permission thingy, with correct account, and acknowledging existing permissions, but then fail..

will attempt from windows 7 to sync again.. in case broken there too...

Stylus Extension wants additional access to your Google Account

then upon clicking continue i get the following.

This site can’t be reachedclngdbkpkpeebahjckkjfobafhncgmne.chromiumapp.org’s server IP address could not be found.

peppersgc commented 11 months ago

I'm getting this same behavior. I can't sync to Dropbox or Google Drive. Firefox console says:

Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). injected.js:1:9445 Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). index.js:6357:26 Content-Security-Policy: The page’s settings blocked the loading of a resource at https://purdasseer.com/idB2Nn6Y8NC0SFF/61239 (“default-src”). neterror

tophf commented 11 months ago

Still works for me, so I don't know what's wrong. It may be caused by some setting in the browser or another extension. Try removing the Stylus extension and install it again. Try installing it in a new browser profile. Don't forget to click the export button in the manager first.

peppersgc commented 11 months ago

It appears that it's only a problem with all the other "more secure" browsers based on Firefox. Like Floorp is to Firefox what Brave is to Chromium. Floorp, Librefox, Waterfox, etc. all of them won't sync. So it's some security "feature" they have modified in some way. Edit: Stylus is now having trouble syncing with Dropbox in those browsers, too. Since it's a completely unrelated addon, it's definitely something the "enhanced security" browsers have added or changed.

belatedly commented 4 months ago

I just installed Vivaldi, installed Stylus, was trying to log into sync with OneDrive and got this same error. I then went back to my existing Firefox install and connected to Dropbox to sync everything there instead, thinking it was a OneDrive issue, but trying to log into Dropbox on Vivaldi is throwing the same error.

I turned off the tracking blocking entirely in Vivaldi's settings and it is still occurring. I was able to manually export from Firefox and import into Vivaldi at least, but manually copying everything into Firefox so I can sync is not ideal. Both OneDrive and Dropbox let me log into their sites, but upon trying to reconnect to the extension upon doing so, that's where the error occurs.

Screenshot 2024-06-27 at 12 18 15 PM
eight04 commented 4 months ago

@alcapurrias See #1775. Your issue looks similar but it is a bug in Vivaldi.