[Webkit-unassigned] [Bug 26184] New: Immediate Segfault when accessing VIDEO tag properties within onLoad
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 4 05:14:50 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26184
Summary: Immediate Segfault when accessing VIDEO tag properties
within onLoad
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mark.renouf at gmail.com
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.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list