Commit 7f216b4
authored
Fix --alwaysAddBehaviorLinks / smart scoping to work as expected: (#1094)
- ensure regular links always obey scope, as using same method
- support addLink(url, alwaysObeyScope) from added in,
webrecorder/browsertrix-behaviors#150
- scope only ignored if alwaysObeyScope is false and
alwaysAddBehaviorLinks is set
- move addLink() declaration to setupPage(), as extractLinks() not
called for single page scope
- simplify, no longer need extra 'callbacks' in PageState1 parent 77751c8 commit 7f216b4
2 files changed
Lines changed: 23 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
818 | 836 | | |
819 | 837 | | |
820 | 838 | | |
| |||
865 | 883 | | |
866 | 884 | | |
867 | 885 | | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
| 886 | + | |
872 | 887 | | |
873 | 888 | | |
874 | 889 | | |
| |||
999 | 1014 | | |
1000 | 1015 | | |
1001 | 1016 | | |
1002 | | - | |
| 1017 | + | |
1003 | 1018 | | |
1004 | 1019 | | |
1005 | 1020 | | |
| |||
1122 | 1137 | | |
1123 | 1138 | | |
1124 | 1139 | | |
1125 | | - | |
1126 | | - | |
| 1140 | + | |
1127 | 1141 | | |
1128 | 1142 | | |
1129 | 1143 | | |
| |||
2713 | 2727 | | |
2714 | 2728 | | |
2715 | 2729 | | |
2716 | | - | |
2717 | | - | |
2718 | | - | |
2719 | | - | |
2720 | | - | |
2721 | | - | |
2722 | | - | |
2723 | | - | |
2724 | | - | |
2725 | | - | |
2726 | | - | |
2727 | | - | |
2728 | | - | |
2729 | | - | |
2730 | | - | |
2731 | | - | |
2732 | | - | |
2733 | | - | |
2734 | | - | |
| 2730 | + | |
2735 | 2731 | | |
2736 | 2732 | | |
2737 | 2733 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
| |||
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 42 | | |
48 | 43 | | |
49 | 44 | | |
| |||
171 | 166 | | |
172 | 167 | | |
173 | 168 | | |
174 | | - | |
175 | 169 | | |
176 | 170 | | |
177 | 171 | | |
178 | 172 | | |
179 | 173 | | |
180 | | - | |
181 | 174 | | |
182 | 175 | | |
183 | 176 | | |
| |||
0 commit comments