WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151743
Move ResourceLoadScheduler to WebKit1
https://bugs.webkit.org/show_bug.cgi?id=151743
Summary
Move ResourceLoadScheduler to WebKit1
Antti Koivisto
Reported
2015-12-02 05:04:58 PST
It is no longer ever used by WebKit2. Simplify the WebKit/WebCore interface.
Attachments
patch
(122.04 KB, patch)
2015-12-02 05:22 PST
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
patch
(125.56 KB, patch)
2015-12-02 06:16 PST
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
patch
(125.60 KB, patch)
2015-12-02 06:47 PST
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
patch
(131.80 KB, patch)
2015-12-02 11:11 PST
,
Antti Koivisto
achristensen
: review+
Details
Formatted Diff
Diff
patch
(133.19 KB, patch)
2015-12-03 03:23 PST
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-12-02 05:21:56 PST
<
rdar://problem/23723158
>
Antti Koivisto
Comment 2
2015-12-02 05:22:18 PST
Created
attachment 266437
[details]
patch
WebKit Commit Bot
Comment 3
2015-12-02 05:25:16 PST
Attachment 266437
[details]
did not pass style-queue: ERROR: Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp:25: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 32 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 4
2015-12-02 06:16:05 PST
Created
attachment 266438
[details]
patch
WebKit Commit Bot
Comment 5
2015-12-02 06:18:31 PST
Attachment 266438
[details]
did not pass style-queue: ERROR: Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp:25: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 33 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 6
2015-12-02 06:47:46 PST
Created
attachment 266440
[details]
patch
WebKit Commit Bot
Comment 7
2015-12-02 06:50:24 PST
Attachment 266440
[details]
did not pass style-queue: ERROR: Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp:25: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 33 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 8
2015-12-02 11:11:51 PST
Created
attachment 266456
[details]
patch
WebKit Commit Bot
Comment 9
2015-12-02 11:12:59 PST
Attachment 266456
[details]
did not pass style-queue: ERROR: Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp:25: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 38 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 10
2015-12-02 11:25:30 PST
Comment on
attachment 266456
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=266456&action=review
r=me with comments.
> Source/WebCore/platform/PlatformStrategies.h:90 > + CookiesStrategy* m_cookiesStrategy { };
Is this the cool new way to say { nullptr }?
> Source/WebKit2/WebProcess/Network/WebResourceLoadScheduler.cpp:294 > + NetworkResourceLoadParameters loadParameters;
defersLoading, needsCertificateInfo, and maximumBufferingTime seem to be uninitialized.
> Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:92 > LoaderStrategy* WebPlatformStrategies::createLoaderStrategy()
These could probably be made to return references.
> Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp:64 > + return static_cast<WebResourceLoadScheduler&>(*platformStrategies()->loaderStrategy());
Why is it ok to dereference this pointer? I think this should be done differently.
Antti Koivisto
Comment 11
2015-12-02 11:28:01 PST
I'll do further cleanups separately.
Antti Koivisto
Comment 12
2015-12-03 03:23:24 PST
Created
attachment 266525
[details]
patch
WebKit Commit Bot
Comment 13
2015-12-03 03:24:40 PST
Attachment 266525
[details]
did not pass style-queue: ERROR: Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp:25: Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Source/WebKit/CMakeLists.txt:6: Alphabetical sorting problem. "WebCoreSupport/WebResourceLoadScheduler.cpp" should be before "WebCoreSupport/WebViewGroup.cpp". [list/order] [5] Total errors found: 2 in 40 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 14
2015-12-03 04:52:30 PST
https://trac.webkit.org/r192995
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