Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29333104: Issue 3459 - Added content policy tests for <img srcset> and fetch() (Closed)

Created:
Dec. 29, 2015, 3:38 p.m. by Sebastian Noack
Modified:
Jan. 6, 2016, 4:51 p.m.
Reviewers:
Erik, Wladimir Palant
Visibility:
Public.

Description

Issue 3459 - Added content policy tests for <img srcset> and fetch()

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M chrome/content/tests/policy.js View 2 chunks +14 lines, -0 lines 2 comments Download

Messages

Total messages: 7
Sebastian Noack
Besides the <picture> tag is supposed to be supported since Firefox 38, I simply couldn't ...
Dec. 29, 2015, 3:44 p.m. (2015-12-29 15:44:49 UTC) #1
Erik
LGTM
Dec. 29, 2015, 6:31 p.m. (2015-12-29 18:31:43 UTC) #2
Wladimir Palant
On 2015/12/29 15:44:49, Sebastian Noack wrote: > Besides the <picture> tag is supposed to be ...
Dec. 29, 2015, 11:25 p.m. (2015-12-29 23:25:40 UTC) #3
Sebastian Noack
On 2015/12/29 23:25:40, Wladimir Palant wrote: > On 2015/12/29 15:44:49, Sebastian Noack wrote: > > ...
Dec. 30, 2015, 3:46 p.m. (2015-12-30 15:46:20 UTC) #4
Wladimir Palant
On 2015/12/30 15:46:20, Sebastian Noack wrote: > No, it is enabled. Did you ever managed ...
Jan. 6, 2016, 1:05 p.m. (2016-01-06 13:05:02 UTC) #5
Sebastian Noack
On 2016/01/06 13:05:02, Wladimir Palant wrote: > On 2015/12/30 15:46:20, Sebastian Noack wrote: > > ...
Jan. 6, 2016, 1:40 p.m. (2016-01-06 13:40:03 UTC) #6
Sebastian Noack
Jan. 6, 2016, 4:51 p.m. (2016-01-06 16:51:31 UTC) #7
Message was sent while issue was closed.
On 2016/01/06 13:40:03, Sebastian Noack wrote:
> On 2016/01/06 13:05:02, Wladimir Palant wrote:
> > On 2015/12/30 15:46:20, Sebastian Noack wrote:
> > > No, it is enabled. Did you ever managed to make the <picture> tag work?
> > 
> > Yes, I did. On http://googlechrome.github.io/samples/picture-element/ I can
> see
> > the right kitten image (Diagnostics shows
> >
http://googlechrome.github.io/samples/picture-element/images/kitten-large.png
> > being loaded as IMAGESET, fallback is
> >
>
http://googlechrome.github.io/samples/picture-element/images/kitten-small.png).
> 
> Hmm, that example doesn't work either on Firefox/Iceweasel 42 on Debian Linux.
> However, window.HTMLPictureElement exists.

I figured it out. The issue was that the <picture> is never rendered or loaded
when there is no <img> tag inside, even though the <img> tag is only used as
fallback. However, as the inspector always highlights the inner <img> tag when
selecting the picture and removing it is causing the picture to be hidden, I
assumed that only the <img> tag is used. I'm not sure if this is a bug. But
simply adding an empty <img> tag does the trick. Here is a new patch:
https://codereview.adblockplus.org/29333270

Powered by Google App Engine
This is Rietveld