Truly independent web browser
LibWeb: Note why Permissions.query() converts its descriptor once
Shannon Booth91a52d5f31ce
diff --git a/Libraries/LibWeb/Bindings/Rust/src/permissions_api/permissions.rs b/Libraries/LibWeb/Bindings/Rust/src/permissions_api/permissions.rsindex 7b8d02efb86..720b167f1cd 100644--- a/Libraries/LibWeb/Bindings/Rust/src/permissions_api/permissions.rs+++ b/Libraries/LibWeb/Bindings/Rust/src/permissions_api/permissions.rs@@ -233,6 +233,8 @@ impl Permissions {// 5. Let typedDescriptor be the object permissionDesc refers to, converted to an IDL value of rootDesc's name's permission descriptor type.// 6. If the conversion throws an exception, return a promise rejected with that exception.// FIXME: Support specific permission descriptor types. For now, we only support the base PermissionDescriptor.+ // AD-HOC: The base PermissionDescriptor isn't converted a second time: That would read name again, which could+ // then name a permission that isn't supported.let typed_descriptor = root_desc;// 8. Return promise and continue in parallel: