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

Migrate Script Blocking to use `javaScriptEnabled` #428

Closed
jhreis opened this issue Nov 20, 2018 · 0 comments
Closed

Migrate Script Blocking to use `javaScriptEnabled` #428

jhreis opened this issue Nov 20, 2018 · 0 comments
Assignees

Comments

@jhreis
Copy link
Contributor

@jhreis jhreis commented Nov 20, 2018

Currently Javascript is blocked via content rules. webView.configuration.preferences contains a javaScriptEnabled flag that should be utilized.

Shield enabling should be detectable via: !domainForShields.shieldIsEnabled(.NoScript) inside of:

webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy)

This also requires changes to stats collection, as stats currently leverage all content rules for detection.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.