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

Commit 4961105a authored by Tim Volodine's avatar Tim Volodine
Browse files

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

This reverts commit 954d1333.

The revert is due to apps calling super.onGeolocationPermissionsShowPrompt see b/22685046

Bug: 22685046
Change-Id: I2a9f42b432a010828a0cafaee064480bb0f91cbe
(cherry picked from commit 0bb7d2e4)
parent abd35bfc
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -284,19 +284,13 @@ 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) {
        callback.invoke(origin, false, false);
    }
            GeolocationPermissions.Callback callback) {}

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