Repository navigation
fix: share allowedWebHIDDevices per origin - #34
Conversation
due to limited params of the devicePermissionHandler (only having access to origin really), we need to consider all windows of the same origin
|
Warning Review limit reached
More reviews will be available in 45 minutes and 55 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
About the Contributor
This pull request is posted on behalf of TV 2 Norge
Type of Contribution
This is a:
Bug fix
Current Behavior
It could happen that a window with
allowedWebHIDDevicesdefined, would not have its device auto-approved, if another window exists in the config, with a URL from the same origin, but noallowedWebHIDDevices.New Behavior
Due to limited params of the
devicePermissionHandler(only having access to origin really), we consider all windows of the same origin as sharing theirallowedWebHIDDevicesarrays. As documented, If multiple windows load pages from the same URL origin (e.g.https://example.com), a device will be auto-approved as long as it is listed inallowedWebHIDDevicesfor any of those windows - not necessarily the one actually using it.Testing Instructions
Other Information
Status