feat: add web loocks api (#1291)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
This commit is contained in:
Родитель
ede332177b
Коммит
e963a34362
|
@ -9767,7 +9767,7 @@ declare var NavigationPreloadManager: {
|
|||
};
|
||||
|
||||
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
|
||||
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
||||
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
||||
/** Available only in secure contexts. */
|
||||
readonly clipboard: Clipboard;
|
||||
/** Available only in secure contexts. */
|
||||
|
@ -9839,6 +9839,11 @@ interface NavigatorLanguage {
|
|||
readonly languages: ReadonlyArray<string>;
|
||||
}
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface NavigatorLocks {
|
||||
readonly locks: LockManager;
|
||||
}
|
||||
|
||||
interface NavigatorNetworkInformation {
|
||||
readonly connection: NetworkInformation;
|
||||
}
|
||||
|
|
|
@ -2202,6 +2202,11 @@ interface NavigatorLanguage {
|
|||
readonly languages: ReadonlyArray<string>;
|
||||
}
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface NavigatorLocks {
|
||||
readonly locks: LockManager;
|
||||
}
|
||||
|
||||
interface NavigatorNetworkInformation {
|
||||
readonly connection: NetworkInformation;
|
||||
}
|
||||
|
@ -5192,7 +5197,7 @@ declare var WorkerLocation: {
|
|||
};
|
||||
|
||||
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
||||
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
||||
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
||||
readonly mediaCapabilities: MediaCapabilities;
|
||||
}
|
||||
|
||||
|
|
|
@ -2121,6 +2121,11 @@ interface NavigatorLanguage {
|
|||
readonly languages: ReadonlyArray<string>;
|
||||
}
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface NavigatorLocks {
|
||||
readonly locks: LockManager;
|
||||
}
|
||||
|
||||
interface NavigatorNetworkInformation {
|
||||
readonly connection: NetworkInformation;
|
||||
}
|
||||
|
@ -5071,7 +5076,7 @@ declare var WorkerLocation: {
|
|||
};
|
||||
|
||||
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
||||
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
||||
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
||||
readonly mediaCapabilities: MediaCapabilities;
|
||||
}
|
||||
|
||||
|
|
|
@ -2277,6 +2277,11 @@ interface NavigatorLanguage {
|
|||
readonly languages: ReadonlyArray<string>;
|
||||
}
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface NavigatorLocks {
|
||||
readonly locks: LockManager;
|
||||
}
|
||||
|
||||
interface NavigatorNetworkInformation {
|
||||
readonly connection: NetworkInformation;
|
||||
}
|
||||
|
@ -5351,7 +5356,7 @@ declare var WorkerLocation: {
|
|||
};
|
||||
|
||||
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
||||
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
||||
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
||||
readonly mediaCapabilities: MediaCapabilities;
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,6 @@
|
|||
"NavigatorDeviceMemory",
|
||||
"NavigatorFonts",
|
||||
"NavigatorGPU",
|
||||
"NavigatorLocks",
|
||||
"NavigatorML",
|
||||
"NavigatorUA"
|
||||
]
|
||||
|
@ -180,7 +179,6 @@
|
|||
"NavigatorDeviceMemory",
|
||||
"NavigatorFonts",
|
||||
"NavigatorGPU",
|
||||
"NavigatorLocks",
|
||||
"NavigatorML",
|
||||
"NavigatorUA"
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче