-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Display rationale before requesting a permission #1271
Conversation
Test website: https://people.igalia.com/femorandeira/permissions/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just have some minor comments
@@ -275,7 +300,7 @@ public void reject() { | |||
} | |||
|
|||
@Override | |||
public void onMediaPermissionRequest(WSession aSession, String aUri, MediaSource[] aVideo, MediaSource[] aAudio, final MediaCallback aMediaCallback) { | |||
public void onMediaPermissionRequest(@NonNull WSession aSession, @NonNull String aUri, MediaSource[] aVideo, MediaSource[] aAudio, @NonNull final MediaCallback aMediaCallback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we could gather all the missing annotations in a separate commit?
1c968c0
to
1211c29
Compare
This is required by HVR in mainland China.
1211c29
to
39a5c40
Compare
This is required by HVR in mainland China.
This is implemented by showing a dialog before the Android API is called.