[Webkit-unassigned] [Bug 227107] New: SVGGraphicsElement.getBBox misses checking the type of its param
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 16 19:52:44 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=227107
Bug ID: 227107
Summary: SVGGraphicsElement.getBBox misses checking the type of
its param
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zyscoder at gmail.com
Steps to reproduce:
(1) Open a tab and navigate to https://outlook.live.com/;
(2) Open Devtools and run the following code in the Console:
```
document.getElementsByTagName('svg')[0].getBBox(true);
```
Actual results:
This code would be evaluated successfully without throwing any exceptions.
Expected results:
As https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getBBox says, the getBBox method asks an SVGBoundingBoxOptions type value as its parameter. Checking for the type of param should be added and this code should throw a TypeError exception, like what Firefox does.
Firefox: `SVGGraphicsElement.getBBox: Argument 1 can't be converted to a dictionary.`
--
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/20210617/bf6b40e9/attachment-0001.htm>
More information about the webkit-unassigned
mailing list