From 66a4ea0727cf1e1cec8c6d49bcea495ff8b0650e Mon Sep 17 00:00:00 2001 From: yvt Date: Mon, 26 Jul 2021 01:06:24 +0900 Subject: [PATCH] doc(script): fix comments `History` is not a maybe-cross-origin object. I must have been very sleepy when I wrote this. --- components/script/dom/bindings/proxyhandler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/script/dom/bindings/proxyhandler.rs b/components/script/dom/bindings/proxyhandler.rs index 12e4f04d68b..fb05f17611e 100644 --- a/components/script/dom/bindings/proxyhandler.rs +++ b/components/script/dom/bindings/proxyhandler.rs @@ -321,9 +321,9 @@ pub unsafe extern "C" fn maybe_cross_origin_get_prototype_if_ordinary_rawcx( true } -/// Implementation of `[[GetPrototypeOf]]` for [`History`]. +/// Implementation of `[[GetPrototypeOf]]` for [`Location`]. /// -/// [`History`]: https://html.spec.whatwg.org/multipage/#location-getprototypeof +/// [`Location`]: https://html.spec.whatwg.org/multipage/#location-getprototypeof pub unsafe fn maybe_cross_origin_get_prototype( cx: SafeJSContext, proxy: RawHandleObject, @@ -347,9 +347,9 @@ pub unsafe fn maybe_cross_origin_get_prototype( true } -/// Implementation of `[[SetPrototypeOf]]` for [`History`] and [`WindowProxy`]. +/// Implementation of `[[SetPrototypeOf]]` for [`Location`] and [`WindowProxy`]. /// -/// [`History`]: https://html.spec.whatwg.org/multipage/#location-setprototypeof +/// [`Location`]: https://html.spec.whatwg.org/multipage/#location-setprototypeof /// [`WindowProxy`]: https://html.spec.whatwg.org/multipage/#windowproxy-setprototypeof pub unsafe extern "C" fn maybe_cross_origin_set_prototype_rawcx( cx: *mut JSContext,