Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  storage-helpers.js

  Sprache: JAVA
 

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


// This file assumes head.js is loaded in the global scope.
/* import-globals-from head.js */

/* exported openTabAndSetupStorage, clearStorage */

"use strict";

/**
 * This generator function opens the given url in a new tab, then sets up the
 * page by waiting for all cookies, indexedDB items etc. to be created.
 *
 * @param url {String} The url to be opened in the new tab
 *
 * @return {Promise} A promise that resolves after storage inspector is ready
 */

async function openTabAndSetupStorage(url) {
  await addTab(url);

  // Setup the async storages in main window and for all its iframes
  const browsingContexts =
    gBrowser.selectedBrowser.browsingContext.getAllBrowsingContextsInSubtree();
  for (const browsingContext of browsingContexts) {
    await SpecialPowers.spawn(browsingContext, [], async function () {
      if (content.wrappedJSObject.setup) {
        await content.wrappedJSObject.setup();
      }
    });
  }

  // selected tab is set in addTab
  const commands = await CommandsFactory.forTab(gBrowser.selectedTab);
  await commands.targetCommand.startListening();
  const target = commands.targetCommand.targetFront;
  return { commands, target };
}

async function clearStorage() {
  const browsingContexts =
    gBrowser.selectedBrowser.browsingContext.getAllBrowsingContextsInSubtree();
  for (const browsingContext of browsingContexts) {
    await SpecialPowers.spawn(browsingContext, [], async function () {
      if (content.wrappedJSObject.clear) {
        await content.wrappedJSObject.clear();
      }
    });
  }
}

Messung V0.5 in Prozent
C=93 H=93 G=92

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© 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

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik