Commit 80fadac
fix: align iframe depth + unsupported-scheme list with canonical sdk-utils
Bring the inlined iframe helpers into parity with the canonical
@percy/sdk-utils single source of truth (percy/cli #2319):
- DEFAULT_MAX_FRAME_DEPTH 5 -> 3 (MAX_FRAME_DEPTH_CAP already 10).
- isUnsupportedIframeSrc now matches the canonical 15-prefix
UNSUPPORTED_IFRAME_SRCS (adds chrome/chrome-extension/devtools/edge/opera/
view-source/blob/file/ws/wss/ftp and the about: prefix) and is
case-insensitive, instead of the narrow case-sensitive about:blank/
javascript:/data:/vbscript: check.
Updated the clampFrameDepth + resolveMaxFrameDepth default assertions to 3.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c7ffcb1 commit 80fadac
3 files changed
Lines changed: 26 additions & 11 deletions
File tree
- src
- main/java/io/percy/selenium
- test/java/io/percy/selenium
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
737 | 740 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
743 | 750 | | |
744 | 751 | | |
745 | 752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
0 commit comments