Unsupported image types are requested from <picture> element
Reported by
staley.d...@gmail.com,
May 27 2016
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36 Example URL: http://output.jsbin.com/nolowop Steps to reproduce the problem: 1. Open Network Inspector 2. Load URL 3. Observe that Chrome requests a JPEG 2000 image. What is the expected behavior? Chrome requests only the WebP image. What went wrong? Chrome requests the JPEG 2000 image first, and then requests the WebP image when the JPEG 2000 request completes. This results in a duplicate network requests and wasted bandwidth. This behavior does not occur in Firefox, but the inverse occurs in Safari where it will request the JPEG 2000 image and then the WebP image. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? N/A Chrome version: 51.0.2704.63 Channel: stable OS Version: OS X 10.11.4 Flash Version: Shockwave Flash 21.0 r0
,
May 27 2016
Yup, can confirm!
,
May 28 2016
Thank you for providing more feedback. Adding requester "pucchakayala@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 28 2016
,
May 30 2016
,
May 30 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/56bef09698c3f96a3b8a0f776f4d964bb49bb2a3 commit 56bef09698c3f96a3b8a0f776f4d964bb49bb2a3 Author: yoav <yoav@yoav.ws> Date: Mon May 30 17:39:28 2016 Avoid downloading unsupported `<source>` types in HTMLPreloadScanner The preloadScanner was picking non-matching sources as it was ignoring the `type` attribute. That resulted in unnecessary download. This CL fixes that. BUG= 615473 Review-Url: https://codereview.chromium.org/2018353002 Cr-Commit-Position: refs/heads/master@{#396742} [modify] https://crrev.com/56bef09698c3f96a3b8a0f776f4d964bb49bb2a3/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp [modify] https://crrev.com/56bef09698c3f96a3b8a0f776f4d964bb49bb2a3/third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp
,
May 30 2016
Thanks for reporting! I believe the issue is fixed, but please verify and let me know if that's not case |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by pucchakayala@chromium.org
, May 27 2016170 KB
170 KB View Download