Skip to content

Commit 2c69e69

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 9418eea commit 2c69e69

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

0 commit comments

Comments
 (0)