WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
62904
Remove LegacyDefaultOptionalArguments flag from IDL files where it would not change behavior
https://bugs.webkit.org/show_bug.cgi?id=62904
Summary
Remove LegacyDefaultOptionalArguments flag from IDL files where it would not ...
Mark Pilgrim (Google)
Reported
2011-06-17 13:01:07 PDT
After
bug 62750
, there are many IDL files that contain the new LegacyDefaultOptionalArguments flag that don't actually need it. Some examples: - the IDL file contains no functions - the IDL file contains only functions with no arguments - the IDL file contains functions, *all* of which use the [RequiresAllArguments=raise] extended attribute This patch simplifies such IDL files by removing the LegacyDefaultOptionalArguments flag and (if needed) removing the [RequiresAllArguments=raise] extended attribute from each function declaration. This patch does not make any required arguments optional or any optional arguments required. It changes no behavior at all.
Attachments
Patch
(171.28 KB, patch)
2011-06-17 13:53 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
warning fix
(1.37 KB, patch)
2011-06-20 03:53 PDT
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
Patch
(172.71 KB, patch)
2011-06-20 11:55 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2011-06-17 13:53:08 PDT
Created
attachment 97648
[details]
Patch
Darin Adler
Comment 2
2011-06-17 17:42:31 PDT
Comment on
attachment 97648
[details]
Patch =
WebKit Review Bot
Comment 3
2011-06-17 23:31:09 PDT
Comment on
attachment 97648
[details]
Patch Clearing flags on attachment: 97648 Committed
r89189
: <
http://trac.webkit.org/changeset/89189
>
WebKit Review Bot
Comment 4
2011-06-17 23:31:14 PDT
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 5
2011-06-18 01:31:08 PDT
Reopen, because it broke Qt build and was rolled out by
http://trac.webkit.org/changeset/89190
cc1plus: warnings being treated as errors ../../WebCore/generated/JSDOMCoreException.cpp: In function ‘JSC::EncodedJSValue WebCore::jsDOMCoreExceptionPrototypeFunctionToString(JSC::ExecState*)’: ../../WebCore/generated/JSDOMCoreException.cpp:265: error: comparison of unsigned expression < 0 is always false
Csaba Osztrogonác
Comment 6
2011-06-18 01:39:06 PDT
It broke other bots too, not only the Qt. Please respect contributing rules try to keep the tree green:
http://www.webkit.org/coding/contributing.html
"Your change must at least compile on all platforms."
Adam Barth
Comment 7
2011-06-18 04:34:54 PDT
Thanks Ossy. I wonder why the qt ews bot didn't warn us. :(
Darin Adler
Comment 8
2011-06-18 13:13:35 PDT
(In reply to
comment #7
)
> Thanks Ossy. I wonder why the qt ews bot didn't warn us. :(
What about the commit bot? Is this happening because the commit bot now uses V8 instead of JSC?
Adam Barth
Comment 9
2011-06-18 22:05:43 PDT
> What about the commit bot? Is this happening because the commit bot now uses V8 instead of JSC?
As the patch built fine on gtk and win, it seems more likely to be a compiler difference than a JSC/V8 difference.
Darin Adler
Comment 10
2011-06-19 11:32:57 PDT
(In reply to
comment #9
)
> > What about the commit bot? Is this happening because the commit bot now uses V8 instead of JSC? > > As the patch built fine on gtk and win, it seems more likely to be a compiler difference than a JSC/V8 difference.
It’s a combination of both. A compiler warning in JSC-generated code.
Csaba Osztrogonác
Comment 11
2011-06-20 03:53:37 PDT
Created
attachment 97776
[details]
warning fix "if (exec->argumentCount() < 0" was incorrect, because it is always false. With the attached fix non-V8 builds will be happy.
Mark Pilgrim (Google)
Comment 12
2011-06-20 11:55:31 PDT
Created
attachment 97832
[details]
Patch
Mark Pilgrim (Google)
Comment 13
2011-06-20 11:57:48 PDT
Combined patch with warning fix. Thanks Ossy for debugging.
Adam Barth
Comment 14
2011-06-20 11:57:57 PDT
Comment on
attachment 97832
[details]
Patch Ok. Let's give this version a try.
WebKit Review Bot
Comment 15
2011-06-20 12:22:47 PDT
Comment on
attachment 97832
[details]
Patch Clearing flags on attachment: 97832 Committed
r89269
: <
http://trac.webkit.org/changeset/89269
>
WebKit Review Bot
Comment 16
2011-06-20 12:22:53 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug