Skip to content

Commit 802d6d1

Browse files
committed
Bug 1998956 [wpt PR 55938] - [Origin API] Verify that comparisons are schemeful., a=testonly
Automatic update from web-platform-tests [Origin API] Verify that comparisons are schemeful. whatwg/html#11846 (comment) noted that we should verify schemeful same-site comparison; this CL adds that test. Bug: 434131026 Change-Id: I48878979fc0f8c3dab2caefbe788a14d367e053b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7130621 Reviewed-by: Antonio Sartori <antoniosartorichromium.org> Commit-Queue: Mike West <mkwstchromium.org> Cr-Commit-Position: refs/heads/main{#1541759} -- wpt-commits: 08b913918dd419fe48d01ef685781a69ced0a111 wpt-pr: 55938 UltraBlame original commit: 313ef5bf80f71a4e57fc5bebfd0d784dd667b024
1 parent 479e323 commit 802d6d1

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

testing/web-platform/tests/html/browsers/origin/tentative/api/origin-comparison.any.js

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,3 +580,132 @@ origins
580580
"
581581
)
582582
;
583+
test
584+
(
585+
t
586+
=
587+
>
588+
{
589+
const
590+
http
591+
=
592+
new
593+
Origin
594+
(
595+
"
596+
http
597+
:
598+
/
599+
/
600+
a
601+
.
602+
example
603+
"
604+
)
605+
;
606+
const
607+
https
608+
=
609+
new
610+
Origin
611+
(
612+
"
613+
https
614+
:
615+
/
616+
/
617+
a
618+
.
619+
example
620+
"
621+
)
622+
;
623+
assert_false
624+
(
625+
http
626+
.
627+
isSameOrigin
628+
(
629+
https
630+
)
631+
"
632+
http
633+
is
634+
not
635+
same
636+
-
637+
site
638+
with
639+
https
640+
"
641+
)
642+
;
643+
assert_false
644+
(
645+
https
646+
.
647+
isSameOrigin
648+
(
649+
http
650+
)
651+
"
652+
https
653+
is
654+
not
655+
same
656+
-
657+
site
658+
with
659+
http
660+
"
661+
)
662+
;
663+
assert_false
664+
(
665+
http
666+
.
667+
isSameSite
668+
(
669+
https
670+
)
671+
"
672+
http
673+
is
674+
not
675+
same
676+
-
677+
site
678+
with
679+
https
680+
"
681+
)
682+
;
683+
assert_false
684+
(
685+
https
686+
.
687+
isSameSite
688+
(
689+
http
690+
)
691+
"
692+
https
693+
is
694+
not
695+
same
696+
-
697+
site
698+
with
699+
http
700+
"
701+
)
702+
;
703+
}
704+
"
705+
Comparisons
706+
are
707+
schemeful
708+
.
709+
"
710+
)
711+
;

0 commit comments

Comments
 (0)