Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e3d794b authored by Tim Volodine's avatar Tim Volodine Committed by Android (Google) Code Review
Browse files

Merge "Invoke geolocation permissions callback with denied state by default."

parents 545ebdef 954d1333
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -284,13 +284,19 @@ public class WebChromeClient {
     * currently set for that origin. The host application should invoke the
     * specified callback with the desired permission state. See
     * {@link GeolocationPermissions} for details.
     *
     * If this method isn't overridden, the callback is invoked with permission
     * denied state.
     *
     * @param origin The origin of the web content attempting to use the
     *               Geolocation API.
     * @param callback The callback to use to set the permission state for the
     *                 origin.
     */
    public void onGeolocationPermissionsShowPrompt(String origin,
            GeolocationPermissions.Callback callback) {}
            GeolocationPermissions.Callback callback) {
        callback.invoke(origin, false, false);
    }

    /**
     * Notify the host application that a request for Geolocation permissions,