Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Issue 16932006: [Android WebView] Fix LoadsImagesAutomatically tests after crbug.com/224317 (Closed)

Created:
7 years, 6 months ago by mnaganov (inactive)
Modified:
7 years, 6 months ago
Reviewers:
joth, benm (inactive)
CC:
chromium-reviews, android-webview-reviews_chromium.org, boliu
Visibility:
Public.

Description

[Android WebView] Fix LoadsImagesAutomatically tests after crbug.com/224317 Blink now has more reasonable behavior of LoadsImagesAutomatically and ImagesDisabled settings. Namely, ImagesDisabled prevents any images from showing up, including cached ones. LoadsImagesAutomatically now allows "loading" of data uri images embedded in pages. This allows us to simplify our wirings for implementing Android WebView's LoadsImagesAutomatically and BlockNetworkImage. The trick is that we should wire them cris-cross, as WebView's LoadsImagesAutomatically must block all images from loading / showing up (as ImagesDisabled), while BlockNetworkImage's contract is now fulfilled by Blink's LoadsImagesAutomatically. Please read comments on the bugs referenced if this sounds weird to you. AwSettingsTest.testLoadsImagesAutomaticallyWithCachedImage is removed because this behavior is not in fact standardized in WebView Classic and isn't preserved anymore. In fact, as cache is transient, it would be unwise for an application to rely on the fact that cached images will stay there forever and thus could be shown even if LoadsImagesAutomatically is disabled. BUG=248249, 224317 R=benm@chromium.org, joth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206692

Patch Set 1 #

Patch Set 2 : Added a comment #

Patch Set 3 : Restored WebPermissionClient inheritance #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -110 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 2 chunks +4 lines, -88 lines 0 comments Download
M android_webview/native/aw_settings.cc View 1 1 chunk +5 lines, -2 lines 2 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 1 2 1 chunk +0 lines, -15 lines 2 comments Download

Messages

Total messages: 14 (0 generated)
mnaganov (inactive)
7 years, 6 months ago (2013-06-13 16:17:39 UTC) #1
mnaganov (inactive)
Ben, this seems to conflict with your https://codereview.chromium.org/16940009/ where you are implementing more methods of ...
7 years, 6 months ago (2013-06-13 16:23:05 UTC) #2
benm (inactive)
On 2013/06/13 16:23:05, Mikhail Naganov (Chromium) wrote: > Ben, this seems to conflict with your ...
7 years, 6 months ago (2013-06-13 16:31:04 UTC) #3
mnaganov (inactive)
On 2013/06/13 16:31:04, benm wrote: > On 2013/06/13 16:23:05, Mikhail Naganov (Chromium) wrote: > > ...
7 years, 6 months ago (2013-06-13 16:34:10 UTC) #4
mnaganov (inactive)
On 2013/06/13 16:34:10, Mikhail Naganov (Chromium) wrote: > On 2013/06/13 16:31:04, benm wrote: > > ...
7 years, 6 months ago (2013-06-13 16:51:50 UTC) #5
benm (inactive)
lgtm
7 years, 6 months ago (2013-06-13 16:54:27 UTC) #6
joth
lgtm thanks for the quick reaction on this Mikhail. https://codereview.chromium.org/16932006/diff/11001/android_webview/native/aw_settings.cc File android_webview/native/aw_settings.cc (right): https://codereview.chromium.org/16932006/diff/11001/android_webview/native/aw_settings.cc#newcode159 android_webview/native/aw_settings.cc:159: ...
7 years, 6 months ago (2013-06-13 17:27:14 UTC) #7
abarth-chromium
https://codereview.chromium.org/16932006/diff/11001/android_webview/renderer/aw_render_view_ext.cc File android_webview/renderer/aw_render_view_ext.cc (left): https://codereview.chromium.org/16932006/diff/11001/android_webview/renderer/aw_render_view_ext.cc#oldcode172 android_webview/renderer/aw_render_view_ext.cc:172: const WebKit::WebURL& image_url) { Oh, it's great that you ...
7 years, 6 months ago (2013-06-13 18:20:10 UTC) #8
joth
https://codereview.chromium.org/16932006/diff/11001/android_webview/renderer/aw_render_view_ext.cc File android_webview/renderer/aw_render_view_ext.cc (left): https://codereview.chromium.org/16932006/diff/11001/android_webview/renderer/aw_render_view_ext.cc#oldcode172 android_webview/renderer/aw_render_view_ext.cc:172: const WebKit::WebURL& image_url) { On 2013/06/13 18:20:10, abarth wrote: ...
7 years, 6 months ago (2013-06-14 00:25:25 UTC) #9
joth
(so not lgtm, pending confirmation.)
7 years, 6 months ago (2013-06-14 00:26:07 UTC) #10
mnaganov (inactive)
On 2013/06/14 00:25:25, joth wrote: > https://codereview.chromium.org/16932006/diff/11001/android_webview/renderer/aw_render_view_ext.cc > File android_webview/renderer/aw_render_view_ext.cc (left): > > https://codereview.chromium.org/16932006/diff/11001/android_webview/renderer/aw_render_view_ext.cc#oldcode172 > ...
7 years, 6 months ago (2013-06-14 06:05:29 UTC) #11
joth
On 2013/06/14 06:05:29, Mikhail Naganov (Chromium) wrote: > On 2013/06/14 00:25:25, joth wrote: > > ...
7 years, 6 months ago (2013-06-14 20:29:45 UTC) #12
mnaganov (inactive)
I added more explanations to the description, hopefully it is clearer now. https://codereview.chromium.org/16932006/diff/11001/android_webview/native/aw_settings.cc File android_webview/native/aw_settings.cc ...
7 years, 6 months ago (2013-06-17 08:56:53 UTC) #13
mnaganov (inactive)
7 years, 6 months ago (2013-06-17 09:21:01 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 manually as r206692 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698