<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>236097</bug_id>
          
          <creation_ts>2022-02-03 12:26:08 -0800</creation_ts>
          <short_desc>[WinCairo] TypeError: The SVGElement.onload getter can only be used on instances of SVGElement in https://itogo.ru/</short_desc>
          <delta_ts>2022-03-23 12:44:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>238030</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=238030</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1837053</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-02-03 12:26:08 -0800</bug_when>
    <thetext>[WinCairo] TypeError: The SVGElement.onload getter can only be used on instances of SVGElement in https://itogo.ru/

Reported for Playwight:
  https://github.com/microsoft/playwright/issues/11837

1. Start WinCairo MiniBrowser
2. Go to https://itogo.ru/
3. Blank page

Web Inspector Console reports the following error.

TypeError: The SVGElement.onload getter can only be used on instances of SVGElement
onload
(anonymous function) — polyfills-es2015.95b7e487f432fff84d0d.js:1:18856
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:100451
forEach
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:100450
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:9029:293
_trySubscribe — main-es2015.e2684406aafab48f8b7f.js:58567
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560:184
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
_innerSub — main-es2015.e2684406aafab48f8b7f.js:60519
_tryNext — main-es2015.e2684406aafab48f8b7f.js:60512
_next — main-es2015.e2684406aafab48f8b7f.js:60500
next — main-es2015.e2684406aafab48f8b7f.js:59002
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:61568
_trySubscribe — main-es2015.e2684406aafab48f8b7f.js:58567
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560:184
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:59636
_trySubscribe — main-es2015.e2684406aafab48f8b7f.js:58567
subscribe — main-es2015.e2684406aafab48f8b7f.js:58560:184
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:16875
A — polyfills-es2015.95b7e487f432fff84d0d.js:1:24502
runInitializers — main-es2015.e2684406aafab48f8b7f.js:16874
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:17431
(anonymous function) — main-es2015.e2684406aafab48f8b7f.js:17422
onInvoke — main-es2015.e2684406aafab48f8b7f.js:17043
run — polyfills-es2015.95b7e487f432fff84d0d.js:1:8755
run — polyfills-es2015.95b7e487f432fff84d0d.js:1:8755
(anonymous function) — polyfills-es2015.95b7e487f432fff84d0d.js:1:23440
runTask — polyfills-es2015.95b7e487f432fff84d0d.js:1:9374
m — polyfills-es2015.95b7e487f432fff84d0d.js:1:15969
invokeTask — polyfills-es2015.95b7e487f432fff84d0d.js:1:15048
g — polyfills-es2015.95b7e487f432fff84d0d.js:1:26841
y — polyfills-es2015.95b7e487f432fff84d0d.js:1:27157</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1838008</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-02-06 21:22:11 -0800</bug_when>
    <thetext>comment#0 is tested with WinCairo r287971.
WinCairo r289048 reports the following.

[Error] TypeError: The Document.onload getter can only be used on instances of Document — polyfills-es2015.95b7e487f432fff84d0d.js:1:18856
	(anonymous function) (main-es2015.816250ffaef98877a738.js:1:973050)
	(anonymous function) (main-es2015.816250ffaef98877a738.js:1:2882916)
	run (polyfills-es2015.95b7e487f432fff84d0d.js:1:8755)
	(anonymous function) (main-es2015.816250ffaef98877a738.js:1:364079)
	onInvoke (main-es2015.816250ffaef98877a738.js:1:357451)
	run (polyfills-es2015.95b7e487f432fff84d0d.js:1:8755)
	(anonymous function) (polyfills-es2015.95b7e487f432fff84d0d.js:1:23440)
	onInvokeTask (main-es2015.816250ffaef98877a738.js:1:357271)
	runTask (polyfills-es2015.95b7e487f432fff84d0d.js:1:9374)
	m (polyfills-es2015.95b7e487f432fff84d0d.js:1:15969)
	invokeTask (polyfills-es2015.95b7e487f432fff84d0d.js:1:15048)
	g (polyfills-es2015.95b7e487f432fff84d0d.js:1:26841)
	y (polyfills-es2015.95b7e487f432fff84d0d.js:1:27157)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1838014</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-02-06 22:27:45 -0800</bug_when>
    <thetext>Old WinCairo binaries can load the page.

r272293 OK
r273306 Blank page</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841343</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-02-14 11:57:03 -0800</bug_when>
    <thetext>Debug build of WinCairo can load the page.
This seems a bug only of Release build.
I tested Release and Debug builds of WinCairo trunk r289516.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1852632</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-03-18 00:23:46 -0700</bug_when>
    <thetext>I confirmed Debug build of WinCairo (64bit) compiled by clang-cl can load the page successfully,
but Release build reports the same error.
I used attachment#455038 [details] patch to compile with clang-cl.
See also: Bug 238030</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1853483</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-03-21 19:22:53 -0700</bug_when>
    <thetext>This issue might be same with Bug 238180.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1854340</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-03-23 12:44:06 -0700</bug_when>
    <thetext>This is fixed by r291756.

*** This bug has been marked as a duplicate of bug 238030 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>