Skip to content

fix(web): detect secure context for subtle crypto#262

Open
HamdaanAliQuatil wants to merge 4 commits intomasterfrom
detect-secure-context
Open

fix(web): detect secure context for subtle crypto#262
HamdaanAliQuatil wants to merge 4 commits intomasterfrom
detect-secure-context

Conversation

@HamdaanAliQuatil
Copy link
Copy Markdown
Collaborator

closes #159

Copy link
Copy Markdown
Member

@jonasfj jonasfj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor improvement, but let's consider putting the logic into the subtle getter

Comment thread lib/src/crypto_subtle.dart Outdated
@HamdaanAliQuatil
Copy link
Copy Markdown
Collaborator Author

Added targeted coverage for the new crypto.subtle error paths.

The getter design stays the same; I extracted the branch selection into a testable helper and added tests for the two negative cases. Coveralls increased by 0.02%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better detection of when window.crypto.subtle works (detection of secure context)

2 participants