WebKit Bugzilla
Attachment 369971 Details for
Bug 197919
: Mark beacon and ping loads as very low priority
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-197919-20190515112157.patch (text/plain), 2.18 KB, created by
youenn fablet
on 2019-05-15 11:21:58 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
youenn fablet
Created:
2019-05-15 11:21:58 PDT
Size:
2.18 KB
patch
obsolete
>Subversion Revision: 245321 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index a599aa4d93fcccc79633075dfea10c714de61da7..0ae9f9a0338b9076ae5fab4acb348c8b5f06455b 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,18 @@ >+2019-05-15 Youenn Fablet <youenn@apple.com> >+ >+ Mark beacon and ping loads as low priority >+ https://bugs.webkit.org/show_bug.cgi?id=197919 >+ <rdar://problem/50818286> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ No JS observable change of behavior. >+ >+ * Modules/beacon/NavigatorBeacon.cpp: >+ (WebCore::NavigatorBeacon::sendBeacon): >+ * loader/PingLoader.cpp: >+ (WebCore::PingLoader::sendPing): >+ > 2019-05-15 Youenn Fablet <youenn@apple.com> > > getUserMedia sandbox extensions should not be revoked when a getUserMedia allowed request is being processed >diff --git a/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp b/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp >index 007f721a062f33acfa6c37b9a666afbbb63c7c1b..3592ca771b039682008ba497b4c8326dc78ac6dd 100644 >--- a/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp >+++ b/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp >@@ -121,6 +121,7 @@ ExceptionOr<bool> NavigatorBeacon::sendBeacon(Document& document, const String& > > ResourceRequest request(parsedUrl); > request.setHTTPMethod("POST"_s); >+ request.setPriority(ResourceLoadPriority::VeryLow); > > ResourceLoaderOptions options; > options.credentials = FetchOptions::Credentials::Include; >diff --git a/Source/WebCore/loader/PingLoader.cpp b/Source/WebCore/loader/PingLoader.cpp >index 050e2ad3e5bc525f3054af34cfa5a24b0b3f2ee3..65d8beeacd9f95c6296417d0fbfc8d060734d617 100644 >--- a/Source/WebCore/loader/PingLoader.cpp >+++ b/Source/WebCore/loader/PingLoader.cpp >@@ -130,6 +130,7 @@ void PingLoader::sendPing(Frame& frame, const URL& pingURL, const URL& destinati > request.setHTTPContentType("text/ping"); > request.setHTTPBody(FormData::create("PING")); > request.setHTTPHeaderField(HTTPHeaderName::CacheControl, "max-age=0"); >+ request.setPriority(ResourceLoadPriority::VeryLow); > > HTTPHeaderMap originalRequestHeader = request.httpHeaderFields(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197919
: 369971