When the OS-level geolocation permission changes on Windows, PermissionStatus objects for geolocation now fire their "change" event. This is done by monitoring the location AppCapability's AccessChanged event in the parent process and broadcasting the new state to all content processes via IPC. The monitor starts lazily on the first geolocation permission query and shuts down on xpcom-shutdown. The permission state mapping matches Geolocation::GetLocationOSPermission(). Differential Revision: https://phabricator.services.mozilla.com/D287570
26 lines
657 B
TOML
26 lines
657 B
TOML
[package]
|
|
name = "widget_windows"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
libc = "0.2"
|
|
nserror = { path = "../../../xpcom/rust/nserror" }
|
|
nsstring = { path = "../../../xpcom/rust/nsstring" }
|
|
thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
xpcom = { path = "../../../xpcom/rust/xpcom" }
|
|
moz_task = { path = "../../../xpcom/rust/moz_task" }
|
|
|
|
[dependencies.windows]
|
|
version = "0.62.0"
|
|
features = [
|
|
"Foundation",
|
|
"Security_Authorization_AppCapabilityAccess",
|
|
"UI_Notifications",
|
|
]
|
|
|
|
[dependencies.windows-collections]
|
|
version = "0.3.0"
|