Bug 100537
Summary: | WebKitIDL: sequence<> types incorrectly mapped to native types | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joshua Bell <jsbell> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | abarth, code.vineet, haraken |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Joshua Bell
Examples:
Source/WebCore/testing/InternalSettings.idl: sequence<String> userPreferredLanguages();
Source/WebCore/testing/InternalSettings.idl: void setUserPreferredLanguages(in sequence<String> languages);
Source/WebCore/testing/Internals.idl: sequence<String> userPreferredLanguages();
Source/WebCore/testing/Internals.idl: void setUserPreferredLanguages(in sequence<String> languages);
Source/WebCore/testing/Internals.idl: [Conditional=INSPECTOR] sequence<String> consoleMessageArgumentCounts(in Document document);
These should be using sequence<DOMString>, but when that is used invalid code is generated. The sequence type needs to be mapped to a native type (e.g. DOMString -> String), appropriate headers need to be pulled in based on the native type, etc.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Barth
This should be an easy change to the code generators. We already know how to map DOMString to String in other situations.
Joshua Bell
*** This bug has been marked as a duplicate of bug 103763 ***
Joshua Bell
*** This bug has been marked as a duplicate of bug 103642 ***