WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
163297
Web Inspector: move Mac-specific automation commands to a separate implementation file
https://bugs.webkit.org/show_bug.cgi?id=163297
Summary
Web Inspector: move Mac-specific automation commands to a separate implementa...
Blaze Burg
Reported
2016-10-11 14:09:18 PDT
>
Attachments
Proposed Fix
(148.22 KB, patch)
2016-10-11 17:05 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Fix CMake
(150.78 KB, patch)
2016-10-13 15:01 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Fix CMake/EFL
(151.04 KB, patch)
2016-10-13 15:31 PDT
,
Blaze Burg
joepeck
: review+
Details
Formatted Diff
Diff
Proposed Fix v2
(86.65 KB, patch)
2017-01-17 17:05 PST
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Proposed Fix v2.1
(90.19 KB, patch)
2017-01-17 18:16 PST
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Proposed Fix v2.2
(90.31 KB, patch)
2017-01-17 21:06 PST
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Blaze Burg
Comment 1
2016-10-11 14:09:24 PDT
<
rdar://problem/28718990
>
Blaze Burg
Comment 2
2016-10-11 17:05:38 PDT
Created
attachment 291320
[details]
Proposed Fix
Blaze Burg
Comment 3
2016-10-13 15:01:53 PDT
Created
attachment 291522
[details]
Fix CMake
Blaze Burg
Comment 4
2016-10-13 15:31:55 PDT
Created
attachment 291528
[details]
Fix CMake/EFL
Joseph Pecoraro
Comment 5
2016-10-14 14:29:49 PDT
Comment on
attachment 291528
[details]
Fix CMake/EFL View in context:
https://bugs.webkit.org/attachment.cgi?id=291528&action=review
r=me, but I do think it would be better to just update the JSON and the Generator instead of using the preprocessor and two levels of generation. More comments below
> Source/WebKit2/CMakeLists.txt:836 > +# Right now we don't need to build with any defines, but it might be necessary later. > +set(WebKit2_AUTOMATION_PROTOCOL_PREPROCESSOR_DEFINES > +)
Is this worth keeping? We could just add it when its needed.
> Source/WebKit2/UIProcess/Automation/Automation.json.in:281 > +#if !defined(PLATFORM_IOS) || !PLATFORM_IOS
Having thought about this for a little while, this seems overly complex. The json file is already an input for generation. Its like having an Automation.in.in to generate Automation.in to generate code. Given its limited to just this it seems fine for now but longer term it just seems it would be better to move back to a single Automation.json that can handle customization per-command. It might be easier than expected. The generator already has support for a whole domain: "featureGuard": "ENABLE(INDEXED_DATABASE)" If that, or something similar, was carried to individual commands it seems things would be much simpler. Likewise, having 1 json file that can be opened and edited with JSON tools would be nice. Having #if/else in json files probably breaks syntax highlighting in some editors.
> Source/WebKit2/UIProcess/Automation/cocoa/WebAutomationSessionCocoa.mm:40 > +#pragma mark Platform-dependent Implementations
This is not needed, it is in a FooCocoa.mm file.
Blaze Burg
Comment 6
2017-01-17 16:02:53 PST
Reworking this to just move implementations. The generator side changes have landed already.
Blaze Burg
Comment 7
2017-01-17 17:05:33 PST
Created
attachment 299089
[details]
Proposed Fix v2
Blaze Burg
Comment 8
2017-01-17 18:16:38 PST
Created
attachment 299100
[details]
Proposed Fix v2.1
Blaze Burg
Comment 9
2017-01-17 21:06:51 PST
Created
attachment 299117
[details]
Proposed Fix v2.2
WebKit Commit Bot
Comment 10
2017-01-19 09:53:48 PST
Comment on
attachment 299117
[details]
Proposed Fix v2.2 Clearing flags on attachment: 299117 Committed
r210927
: <
http://trac.webkit.org/changeset/210927
>
WebKit Commit Bot
Comment 11
2017-01-19 09:53:52 PST
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 12
2017-01-19 12:06:06 PST
(In reply to
comment #10
)
> Comment on
attachment 299117
[details]
> Proposed Fix v2.2 > > Clearing flags on attachment: 299117 > > Committed
r210927
: <
http://trac.webkit.org/changeset/210927
>
It broke the Apple Mac cmake build:
https://build.webkit.org/builders/Apple%20El%20Capitan%20CMake%20Debug%20%28Build%29/builds/11365
Blaze Burg
Comment 13
2017-01-19 16:57:14 PST
(In reply to
comment #12
)
> (In reply to
comment #10
) > > Comment on
attachment 299117
[details]
> > Proposed Fix v2.2 > > > > Clearing flags on attachment: 299117 > > > > Committed
r210927
: <
http://trac.webkit.org/changeset/210927
> > > It broke the Apple Mac cmake build: >
https://build.webkit.org/builders/
> Apple%20El%20Capitan%20CMake%20Debug%20%28Build%29/builds/11365
Oops, we need to pass --platform=macOS when building for Mac with CMake.
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