Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / chrome-webidl / BrowserSessionStore.webidl
blob23d3df9457665e99610f59ec0b9d2beb20302358
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/. */
6 // object contains either a CollectedFileListValue or a CollectedNonMultipleSelectValue or Sequence<DOMString>
7 typedef (DOMString or boolean or object) FormDataValue;
9 [ChromeOnly, Exposed=Window]
10 interface SessionStoreFormData {
11   [Cached, Pure]
12   readonly attribute ByteString? url;
14   [Cached, Pure]
15   readonly attribute record<DOMString, FormDataValue>? id;
17   [Cached, Pure]
18   readonly attribute record<DOMString, FormDataValue>? xpath;
20   [Cached, Pure]
21   readonly attribute DOMString? innerHTML;
23   [Cached, Frozen, Pure]
24   readonly attribute sequence<SessionStoreFormData?>? children;
26   object toJSON();
29 [GenerateConversionToJS]
30 dictionary SessionStoreDisplaySize {
31   unsigned long width;
32   unsigned long height;
35 [GenerateConversionToJS]
36 dictionary SessionStoreZoomData {
37   double resolution;
38   SessionStoreDisplaySize displaySize;
41 [ChromeOnly, Exposed=Window]
42 interface SessionStoreScrollData {
43   [Cached, Pure]
44   readonly attribute ByteString? scroll;
46   [Cached, Pure]
47   readonly attribute sequence<SessionStoreScrollData?>? children;
49   object toJSON();
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;