Bug 44527 - [Qt] Implement WebKit::Module for qt
Summary: [Qt] Implement WebKit::Module for qt
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 09:10 PDT by Balazs Kelemen
Modified: 2010-08-25 02:29 PDT (History)
1 user (show)

See Also:


Attachments
proposed patch (2.40 KB, patch)
2010-08-24 09:13 PDT, Balazs Kelemen
kenneth: review-
kenneth: commit-queue-
Details | Formatted Diff | Diff
proposed patch (2.07 KB, patch)
2010-08-24 10:14 PDT, Balazs Kelemen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Balazs Kelemen 2010-08-24 09:10:37 PDT
First step of making plugins work in WebKit2.
Comment 1 Balazs Kelemen 2010-08-24 09:13:38 PDT
Created attachment 65281 [details]
proposed patch
Comment 2 Kenneth Rohde Christiansen 2010-08-24 09:29:53 PDT
Comment on attachment 65281 [details]
proposed patch

WebKit2/Platform/qt/ModuleQt.cpp:34
 +      // Try to remove the file suffix if the path contains it.
Try removing... 

You don't say why.

WebKit2/Platform/qt/ModuleQt.cpp:35
 +      QString path = static_cast<QString>(m_path);
What is m_path?

WebKit2/Platform/qt/ModuleQt.cpp:37
 +      if ((lastIndex = path.lastIndexOf(QString(".so"))) >= 0)
QLatin1String please

WebKit2/Platform/qt/ModuleQt.cpp:39
 +      else if ((lastIndex = path.lastIndexOf(QString(".dll"))) >= 0)
Same here

Apart from this it looks sane.
Comment 3 Balazs Kelemen 2010-08-24 10:10:59 PDT
(In reply to comment #2)
> (From update of attachment 65281 [details])
> WebKit2/Platform/qt/ModuleQt.cpp:34
>  +      // Try to remove the file suffix if the path contains it.
> Try removing... 
> 
> You don't say why.
> 
> WebKit2/Platform/qt/ModuleQt.cpp:35
>  +      QString path = static_cast<QString>(m_path);
> What is m_path?

The filename (with path) of the library we want to load.
Actually, I have found out that we can assure that the path is good for QLibrary in UIProcess/Plugins/PluginInfoQt.cpp so the whole string stuff is useless here. I will remove that in the next patch.
Comment 4 Balazs Kelemen 2010-08-24 10:14:03 PDT
Created attachment 65289 [details]
proposed patch
Comment 5 WebKit Commit Bot 2010-08-25 02:29:25 PDT
Comment on attachment 65289 [details]
proposed patch

Clearing flags on attachment: 65289

Committed r65998: <http://trac.webkit.org/changeset/65998>
Comment 6 WebKit Commit Bot 2010-08-25 02:29:29 PDT
All reviewed patches have been landed.  Closing bug.