Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SecurityError: An attempt was made to break through the security policy of the user agent. #470

Closed
867380699 opened this issue Sep 17, 2020 · 4 comments

Comments

@867380699
Copy link

@867380699 867380699 commented Sep 17, 2020

This issue proposes a BUG which...

Background & Context

UA

Mozilla/5.0 (Linux; Android 4.4.2; SM701 Build/SANFRANCISCO) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36 

Throw error at this line when clone cookie

 const documentMode = clone(document).documentMode
    ? document.documentMode
    : {};
@cure53
Copy link
Owner

@cure53 cure53 commented Sep 17, 2020

Uh, that seems to be a fairly old Chrome. Can you check please if a try-catch fixes the issue?

@867380699
Copy link
Author

@867380699 867380699 commented Sep 17, 2020

It works ~

@cure53
Copy link
Owner

@cure53 cure53 commented Sep 18, 2020

Gotcha, thx!

cure53 added a commit that referenced this issue Sep 18, 2020
See #470
fix: added try-catch to avoid error on old Chrome
@cure53
Copy link
Owner

@cure53 cure53 commented Sep 18, 2020

The issue should be fixed now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants