Bug 103362 - Remove 'in' from IDL method signatures
Summary: Remove 'in' from IDL method signatures
Status: RESOLVED DUPLICATE of bug 115418
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks: 98980
  Show dependency treegraph
 
Reported: 2012-11-26 22:02 PST by Kentaro Hara
Modified: 2013-10-02 12:38 PDT (History)
25 users (show)

See Also:


Attachments
Patch (484.59 KB, patch)
2012-11-26 22:03 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff
Patch (511.15 KB, patch)
2012-11-26 22:56 PST, Kentaro Hara
abarth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2012-11-26 22:02:03 PST
e.g. void func(in DOMString str);

The Web IDL spec no longer supports 'in'. We'd like to remove 'in' from WebKit IDL files.

timothy, thorton, Sam: This change will break Safari's internal build. Safari's internal IDL files have to be updated too (Please just remove 'in' from DOM method signatures). Please ping me once you're ready:)
Comment 1 Kentaro Hara 2012-11-26 22:03:58 PST
Created attachment 176171 [details]
Patch
Comment 2 Early Warning System Bot 2012-11-26 22:24:30 PST
Comment on attachment 176171 [details]
Patch

Attachment 176171 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/14988903
Comment 3 Kent Tamura 2012-11-26 22:34:49 PST
(In reply to comment #0)
> timothy, thorton, Sam: This change will break Safari's internal build. Safari's internal IDL files have to be updated too (Please just remove 'in' from DOM method signatures). Please ping me once you're ready:)

Why don't you make "in" support just *optional*? If it is optional, you can remove "in" in WebKit sources now.
Comment 4 Kentaro Hara 2012-11-26 22:38:21 PST
(In reply to comment #3)
> (In reply to comment #0)
> > timothy, thorton, Sam: This change will break Safari's internal build. Safari's internal IDL files have to be updated too (Please just remove 'in' from DOM method signatures). Please ping me once you're ready:)
> 
> Why don't you make "in" support just *optional*? If it is optional, you can remove "in" in WebKit sources now.

That's possible. Want to hear thoughts from Apple folks. We're trying to remove old syntaxes from WebKit IDL files and Safari's internal builds in sync (c.f. bug 102670). At present, the IDL parser is full of old and optionally supported legacy syntaxes. We want to remove them at some point (c.f. bug 98980).
Comment 5 Timothy Hatcher 2012-11-26 22:43:58 PST
Removing "in" on our end will not be that simple unless there is a script you have to do it?
Comment 6 Kentaro Hara 2012-11-26 22:50:26 PST
(In reply to comment #5)
> Removing "in" on our end will not be that simple unless there is a script you have to do it?

Thanks! I used the following scripts. Does it work?

$ cd Source/WebCore/
$ find . -regex '.+.idl' | xargs sed -r -i 's/(\()\s*in\s+/\1/g'
$ find . -regex '.+.idl' | xargs sed -r -i 's/^(\s+)in\s+/\1/g'
$ find . -regex '.+.idl' | xargs sed -r -i 's/(,\s+)in\s+/\1/g'
Comment 7 Kentaro Hara 2012-11-26 22:56:05 PST
Created attachment 176184 [details]
Patch
Comment 8 Kentaro Hara 2012-11-27 15:58:41 PST
Now bots are green. Would you review the patch so that I can land it once Safari's side gets ready?
Comment 9 Adam Barth 2012-11-27 16:05:35 PST
Comment on attachment 176184 [details]
Patch

The change itself looks good.  We should, of course, be polite and not break the internal Safari build.
Comment 10 Antonio Gomes 2013-10-02 12:38:25 PDT

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