Bug 44527

Summary: [Qt] Implement WebKit::Module for qt
Product: WebKit Reporter: Balazs Kelemen <kbalazs>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
proposed patch
kenneth: review-, kenneth: commit-queue-
proposed patch none

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.