WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
26184
[GTK] Immediate segfault when accessing video element properties within load event handler
https://bugs.webkit.org/show_bug.cgi?id=26184
Summary
[GTK] Immediate segfault when accessing video element properties within load ...
Mark Renouf
Reported
2009-06-04 05:14:50 PDT
App: GtkLauncher Version: SVN
r44405
OS/Platform: Ubuntu 9.04 Linux 2.6.28-11-generic #42-Ubuntu SMP If the properties of a VIDEO tag are read from within the onLoad handler, I get an immediate and repeatable segault. It doesn't require a video even being loaded. Here's the smallest test case that triggers the problem: <!DOCTYPE html> <html> <head> <script> function readVideoProperties() { var v = document.getElementsByTagName("VIDEO")[0]; if (v) { for (p in v) { var e = v[p]; } } } </script> </head> <body onload="readVideoProperties()"> <video/> </body> </html> Note, the problem seems to be reading the property, simply enumerating them is fine. Also, deferring "readVideoProperties" until after load with a setTimeout(0, ..) call prevents the problem.
Attachments
Causes immedate segfault related to VIDEO tag properties
(354 bytes, text/html)
2009-06-04 05:18 PDT
,
Mark Renouf
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Mark Renouf
Comment 1
2009-06-04 05:18:39 PDT
Created
attachment 30942
[details]
Causes immedate segfault related to VIDEO tag properties
Luka Napotnik
Comment 2
2009-08-01 12:38:04 PDT
Can't reproduce the crash with latest upstream using your example.
Martin Robinson
Comment 3
2010-05-04 17:08:33 PDT
Neither can I. Can anyone reproduce this?
Martin Robinson
Comment 4
2012-02-03 15:47:59 PST
I don't think anyone can reproduce this.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug