|
|
Chromium Code Reviews
DescriptionUpdate Android site settings to display BLOCK for embargoed permissions.
The permissions team has introduced a new temporary block state for
permissions called embargo. Origins may be placed under this state if
their prompts are dismissed too many times, or if they are blacklsited by
Safe Browsing. Embargo is stored on a separate content settings type to
avoid polluting the existing type for each permission.
This CL updates the WebsitePreferenceBridge to query the
PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings
type in order to properly display embargoed permissions as blocked in
site settings on Android.
A consequence of this change is that the GeolocationHeader tests began
failing. This is because the implementation would fall back to querying
for HTTP permission if HTTPS permission was ASK or not available.
Since WebsitePreferenceBridge now queries the PermissionManager,
geolocation permission is automatically blocked over non-HTTPS
connections; it previously directly queried the HostContentSettingsMap.
The code implementing the fallback and related comments have been
removed as geolocation has been restricted to HTTPS origins since Chrome
50.
Additionally, the preferences search engine test fails because it tries
to check geolocation access for http://aol.com. That test is updated to
use a different search engine for that part of the test (one that is
available over HTTPS).
BUG=679877
Review-Url: https://codereview.chromium.org/2729493004
Cr-Commit-Position: refs/heads/master@{#454456}
Committed: https://chromium.googlesource.com/chromium/src/+/42dc98ada07c2bcd71a992aa289147dcc83f9881
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix GeolocationHeaderTests #Patch Set 3 : Excise more HTTP code #
Total comments: 4
Patch Set 4 : Fix PreferencesTest #
Messages
Total messages: 29 (23 generated)
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
dominickn@chromium.org changed reviewers: + dfalcantara@chromium.org
Hey Dan, do you mind taking a look at this? Thanks!
Description was changed from ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if they are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. BUG=679877 ========== to ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. BUG=679877 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. BUG=679877 ========== to ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections. The code implementing the fallback and related comments have been removed. BUG=679877 ==========
Description was changed from ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections. The code implementing the fallback and related comments have been removed. BUG=679877 ========== to ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections. The code implementing the fallback and related comments have been removed as geolocation has been restricted to HTTPS origins since Chrome 50. BUG=679877 ==========
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections. The code implementing the fallback and related comments have been removed as geolocation has been restricted to HTTPS origins since Chrome 50. BUG=679877 ========== to ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections; it previously directly queried the HostContentSettingsMap. The code implementing the fallback and related comments have been removed as geolocation has been restricted to HTTPS origins since Chrome 50. BUG=679877 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
lgtm https://codereview.chromium.org/2729493004/diff/1/chrome/browser/android/pref... File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/2729493004/diff/1/chrome/browser/android/pref... chrome/browser/android/preferences/website_preference_bridge.cc:162: PermissionDecisionAutoBlocker* autoblocker = auto_blocker? https://codereview.chromium.org/2729493004/diff/40001/chrome/browser/android/... File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/2729493004/diff/40001/chrome/browser/android/... chrome/browser/android/preferences/website_preference_bridge.cc:162: PermissionDecisionAutoBlocker* autoblocker = auto_blocker, given AutoBlocker https://codereview.chromium.org/2729493004/diff/40001/chrome/browser/android/... chrome/browser/android/preferences/website_preference_bridge.cc:165: ScopedJavaLocalRef<jstring> jembedder; could you be clearer about this being an empty embedder?
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections; it previously directly queried the HostContentSettingsMap. The code implementing the fallback and related comments have been removed as geolocation has been restricted to HTTPS origins since Chrome 50. BUG=679877 ========== to ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections; it previously directly queried the HostContentSettingsMap. The code implementing the fallback and related comments have been removed as geolocation has been restricted to HTTPS origins since Chrome 50. Additionally, the preferences search engine test fails because it tries to check geolocation access for http://aol.com. That test is updated to use a different search engine for that part of the test (one that is available over HTTPS). BUG=679877 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
PTAL - had to fix another dodgy test. Thanks! https://codereview.chromium.org/2729493004/diff/40001/chrome/browser/android/... File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/2729493004/diff/40001/chrome/browser/android/... chrome/browser/android/preferences/website_preference_bridge.cc:162: PermissionDecisionAutoBlocker* autoblocker = On 2017/03/02 17:05:26, dfalcantara (load balance plz) wrote: > auto_blocker, given AutoBlocker Done. https://codereview.chromium.org/2729493004/diff/40001/chrome/browser/android/... chrome/browser/android/preferences/website_preference_bridge.cc:165: ScopedJavaLocalRef<jstring> jembedder; On 2017/03/02 17:05:26, dfalcantara (load balance plz) wrote: > could you be clearer about this being an empty embedder? Done.
lgtm
The CQ bit was checked by dominickn@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1488501083828930,
"parent_rev": "54e4fbdde6ae7aa7844a0d11489ba76c9f859afb", "commit_rev":
"42dc98ada07c2bcd71a992aa289147dcc83f9881"}
Message was sent while issue was closed.
Description was changed from ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections; it previously directly queried the HostContentSettingsMap. The code implementing the fallback and related comments have been removed as geolocation has been restricted to HTTPS origins since Chrome 50. Additionally, the preferences search engine test fails because it tries to check geolocation access for http://aol.com. That test is updated to use a different search engine for that part of the test (one that is available over HTTPS). BUG=679877 ========== to ========== Update Android site settings to display BLOCK for embargoed permissions. The permissions team has introduced a new temporary block state for permissions called embargo. Origins may be placed under this state if their prompts are dismissed too many times, or if they are blacklsited by Safe Browsing. Embargo is stored on a separate content settings type to avoid polluting the existing type for each permission. This CL updates the WebsitePreferenceBridge to query the PermissionManager and the PERMISSION_AUTOBLOCKER_DATA content settings type in order to properly display embargoed permissions as blocked in site settings on Android. A consequence of this change is that the GeolocationHeader tests began failing. This is because the implementation would fall back to querying for HTTP permission if HTTPS permission was ASK or not available. Since WebsitePreferenceBridge now queries the PermissionManager, geolocation permission is automatically blocked over non-HTTPS connections; it previously directly queried the HostContentSettingsMap. The code implementing the fallback and related comments have been removed as geolocation has been restricted to HTTPS origins since Chrome 50. Additionally, the preferences search engine test fails because it tries to check geolocation access for http://aol.com. That test is updated to use a different search engine for that part of the test (one that is available over HTTPS). BUG=679877 Review-Url: https://codereview.chromium.org/2729493004 Cr-Commit-Position: refs/heads/master@{#454456} Committed: https://chromium.googlesource.com/chromium/src/+/42dc98ada07c2bcd71a992aa2891... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/42dc98ada07c2bcd71a992aa2891... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
