[Webkit-unassigned] [Bug 144095] New: img.currentSrc problem in strict mode with old picturefill

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 23 05:10:50 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144095

            Bug ID: 144095
           Summary: img.currentSrc problem in strict mode with old
                    picturefill
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zcorpan at gmail.com

See https://github.com/scottjehl/picturefill/issues/478

Microsoft discovered when implementing srcset in Project Spartan that some sites broke because they were using picturefill < 2.3.1 with "use strict" and picturefill was writing to currentSrc, which throws in strict mode. The issue has been fixed in picturefill but it's not certain all sites will upgrade in time. I think Microsoft decided to remove support for currentSrc for the time being. Alternative approaches would be to mark the property as [Replaceable] or have a no-op setter for now. Or leave it as is and evang any broken sites to upgrade picturefill.

If HTMLPictureElement is also supported, there is no issue with picturefill since it bails out early in that case. Safari 8 does not support currentSrc so this does not show up in current release.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150423/9cc76f05/attachment-0001.html>


More information about the webkit-unassigned mailing list