From d733abfca02cdb9fd2af4f0d82ff050e25f71829 Mon Sep 17 00:00:00 2001 From: yvt Date: Sat, 17 Jul 2021 15:50:44 +0900 Subject: [PATCH] style(script): address `test-tidy` errors --- components/script/dom/bindings/codegen/CodegenRust.py | 2 +- components/script/dom/bindings/principals.rs | 4 ++++ components/script/dom/bindings/proxyhandler.rs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 28c3281fc54..8657bbf2253 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -6001,7 +6001,7 @@ class CGDOMJSProxyHandler_set(CGAbstractExternMethod): js::jsapi::SetPropertyIgnoringNamedGetter( *cx, proxy, id, v, receiver, own_desc.handle().into(), opresult) - """) % { "maybeCrossOriginSet": maybeCrossOriginSet } + """) % {"maybeCrossOriginSet": maybeCrossOriginSet} def definition_body(self): return CGGeneric(self.getBody()) diff --git a/components/script/dom/bindings/principals.rs b/components/script/dom/bindings/principals.rs index afaf02c74fe..bf79b15e1fb 100644 --- a/components/script/dom/bindings/principals.rs +++ b/components/script/dom/bindings/principals.rs @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + use js::{ glue::{ CreateRustJSPrincipals, DestroyRustJSPrincipals, GetRustJSPrincipalsPrivate, diff --git a/components/script/dom/bindings/proxyhandler.rs b/components/script/dom/bindings/proxyhandler.rs index 1259218dcab..40f38f7e812 100644 --- a/components/script/dom/bindings/proxyhandler.rs +++ b/components/script/dom/bindings/proxyhandler.rs @@ -351,7 +351,7 @@ pub unsafe fn maybe_cross_origin_get_prototype( /// Implementation of `[[SetPrototypeOf]]` for [`History`] and [`WindowProxy`]. /// /// [`History`]: https://html.spec.whatwg.org/multipage/#location-setprototypeof -/// [`WindowProxy`]: https://html.spec.whatwg.org/multipage/window-object.html#windowproxy-setprototypeof +/// [`WindowProxy`]: https://html.spec.whatwg.org/multipage/#windowproxy-setprototypeof pub unsafe extern "C" fn maybe_cross_origin_set_prototype_rawcx( cx: *mut JSContext, proxy: RawHandleObject,