Bug 100537 - WebKitIDL: sequence<> types incorrectly mapped to native types
Summary: WebKitIDL: sequence<> types incorrectly mapped to native types
Status: RESOLVED DUPLICATE of bug 103642
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-26 10:24 PDT by Joshua Bell
Modified: 2012-12-04 12:27 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Bell 2012-10-26 10:24:51 PDT
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.
Comment 1 Adam Barth 2012-10-26 13:54:29 PDT
This should be an easy change to the code generators.  We already know how to map DOMString to String in other situations.
Comment 2 Joshua Bell 2012-12-04 10:53:37 PST

*** This bug has been marked as a duplicate of bug 103763 ***
Comment 3 Joshua Bell 2012-12-04 12:27:25 PST

*** This bug has been marked as a duplicate of bug 103642 ***