зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1012221 - Setting browser.send_pings.max_per_link to -1 should allow for an unlimited number of pings r=jst
This commit is contained in:
Родитель
06c071fd7e
Коммит
7185561a51
|
@ -39,7 +39,7 @@ let tests = [
|
|||
// Ensure that sending pings is enabled.
|
||||
function* setup() {
|
||||
Services.prefs.setBoolPref("browser.send_pings", true);
|
||||
Services.prefs.setIntPref("browser.send_pings.max_per_link", 4);
|
||||
Services.prefs.setIntPref("browser.send_pings.max_per_link", -1);
|
||||
|
||||
SimpleTest.registerCleanupFunction(() => {
|
||||
Services.prefs.clearUserPref("browser.send_pings");
|
||||
|
|
|
@ -542,7 +542,7 @@ static void
|
|||
SendPing(void *closure, nsIContent *content, nsIURI *uri, nsIIOService *ios)
|
||||
{
|
||||
SendPingInfo *info = static_cast<SendPingInfo *>(closure);
|
||||
if (info->numPings >= info->maxPings)
|
||||
if (info->maxPings > -1 && info->numPings >= info->maxPings)
|
||||
return;
|
||||
|
||||
if (info->requireSameHost) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче