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

feat: use per-site permissions instead of managed content #6

Open
kamranayub opened this issue Jul 17, 2020 · 1 comment
Open

feat: use per-site permissions instead of managed content #6

kamranayub opened this issue Jul 17, 2020 · 1 comment
Labels
browser: chromium enhancement New feature or request help wanted Extra attention is needed

Comments

@kamranayub
Copy link
Owner

I have seen whispers of setting the specific site URLs to allow instead, which I think would ultimately be a better approach. managed_default_content_settings is a heavy hammer that works but probably isn't the idiomatic way to handle this in the Chrome profile. Somewhere, a site's individual settings are stored and we may be able to poke at that.

I think we could check this fairly easily by setting it in the Cypress browser UI under Site Settings, then spelunking into the Cypress profile file to determine where it gets saved. That location is available in chrome://version I think.

@kamranayub kamranayub added enhancement New feature or request help wanted Extra attention is needed labels Jul 17, 2020
@kamranayub
Copy link
Owner Author

I noticed in Edge by viewing the Preferences file that it stores things in

profile.default.content_settings.exceptions

in this format:

"notifications": {
          "http://localhost:51631,*": {
            "expiration": "0",
            "last_modified": "13281503591035274",
            "model": 0,
            "setting": 1
          },
}

So that may be an option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: chromium enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant