зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1749437 - Fix spelling of priorization r=necko-reviewers,kershaw
Change spelling in both network.http.http3.priorization and network.http.http3.send_background_tabs_deprioritization config option Differential Revision: https://phabricator.services.mozilla.com/D135689
This commit is contained in:
Родитель
5be99b3686
Коммит
9706eeb9cc
|
@ -10363,9 +10363,9 @@
|
|||
value: 12582912
|
||||
mirror: always
|
||||
|
||||
# Enable http3 network priorization as described in
|
||||
# Enable http3 network priority as described in
|
||||
# https://httpwg.org/http-extensions/draft-ietf-httpbis-priority.html
|
||||
- name: network.http.http3.priorization
|
||||
- name: network.http.http3.priority
|
||||
type: RelaxedAtomicBool
|
||||
value: true
|
||||
mirror: always
|
||||
|
@ -10375,7 +10375,7 @@
|
|||
# improve performance when switching to an tab with a website using the same
|
||||
# QUIC connection. On the other hand it sends more data to the website and
|
||||
# might be a privacy concern.
|
||||
- name: network.http.http3.send_background_tabs_depriorization
|
||||
- name: network.http.http3.send_background_tabs_deprioritization
|
||||
type: RelaxedAtomicBool
|
||||
value: false
|
||||
mirror: always
|
||||
|
|
|
@ -169,7 +169,8 @@ void Http3Stream::TopBrowsingContextIdChanged(uint64_t id) {
|
|||
mCurrentTopBrowsingContextId = id;
|
||||
bool nowFocused = (mCurrentTopBrowsingContextId == mTransactionTabId);
|
||||
|
||||
if (!StaticPrefs::network_http_http3_send_background_tabs_depriorization() ||
|
||||
if (!StaticPrefs::
|
||||
network_http_http3_send_background_tabs_deprioritization() ||
|
||||
previouslyFocused == nowFocused) {
|
||||
return;
|
||||
}
|
||||
|
@ -537,12 +538,12 @@ nsresult Http3Stream::Finish0RTT(bool aRestart) {
|
|||
}
|
||||
|
||||
uint8_t Http3Stream::PriorityUrgency() {
|
||||
if (!StaticPrefs::network_http_http3_priorization()) {
|
||||
// send default priorization which is equivalent to sending no priorization
|
||||
if (!StaticPrefs::network_http_http3_priority()) {
|
||||
// send default priority which is equivalent to sending no priority
|
||||
return 3;
|
||||
}
|
||||
|
||||
if (StaticPrefs::network_http_http3_send_background_tabs_depriorization() &&
|
||||
if (StaticPrefs::network_http_http3_send_background_tabs_deprioritization() &&
|
||||
mCurrentTopBrowsingContextId != mTransactionTabId) {
|
||||
// Low priority
|
||||
return 6;
|
||||
|
@ -551,8 +552,8 @@ uint8_t Http3Stream::PriorityUrgency() {
|
|||
}
|
||||
|
||||
bool Http3Stream::PriorityIncremental() {
|
||||
if (!StaticPrefs::network_http_http3_priorization()) {
|
||||
// send default priorization which is equivalent to sending no priorization
|
||||
if (!StaticPrefs::network_http_http3_priority()) {
|
||||
// send default priority which is equivalent to sending no priority
|
||||
return false;
|
||||
}
|
||||
return mPriorityIncremental;
|
||||
|
|
|
@ -77,7 +77,7 @@ async function test_flag_priority(context, flag, expected_priority) {
|
|||
}
|
||||
|
||||
add_task(async function test_http3_prio() {
|
||||
Services.prefs.setBoolPref("network.http.http3.priorization", false);
|
||||
Services.prefs.setBoolPref("network.http.http3.priority", false);
|
||||
await test_flag_priority("disabled (none)", null, null);
|
||||
await test_flag_priority(
|
||||
"disabled (urgent_start)",
|
||||
|
@ -117,7 +117,7 @@ add_task(async function test_http3_prio() {
|
|||
});
|
||||
|
||||
add_task(async function test_http3_prio_enabled() {
|
||||
Services.prefs.setBoolPref("network.http.http3.priorization", true);
|
||||
Services.prefs.setBoolPref("network.http.http3.priority", true);
|
||||
await test_flag_priority("enabled (none)", null, "u=4");
|
||||
await test_flag_priority(
|
||||
"enabled (urgent_start)",
|
||||
|
|
Загрузка…
Ссылка в новой задаче