Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  browser_block_sync_xhr_system_requests.js

  Sprache: JAVA
 

/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */


add_task(async function test_block_sync_xhr_requests() {
  await SpecialPowers.pushPrefEnv({
    set: [["network.xhr.block_sync_system_requests"true]],
  });

  Assert.throws(
    () => {
      let xhr = new XMLHttpRequest();
      // false means a synchronous request
      xhr.open("GET""https://example.com", false);
      xhr.send();
    },
    /NetworkError/,
    "Sync XHR coming from system requests should be blocked"
  );
});

add_task(async function test_not_block_sync_xhr_requests() {
  await SpecialPowers.pushPrefEnv({
    set: [["network.xhr.block_sync_system_requests"false]],
  });

  let xhr = new XMLHttpRequest();
  xhr.open("GET""https://example.com", false);
  xhr.send();

  is(
    xhr.status,
    200,
    "Sync XHR coming from system requests should be allowed when pref is false"
  );
});

Messung V0.5 in Prozent
C=89 H=75 G=82

¤ Dauer der Verarbeitung: 0.24 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002