WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
196807
Use normal loading path for ping loads
https://bugs.webkit.org/show_bug.cgi?id=196807
Summary
Use normal loading path for ping loads
youenn fablet
Reported
2019-04-10 20:57:39 PDT
Use normal loading path for ping loads
Attachments
Patch
(51.99 KB, patch)
2019-04-10 21:01 PDT
,
youenn fablet
ews-watchlist
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-highsierra
(2.48 MB, application/zip)
2019-04-10 22:09 PDT
,
EWS Watchlist
no flags
Details
Patch
(65.41 KB, patch)
2019-04-11 15:58 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(62.81 KB, patch)
2019-04-12 10:13 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(63.45 KB, patch)
2019-04-12 11:06 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-highsierra
(2.60 MB, application/zip)
2019-04-12 12:12 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews104 for mac-highsierra-wk2
(2.76 MB, application/zip)
2019-04-12 12:25 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews115 for mac-highsierra
(2.38 MB, application/zip)
2019-04-12 13:10 PDT
,
EWS Watchlist
no flags
Details
Patch
(63.26 KB, patch)
2019-04-12 15:49 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(59.75 KB, patch)
2019-04-12 17:15 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(62.33 KB, patch)
2019-04-24 10:33 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(62.33 KB, patch)
2019-04-26 10:16 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(11)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2019-04-10 21:01:15 PDT
Created
attachment 367198
[details]
Patch
EWS Watchlist
Comment 2
2019-04-10 21:03:19 PDT
Attachment 367198
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:58: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 37 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 3
2019-04-10 22:09:15 PDT
Comment on
attachment 367198
[details]
Patch
Attachment 367198
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/11837791
New failing tests: http/tests/security/contentSecurityPolicy/report-blocked-uri-and-do-not-follow-redirect-when-sending-report.php http/tests/security/xssAuditor/report-script-tag-full-block-and-do-not-follow-redirect-when-sending-report.html http/tests/security/xssAuditor/report-script-tag-and-do-not-follow-redirect-when-sending-report.html http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php
EWS Watchlist
Comment 4
2019-04-10 22:09:17 PDT
Created
attachment 367201
[details]
Archive of layout-test-results from ews101 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-highsierra Platform: Mac OS X 10.13.6
youenn fablet
Comment 5
2019-04-11 15:58:41 PDT
Created
attachment 367255
[details]
Patch
EWS Watchlist
Comment 6
2019-04-11 16:01:14 PDT
Attachment 367255
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:58: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 43 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 7
2019-04-12 10:13:02 PDT
Created
attachment 367328
[details]
Patch
EWS Watchlist
Comment 8
2019-04-12 10:15:20 PDT
Attachment 367328
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:58: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 42 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 9
2019-04-12 11:06:24 PDT
Created
attachment 367334
[details]
Patch
EWS Watchlist
Comment 10
2019-04-12 11:08:41 PDT
Attachment 367334
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:58: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 42 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 11
2019-04-12 12:12:18 PDT
Comment on
attachment 367334
[details]
Patch
Attachment 367334
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/11856074
New failing tests: http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php
EWS Watchlist
Comment 12
2019-04-12 12:12:21 PDT
Created
attachment 367339
[details]
Archive of layout-test-results from ews102 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 13
2019-04-12 12:25:58 PDT
Comment on
attachment 367334
[details]
Patch
Attachment 367334
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/11856089
New failing tests: http/tests/ssl/referer-301.html
EWS Watchlist
Comment 14
2019-04-12 12:25:59 PDT
Created
attachment 367340
[details]
Archive of layout-test-results from ews104 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 15
2019-04-12 13:10:05 PDT
Comment on
attachment 367334
[details]
Patch
Attachment 367334
[details]
did not pass mac-debug-ews (mac): Output:
https://webkit-queues.webkit.org/results/11856333
New failing tests: http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php
EWS Watchlist
Comment 16
2019-04-12 13:10:07 PDT
Created
attachment 367342
[details]
Archive of layout-test-results from ews115 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-highsierra Platform: Mac OS X 10.13.6
youenn fablet
Comment 17
2019-04-12 15:49:18 PDT
Created
attachment 367352
[details]
Patch
EWS Watchlist
Comment 18
2019-04-12 15:51:38 PDT
Attachment 367352
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:59: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 42 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 19
2019-04-12 17:15:35 PDT
Created
attachment 367359
[details]
Patch
EWS Watchlist
Comment 20
2019-04-12 17:17:46 PDT
Attachment 367359
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:59: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 38 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 21
2019-04-24 10:33:38 PDT
Created
attachment 368138
[details]
Patch
EWS Watchlist
Comment 22
2019-04-24 10:35:50 PDT
Attachment 368138
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:59: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 40 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 23
2019-04-25 22:35:31 PDT
Comment on
attachment 368138
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=368138&action=review
I like this. I would like it even more if we could completely remove PingLoad, but I guess that's coming. This makes our loading code more like the current specification.
> Source/WebCore/loader/cache/CachedResourceLoader.cpp:775 > case CachedResource::Type::Beacon: > + case CachedResource::Type::Ping:
Do we want these to be distinct types? Will we add another type for fetch keep-alive?
> Source/WebKit/NetworkProcess/NetworkSession.h:109 > + HashSet<Ref<NetworkResourceLoader>> m_keptAliveLoads;
I think it would be better if this were on the NetworkSession. That would make cleanup a lot more intuitive when we remove a private browsing session, at which point I assume we would want to cancel all the outstanding pings, beacons, and keep-alive fetches, right?
> Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp:577 > + return !RuntimeEnabledFeatures::sharedFeatures().fetchAPIKeepAliveEnabled();
Won't we soon never want to use ping load in modern WebKit?
youenn fablet
Comment 24
2019-04-26 07:36:52 PDT
> > Source/WebCore/loader/cache/CachedResourceLoader.cpp:775 > > case CachedResource::Type::Beacon: > > + case CachedResource::Type::Ping: > > Do we want these to be distinct types? Will we add another type for fetch > keep-alive?
Fetch keep-alive will be tied to regular fetch. Ping are tied to some specific loads that are worth marking as such.
> > Source/WebKit/NetworkProcess/NetworkSession.h:109 > > + HashSet<Ref<NetworkResourceLoader>> m_keptAliveLoads; > > I think it would be better if this were on the NetworkSession. That would > make cleanup a lot more intuitive when we remove a private browsing session, > at which point I assume we would want to cancel all the outstanding pings, > beacons, and keep-alive fetches, right?
m_keptAliveLoads is in the NetworkSession. I am not sure what you are suggesting here.
> > Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp:577 > > + return !RuntimeEnabledFeatures::sharedFeatures().fetchAPIKeepAliveEnabled(); > > Won't we soon never want to use ping load in modern WebKit?
Definitely, I hope to enable it soon after it runs a few cycle on our bots.
youenn fablet
Comment 25
2019-04-26 07:38:08 PDT
(In reply to Alex Christensen from
comment #23
)
> Comment on
attachment 368138
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=368138&action=review
> > I like this. I would like it even more if we could completely remove > PingLoad, but I guess that's coming. This makes our loading code more like > the current specification.
You r-ed it but I do not see any objection or suggestion for improvement. Did you hit the wrong button?
Alex Christensen
Comment 26
2019-04-26 08:56:03 PDT
Comment on
attachment 368138
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=368138&action=review
r=me
> Source/WebKit/ChangeLog:11 > + and add it to a kept-alive NetworkProcess load set. The loader is only kept alive if it
Oh, I still had this in my mind. I guess this needs to be updated.
youenn fablet
Comment 27
2019-04-26 10:16:06 PDT
Created
attachment 368329
[details]
Patch for landing
youenn fablet
Comment 28
2019-04-26 10:17:09 PDT
***
Bug 194392
has been marked as a duplicate of this bug. ***
EWS Watchlist
Comment 29
2019-04-26 10:17:46 PDT
Attachment 368329
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/NetworkResourceLoadMap.h:59: 'take' is incorrectly named. It should be named 'protector' or 'protectedResourceLoadIdentifier'. [readability/naming/protected] [4] ERROR: Source/WebCore/loader/LoaderStrategy.h:70: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] Total errors found: 2 in 40 files If any of these errors are false positives, please file a bug against check-webkit-style.
Radar WebKit Bug Importer
Comment 30
2019-04-26 10:19:31 PDT
<
rdar://problem/50247053
>
Radar WebKit Bug Importer
Comment 31
2019-04-26 10:19:34 PDT
<
rdar://problem/50247059
>
WebKit Commit Bot
Comment 32
2019-04-26 11:09:24 PDT
The commit-queue encountered the following flaky tests while processing
attachment 368329
[details]
: fetch/fetch-worker-crash.html
bug 187257
(author:
youennf@gmail.com
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 33
2019-04-26 11:10:23 PDT
Comment on
attachment 368329
[details]
Patch for landing Clearing flags on attachment: 368329 Committed
r244700
: <
https://trac.webkit.org/changeset/244700
>
WebKit Commit Bot
Comment 34
2019-04-26 11:10:25 PDT
All reviewed patches have been landed. Closing bug.
Alex Christensen
Comment 35
2019-11-12 16:57:10 PST
Comment on
attachment 368329
[details]
Patch for landing View in context:
https://bugs.webkit.org/attachment.cgi?id=368329&action=review
> Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:488 > + if (m_isKeptAlive) { > + m_responseCompletionHandler = WTFMove(completionHandler); > + RunLoop::main().dispatch([protectedThis = makeRef(*this)] { > + protectedThis->didFinishLoading(NetworkLoadMetrics { }); > + }); > + return; > + }
I'm simplifying this in
https://bugs.webkit.org/show_bug.cgi?id=204134
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