Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wpewebkit] build failure when REMOTE_INSPECTOR is not enabled #30

Closed
mrstinky opened this issue Sep 13, 2018 · 5 comments
Closed

[wpewebkit] build failure when REMOTE_INSPECTOR is not enabled #30

mrstinky opened this issue Sep 13, 2018 · 5 comments

Comments

@mrstinky
Copy link

It looks like Remote Inspection code is still being called when REMOTE_INSPECTOR is not enabled.

I'm testing this on 2.20.1, but it looks like 2.21.92 would have the same problem.

Build error:
wpewebkit/2.20.1-r0/wpewebkit-2.20.1/Source/WebKit/UIProcess/API/glib/WebKitAutomationSession.cpp:87:79: error: 'webkitWebContextWillCloseAutomationSession' was not declared in this scope

The function is only in scope if REMOTE_INSPECTOR is enabled

Surce/WebKit/UIProcess/API/glib/WebKitWebContextPrivate.h-#if ENABLE(REMOTE_INSPECTOR)
Surce/WebKit/UIProcess/API/glib/WebKitWebContextPrivate.h:void webkitWebContextWillCloseAutomationSession(WebKitWebContext*);
Surce/WebKit/UIProcess/API/glib/WebKitWebContextPrivate.h-#endif

The origin of the call is traced back to didDisconnectFromRemote(*this); which hasn't been wrapped in #if ENABLED(REMOTE_INSPECTOR). But I'm not sure if it needs to be.

Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-#if ENABLE(REMOTE_INSPECTOR)
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-    if (Inspector::FrontendChannel* channel = m_remoteChannel) {
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-        m_remoteChannel = nullptr;
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-        m_frontendRouter->disconnectFrontend(channel);
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-    }
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-    setIsPaired(false);
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-#endif
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-    if (m_client)
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:        m_client->didDisconnectFromRemote(*this);
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp-}
@mrstinky mrstinky changed the title build failure with REMOTE_INSPECTOR is not enabled build failure when REMOTE_INSPECTOR is not enabled Sep 13, 2018
@mrstinky mrstinky changed the title build failure when REMOTE_INSPECTOR is not enabled [wpewebkit] build failure when REMOTE_INSPECTOR is not enabled Sep 13, 2018
@philn
Copy link
Member

philn commented Oct 15, 2018

Does this issue still happen?

@shiftee
Copy link

shiftee commented Oct 16, 2018

Still happening for me on 2.22:

wpewebkit-2.22.0/Source/WebKit/UIProcess/API/glib/WebKitAutomationSessionPrivate.h:27:115: error: 'RemoteInspector' in namespace 'Inspector' does not name a type

@philn
Copy link
Member

philn commented Oct 16, 2018

Forwarded upstream, https://bugs.webkit.org/show_bug.cgi?id=190623

@philn
Copy link
Member

philn commented Oct 16, 2018

On track for WPE 2.22.1(?): https://trac.webkit.org/wiki/WebKitGTK/2.22.x

@shiftee
Copy link

shiftee commented Dec 18, 2018

This issue appears to have been fixed. We now have 2.22.2

@philn philn closed this as completed Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants