Skip to content

Restore qwebelement rtti - #11

Merged
mnutt merged 4 commits into
masterfrom
restore-qwebelement-rtti
Jul 9, 2023
Merged

mnutt merged 4 commits into
masterfrom
restore-qwebelement-rtti

Conversation

@mnutt

@mnutt mnutt commented Jul 6, 2023

Copy link
Copy Markdown
Member

In 2caecbb we disabled rtti for QWebElement in order to get the build working, but this broke API compatibility for users.

The issue is that QtWebKit exposes runtime type information in its API, but WebKit/WebCore has rtti disabled (via -fno-rtti). With QWebElement calling into WebCore/JSC via evaluateJavaScript, we get linking errors due to missing typeinfo for JSC::SourceProvider.

This PR splits out the code that creates the JSC::SourceProvider into a separate source file (EvaluateJS.cpp) which does not have rtti disabled.

@mnutt
mnutt force-pushed the restore-qwebelement-rtti branch from 9223914 to 64055fc Compare July 6, 2023 19:31
@mnutt
mnutt merged commit ba8a1bc into master Jul 9, 2023
@mnutt
mnutt deleted the restore-qwebelement-rtti branch July 9, 2023 01:32
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

Successfully merging this pull request may close these issues.

1 participant