Bug 140000 - REGRESSION(r177795): [GTK] Build broken
Summary: REGRESSION(r177795): [GTK] Build broken
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords:
Depends on:
Blocks: 139990
  Show dependency treegraph
 
Reported: 2014-12-29 16:24 PST by Carlos Alberto Lopez Perez
Modified: 2014-12-31 03:36 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.95 KB, patch)
2014-12-30 07:26 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Zan Dobersek 2014-12-30 07:26:20 PST
Created attachment 243823 [details]
Patch
Comment 2 Zan Dobersek 2014-12-30 07:39:53 PST
Comment on attachment 243823 [details]
Patch

I'm not exactly sure why and how the build error popped up now, but the GTK-specific argument coders were simply not included (anymore?) in the WebPageProxyMessageReceiver.cpp file. This should fix it for good, but I want a review to asses whether it might not be an appropriate approach.
Comment 3 Darin Adler 2014-12-30 10:03:17 PST
Comment on attachment 243823 [details]
Patch

Seems probably not the right approach. ArgumentCodersCF.h and ArgumentCodersMac.h don’t work this way.
Comment 4 Csaba Osztrogonác 2014-12-31 00:37:38 PST
Comment on attachment 243823 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243823&action=review

Why not simply including ArgumentCodersGtk.h from the sources which need it?

Or including it from only ArgumentCoders.h and adding a guard to avoid
including it from anywhere else.

> Source/WebKit2/Platform/IPC/ArgumentCoders.h:305
> +#if PLATFORM(GTK)
> +#include "ArgumentCodersGtk.h"
> +#endif

ArgumentCoders.h is included in ArgumentCodersGtk.h too.
Comment 5 Csaba Osztrogonác 2014-12-31 02:10:43 PST
(In reply to comment #4)
> Why not simply including ArgumentCodersGtk.h from the sources which need it?
Ah, WebPageProxyMessageReceiver.cpp is a generated source, so it isn't so easy
to fix the generator properly.
Comment 6 Csaba Osztrogonác 2014-12-31 02:22:10 PST
(In reply to comment #2)
> Comment on attachment 243823 [details]
> Patch
> 
> I'm not exactly sure why and how the build error popped up now, but the
> GTK-specific argument coders were simply not included (anymore?) in the
> WebPageProxyMessageReceiver.cpp file. This should fix it for good, but I
> want a review to asses whether it might not be an appropriate approach.

I found the root of the problem. Before r177795 ArgumentCodersGtk.h was
included indirectly: InjectedBundleUserMessageCoders.h -> WebPage.h ->
ArgumentCodersGtk.h. But now InjectedBundleUserMessageCoders.h isn't
included anymore.
Comment 7 Zan Dobersek 2014-12-31 03:35:28 PST
Committed a fix in r177832.
http://trac.webkit.org/changeset/177832

I just moved the ArgumentCodersGtk.h inclusion from WebPageProxy.cpp to WebPageProxy.h, which makes ArgumentCoder<WebCore::DragData> available in WebPageProxyMessageReceiver.cpp.