fix: use getAsFileSystemHandle only in secure ctx#116
Conversation
Pull Request Test Coverage Report for Build 12009643702Details
💛 - Coveralls |
jonkoops
left a comment
There was a problem hiding this comment.
Interesting, so only when in a secure context does getAsFileSystemHandle() return the expected values? What a strange issue, is there a bug/tracker for this behavior in the affected browsers?
|
Found the tracker here: https://issues.chromium.org/issues/40186242. I'll see if I can reproduce the original issue, as this really feels like something that should be solved by the Chromium team. |
I think we can consider it an undefined behaviour when not in a secure context. I'd expect it to throw an exception when trying to use it, and not crash the browser. |
In any case, guarding for a secure context should still be applicable. Wow, that issue is from 2021 😮 |
I am really surprised it is even present. All other APIs that are behind a secure context are just straight up
I agree, if this helps users now then we should land this. We can always remove it in a future version if the Chromium team ever decides to fix it.
And yes, that issue is really old, I am surprised it has slipped through the cracks. |
ddb38ec to
da7157d
Compare
da7157d to
70f2362
Compare
|
🎉 This PR is included in version 2.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
@rolandjitsu in terms of backporting (fowardporting), shall I cherry-pick this onto the |
I usually make sure beta is rebased onto master ... but I know semantic-release will hate that 😆 |
|
Yeah, that would be my approach as well if it wasn't for Alternative approach, we can cherry pick this fix on top of |
If it weren't for NPM, I'd usually remove all tags/releases, rebase and force push, then the rc.1 would be recreated (not ideal, but it keeps the commit history clean). But with NPM in play, we must make sure semantic-release moves fwd with versioning:
We may need to use a merge with a commit to avoid the headaches; see https://semantic-release.gitbook.io/semantic-release/usage/workflow-configuration#merging-into-a-pre-release-branch. |
This is manageable, we don't intend to do any releases when we rename
This would not change the tags, they would be preserved and remain on the |
|
I've created a backport for this PR to the beta branch under #122 |
I have a faint recollection of semantic-release not liking a maintenance branch for the current major before releasing a major. But it may have been a different scenario or workflow. I was looking at https://semantic-release.gitbook.io/semantic-release/usage/workflow-configuration#maintenance-branches and it seems ok as long as we stay within the range enforced by semver (in I can go ahead and create the |
|
Oh boy, our CI release file does not allow for
We could leave it at that. |
|
I think we can hold of on branching to Probably |
What kind of change does this PR introduce?
Did you add tests for your changes?
If relevant, did you update the documentation?
Summary
Potential fix for react-dropzone/react-dropzone#1397.
Does this PR introduce a breaking change?
No.
Other information