tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

BrowserSessionStore.webidl (1626B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 // object contains either a CollectedFileListValue or a CollectedNonMultipleSelectValue or Sequence<DOMString>
      7 typedef (DOMString or boolean or object) FormDataValue;
      8 
      9 [ChromeOnly, Exposed=Window]
     10 interface SessionStoreFormData {
     11  [Cached, Pure]
     12  readonly attribute ByteString? url;
     13 
     14  [Cached, Pure]
     15  readonly attribute record<DOMString, FormDataValue>? id;
     16 
     17  [Cached, Pure]
     18  readonly attribute record<DOMString, FormDataValue>? xpath;
     19 
     20  [Cached, Pure]
     21  readonly attribute DOMString? innerHTML;
     22 
     23  [Cached, Frozen, Pure]
     24  readonly attribute sequence<SessionStoreFormData?>? children;
     25 
     26  object toJSON();
     27 };
     28 
     29 [GenerateConversionToJS]
     30 dictionary SessionStoreDisplaySize {
     31  unsigned long width;
     32  unsigned long height;
     33 };
     34 
     35 [GenerateConversionToJS]
     36 dictionary SessionStoreZoomData {
     37  double resolution;
     38  SessionStoreDisplaySize displaySize;
     39 };
     40 
     41 [ChromeOnly, Exposed=Window]
     42 interface SessionStoreScrollData {
     43  [Cached, Pure]
     44  readonly attribute ByteString? scroll;
     45 
     46  [Cached, Pure]
     47  readonly attribute sequence<SessionStoreScrollData?>? children;
     48 
     49  object toJSON();
     50 };
     51 
     52 [GenerateConversionToJS]
     53 dictionary UpdateSessionStoreData {
     54  // This is docshell caps, but on-disk format uses the disallow property name.
     55  ByteString? disallow;
     56  boolean isPrivate;
     57  SessionStoreFormData? formdata;
     58  SessionStoreScrollData? scroll;
     59 };