Bug 228077 - [GTK][WPE] fix compilation when ATK is not used
Summary: [GTK][WPE] fix compilation when ATK is not used
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Víctor M. Jáquez L.
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-19 04:05 PDT by Víctor M. Jáquez L.
Modified: 2021-07-20 03:25 PDT (History)
7 users (show)

See Also:


Attachments
Patch (3.96 KB, patch)
2021-07-19 04:12 PDT, Víctor M. Jáquez L.
no flags Details | Formatted Diff | Diff
Patch (3.18 KB, patch)
2021-07-19 07:56 PDT, Víctor M. Jáquez L.
no flags Details | Formatted Diff | Diff
Patch (3.26 KB, patch)
2021-07-20 01:53 PDT, Víctor M. Jáquez L.
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Víctor M. Jáquez L. 2021-07-19 04:05:04 PDT
When compiling in embedded environment I get this error:

In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-7.cpp:8:
Source/WebKit/UIProcess/WebPageProxy.cpp: In member function ‘void WebKit::WebPageProxy::swapToProvisionalPage(std::unique_ptr<WebKit::ProvisionalPageProxy>)’:
Source/WebKit/UIProcess/WebPageProxy.cpp:975:9: error: ‘bindAccessibilityTree’ was not declared in this scope
  975 |         bindAccessibilityTree(accessibilityPlugID);
      |         ^~~~~~~~~~~~~~~~~~~~~

It seems r279983 introduced this regression.
Comment 1 Víctor M. Jáquez L. 2021-07-19 04:12:00 PDT
Created attachment 433783 [details]
Patch
Comment 2 Carlos Garcia Campos 2021-07-19 04:59:51 PDT
Right, this is because I changed this in a local branch and I forgot about it. Could you change the ATK ifdef in WebPageProxy.messages.in to PLATFORM GTK or WPE and in WebPageProxyWPE.cpp move the ATK ifdef inside the bindAccessibilityTree() function?
Comment 3 Víctor M. Jáquez L. 2021-07-19 07:56:07 PDT
Created attachment 433789 [details]
Patch
Comment 4 Carlos Garcia Campos 2021-07-20 01:04:45 PDT
Comment on attachment 433789 [details]
Patch

Thanks!
Comment 5 EWS 2021-07-20 01:23:36 PDT
vjaquez@igalia.com does not have committer permissions according to https://raw.githubusercontent.com/WebKit/WebKit/main/Tools/Scripts/webkitpy/common/config/contributors.json.

Rejecting attachment 433789 [details] from commit queue.
Comment 6 Carlos Garcia Campos 2021-07-20 01:25:55 PDT
Comment on attachment 433789 [details]
Patch

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

> Source/WebKit/UIProcess/WebPageProxy.h:2225
> +#if USE(ATK)
>      void showEmojiPicker(const WebCore::IntRect&, CompletionHandler<void(String)>&&);
>  #endif

Wait. I didn't notice this. It's an existing issue, but we can fix it now that we are changing it. This should the PLATFORM(GTK) since the emoji picker is GTK specific, it has nothing to do with ATK
Comment 7 Víctor M. Jáquez L. 2021-07-20 01:53:19 PDT
Created attachment 433858 [details]
Patch
Comment 8 EWS 2021-07-20 02:28:57 PDT
vjaquez@igalia.com does not have committer permissions according to https://raw.githubusercontent.com/WebKit/WebKit/main/Tools/Scripts/webkitpy/common/config/contributors.json.

Rejecting attachment 433858 [details] from commit queue.
Comment 9 Víctor M. Jáquez L. 2021-07-20 02:44:31 PDT
Comment on attachment 433858 [details]
Patch

It seems I forgot a step while re-enabling my committer status :S 

In the meanwhile, Carlos, can you pull the commit-queue knob?
Comment 10 EWS 2021-07-20 03:25:18 PDT
Committed r280074 (239800@main): <https://commits.webkit.org/239800@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433858 [details].