WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
130360
[iOS] WebKit2 Quicklook.
https://bugs.webkit.org/show_bug.cgi?id=130360
Summary
[iOS] WebKit2 Quicklook.
Yongjun Zhang
Reported
2014-03-17 14:11:01 PDT
Quicklook.
Attachments
Patch.
(24.55 KB, patch)
2014-03-17 15:39 PDT
,
Yongjun Zhang
no flags
Details
Formatted Diff
Diff
Fixed a conflict in WebKit2.xcodeproj/project.pbxproj.
(24.69 KB, patch)
2014-03-17 16:09 PDT
,
Yongjun Zhang
sam
: review-
Details
Formatted Diff
Diff
Patch; add QuickLook stuff into WebResourceLoader instead of sub-classing.
(18.78 KB, patch)
2014-03-18 23:39 PDT
,
Yongjun Zhang
no flags
Details
Formatted Diff
Diff
Fix style issues.
(18.78 KB, patch)
2014-03-18 23:46 PDT
,
Yongjun Zhang
no flags
Details
Formatted Diff
Diff
Build fix for gtk port.
(18.77 KB, patch)
2014-03-19 00:25 PDT
,
Yongjun Zhang
thorton
: review+
Details
Formatted Diff
Diff
Address review comments before landing.
(18.72 KB, patch)
2014-03-19 11:45 PDT
,
Yongjun Zhang
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Yongjun Zhang
Comment 1
2014-03-17 15:38:43 PDT
<
rdar://problem/15260214
>
Yongjun Zhang
Comment 2
2014-03-17 15:39:10 PDT
Created
attachment 226972
[details]
Patch.
Yongjun Zhang
Comment 3
2014-03-17 16:09:32 PDT
Created
attachment 226976
[details]
Fixed a conflict in WebKit2.xcodeproj/project.pbxproj.
Tim Horton
Comment 4
2014-03-18 13:53:41 PDT
Comment on
attachment 226976
[details]
Fixed a conflict in WebKit2.xcodeproj/project.pbxproj. View in context:
https://bugs.webkit.org/attachment.cgi?id=226976&action=review
> Source/WebCore/WebCore.exp.in:2689 > +__ZN7WebCore15QuickLookHandleD1Ev
Did you run sort-export-file?
> Source/WebCore/loader/ResourceLoader.h:39 > +#include "QuickLook.h"
Perhaps we should put this guard around the header instead of around each include?
> Source/WebCore/loader/ResourceLoader.h:162 > + QuickLookHandle *quickLookHandle() const { return m_quickLookHandle.get(); }
Star on the wrong side.
> Source/WebKit2/WebProcess/Network/WebResourceLoadScheduler.cpp:150 > + m_webResourceLoaders.set(identifier, WebResourceLoaderIOS::create(resourceLoader));
maybe WebResourceLoader::create should make the right thing on each platform?
> Source/WebKit2/WebProcess/ios/WebResourceLoaderIOS.h:35 > +class WebResourceLoaderIOS : public WebResourceLoader {
this class can be 'final'
Sam Weinig
Comment 5
2014-03-18 19:26:29 PDT
Comment on
attachment 226976
[details]
Fixed a conflict in WebKit2.xcodeproj/project.pbxproj. View in context:
https://bugs.webkit.org/attachment.cgi?id=226976&action=review
>> Source/WebKit2/WebProcess/ios/WebResourceLoaderIOS.h:35 >> +class WebResourceLoaderIOS : public WebResourceLoader { > > this class can be 'final'
I am not sure it is worth subclassing here. I would just throw the QuickLook stuff right into WebResourceLoader. I assume you didn't do that because the QuickLook stuff uses Objective-C. To get around that, I would add an C++ wrapper class (like we do for the content filtering stuff with the WebCore::ContentFilter class.
Yongjun Zhang
Comment 6
2014-03-18 23:20:38 PDT
(In reply to
comment #5
)
> (From update of
attachment 226976
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=226976&action=review
> > >> Source/WebKit2/WebProcess/ios/WebResourceLoaderIOS.h:35 > >> +class WebResourceLoaderIOS : public WebResourceLoader { > > > > this class can be 'final' > > I am not sure it is worth subclassing here. I would just throw the QuickLook stuff right into WebResourceLoader. I assume you didn't do that because the QuickLook stuff uses Objective-C. To get around that, I would add an C++ wrapper class (like we do for the content filtering stuff with the WebCore::ContentFilter class.
I was trying to avoid sprinkling USE(QUICK_LOOK) in WebResourceLoader.cpp. I agree there is not real need for subclassing if we just add QL stuff in WebResourceLoader. We don't even need a new wrapper for ObjC stuff since QuickLookHandle in WebCore already wraps qlConverter. I will submit a new patch for this. thanks!
Yongjun Zhang
Comment 7
2014-03-18 23:39:54 PDT
Created
attachment 227157
[details]
Patch; add QuickLook stuff into WebResourceLoader instead of sub-classing.
WebKit Commit Bot
Comment 8
2014-03-18 23:40:59 PDT
Attachment 227157
[details]
did not pass style-queue: ERROR: Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp:139: Use 0 instead of NULL. [readability/null] [5] ERROR: Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp:152: Declaration has space between type name and * in QuickLookHandle *quickLookHandle [whitespace/declaration] [3] Total errors found: 2 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yongjun Zhang
Comment 9
2014-03-18 23:46:08 PDT
Created
attachment 227162
[details]
Fix style issues.
Yongjun Zhang
Comment 10
2014-03-19 00:25:48 PDT
Created
attachment 227165
[details]
Build fix for gtk port.
Tim Horton
Comment 11
2014-03-19 11:03:24 PDT
Comment on
attachment 227165
[details]
Build fix for gtk port. View in context:
https://bugs.webkit.org/attachment.cgi?id=227165&action=review
Sam gives his blessing as well, but bugzilla is not cooperating for him.
> Source/WebCore/platform/network/ios/QuickLook.mm:399 > + return adoptPtr(new QuickLookHandle(NULL, nil, response, delegate));
nullptr for the first arg, which is a C++ type?
> Source/WebKit2/WebProcess/ios/WebResourceLoaderIOS.mm:45 > +- (id)initWithWebResourceLoader:(PassRefPtr<WebKit::WebResourceLoader>)loader
instancetype for the return value?
Yongjun Zhang
Comment 12
2014-03-19 11:45:44 PDT
Created
attachment 227205
[details]
Address review comments before landing.
WebKit Commit Bot
Comment 13
2014-03-19 12:24:58 PDT
Comment on
attachment 227205
[details]
Address review comments before landing. Clearing flags on attachment: 227205 Committed
r165908
: <
http://trac.webkit.org/changeset/165908
>
WebKit Commit Bot
Comment 14
2014-03-19 12:25:03 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug