[Webkit-unassigned] [Bug 249637] New: browserbench.org: illegal invocation of HTMLImageElement.prototype.srcset

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 19 23:58:46 PST 2022


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

            Bug ID: 249637
           Summary: browserbench.org: illegal invocation of
                    HTMLImageElement.prototype.srcset
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Website
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tophf at gmx.com
                CC: jond at apple.com

1. open browserbench.org
2. check the console

Expected: no errors
Observed: "Uncaught TypeError: Illegal invocation"

The cause is this problematic code in index.html added five years ago in bug 172049:

    if (!HTMLImageElement.prototype.srcset) {

Suggesting a possible fix:

    if (!('srcset' in HTMLImageElement.prototype)) {

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221220/8b563763/attachment-0001.htm>


More information about the webkit-unassigned mailing list