[Webkit-unassigned] [Bug 94790] New: Derived JS binding code throws a different exception than the normal one for overloaded functions when argument count is not enough
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 23 01:43:23 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=94790
Summary: Derived JS binding code throws a different exception
than the normal one for overloaded functions when
argument count is not enough
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: xiaobo.wang at torchmobile.com.cn
CC: rwlbuis at gmail.com, mxie at rim.com
Observed by 2 failed DRT tests if MEDIA_STREAM is enabled.
fast/files/create-blob-url-crash.html
fast/files/url-required-arguments.html
The reason is DOMURL::createObjectURL() is a overloaded when MEDIA_STREAM is enabled. A dispatching function is added for overloaded functions, and it doesn't check argument count if failed to dispatch the call to one of the overloaded functions.
Chromium and Gtk face the same issue but they created platform specific expected files for the 2 tests. I think a better solution is to fix the issue in the code generator, so that all platforms can share the same expected files.
Even if we only consider one platform, for example BlackBerry, it's possible we enable or disable MEDIA_STREAM explicitly when building WebKit. If we just change the expected result for the ENABLED scenario, the tests will still fail for the other scenario (DISABLE scenario).
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list