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

Issue 355043002: Fix loading of data: URI images wrt loadsImagesAutomatically setting (Closed)

Created:
6 years, 6 months ago by mnaganov (inactive)
Modified:
6 years, 5 months ago
Reviewers:
Nate Chapin, eseidel
CC:
blink-reviews, Nate Chapin, gavinp+loader_chromium.org
Project:
blink
Visibility:
Public.

Description

Fix loading of data: URI images wrt loadsImagesAutomatically setting This fixes AwSettingsTest#testBlockNetworkImagesDoesNotBlockDataUrlImage in Chrome broken after Blink r176642 BUG=356292, 387101 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177425

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments and fixed SVG image tests #

Total comments: 2

Patch Set 3 : A better approach #

Total comments: 2

Patch Set 4 : Comments addressed #

Patch Set 5 : Fixed reload-subresource-when-type-changes.html failure #

Patch Set 6 : Now correctly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
A LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
mnaganov (inactive)
6 years, 6 months ago (2014-06-26 16:09:49 UTC) #1
eseidel
Nate is high lord of the loader soup.
6 years, 6 months ago (2014-06-26 16:21:50 UTC) #2
mnaganov (inactive)
Thanks for routing the issue, Eric! Nate, here is some context about this issue: https://code.google.com/p/chromium/issues/detail?id=356292#c17
6 years, 6 months ago (2014-06-26 16:24:18 UTC) #3
eseidel
https://codereview.chromium.org/355043002/diff/1/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html File LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html (right): https://codereview.chromium.org/355043002/diff/1/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html#newcode7 LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html:7: testRunner.waitUntilDone(); You shouldn't have to wait until done? onload ...
6 years, 6 months ago (2014-06-26 16:24:35 UTC) #4
mnaganov (inactive)
Argh, it looks like the change breaks "data:image/svg+xml" images, so I need to reconsider it. ...
6 years, 6 months ago (2014-06-26 16:42:40 UTC) #5
mnaganov (inactive)
OK, SVG tests should work now. data:image/svg+xml is a special case within a special case.
6 years, 6 months ago (2014-06-26 17:02:24 UTC) #6
eseidel
https://codereview.chromium.org/355043002/diff/20001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/355043002/diff/20001/Source/core/fetch/ResourceFetcher.cpp#newcode154 Source/core/fetch/ResourceFetcher.cpp:154: if (!data || mimetype == "image/svg+xml") Comments would be ...
6 years, 6 months ago (2014-06-26 17:37:17 UTC) #7
mnaganov (inactive)
I think I have found a better approach -- just make ResourceFetcher::requestPreload to use the ...
6 years, 5 months ago (2014-06-27 15:13:59 UTC) #8
mnaganov (inactive)
eseidel@, japhet@: Can you please take a look?
6 years, 5 months ago (2014-06-30 08:03:50 UTC) #9
Nate Chapin
LGTM https://codereview.chromium.org/355043002/diff/40001/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html File LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html (right): https://codereview.chromium.org/355043002/diff/40001/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html#newcode6 LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html:6: if (window.testRunner) { Nit: No {}
6 years, 5 months ago (2014-07-01 19:12:43 UTC) #10
mnaganov (inactive)
Thanks, Nate! I see that Eric has disabled the preloader again, but I'm anyway committing ...
6 years, 5 months ago (2014-07-02 08:39:29 UTC) #11
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 5 months ago (2014-07-02 08:39:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/355043002/60001
6 years, 5 months ago (2014-07-02 08:40:47 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-02 09:46:21 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 10:53:05 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/14711)
6 years, 5 months ago (2014-07-02 10:53:06 UTC) #16
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 5 months ago (2014-07-02 15:30:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/355043002/80001
6 years, 5 months ago (2014-07-02 15:31:21 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-02 16:15:56 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 16:26:43 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/14761)
6 years, 5 months ago (2014-07-02 16:26:44 UTC) #21
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 5 months ago (2014-07-02 16:55:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/355043002/100001
6 years, 5 months ago (2014-07-02 16:57:03 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-02 20:49:53 UTC) #24
commit-bot: I haz the power
6 years, 5 months ago (2014-07-02 21:23:25 UTC) #25
Message was sent while issue was closed.
Change committed as 177425

Powered by Google App Engine
This is Rietveld 408576698