Skip to content

Commit c43c21a

Browse files
Override taint methods
1 parent 2068243 commit c43c21a

File tree

7 files changed

+372
-25
lines changed

7 files changed

+372
-25
lines changed

integration-test/test-pages/runtime-checks/config/basic-run.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,32 @@
1515
"domains": [
1616
],
1717
"stackDomains": [
18-
]
18+
],
19+
"breakpoints": [
20+
{"height": 768, "width": 1024},
21+
{"height": 1024, "width": 768},
22+
{"height": 375, "width": 812},
23+
{"height": 812, "width": 375}
24+
],
25+
"injectGenericOverloads": {
26+
"Date": {},
27+
"Date.prototype.getTimezoneOffset": {},
28+
"NavigatorUAData.prototype.getHighEntropyValues": {},
29+
"localStorage": {
30+
"scheme": "session"
31+
},
32+
"sessionStorage": {
33+
"scheme": "memory"
34+
},
35+
"innerHeight": {
36+
"offset": 100
37+
},
38+
"innerWidth": {
39+
"offset": 100
40+
},
41+
"Screen.prototype.height": {},
42+
"Screen.prototype.width": {}
43+
}
1944
}
2045
}
2146
}

integration-test/test-pages/runtime-checks/config/filter-props.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,31 @@
1919
"attribute": ["madeupattr1", "madeupattr3"]
2020
}
2121
}
22+
},
23+
"breakpoints": [
24+
{"height": 768, "width": 1024},
25+
{"height": 1024, "width": 768},
26+
{"height": 375, "width": 812},
27+
{"height": 812, "width": 375}
28+
],
29+
"injectGenericOverloads": {
30+
"Date": {},
31+
"Date.prototype.getTimezoneOffset": {},
32+
"NavigatorUAData.prototype.getHighEntropyValues": {},
33+
"localStorage": {
34+
"scheme": "session"
35+
},
36+
"sessionStorage": {
37+
"scheme": "memory"
38+
},
39+
"innerHeight": {
40+
"offset": 100
41+
},
42+
"innerWidth": {
43+
"offset": 100
44+
},
45+
"Screen.prototype.height": {},
46+
"Screen.prototype.width": {}
2247
}
2348
}
2449
}

integration-test/test-pages/runtime-checks/config/replace-element.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,32 @@
1616
"domains": [
1717
],
1818
"stackDomains": [
19-
]
19+
],
20+
"breakpoints": [
21+
{"height": 768, "width": 1024},
22+
{"height": 1024, "width": 768},
23+
{"height": 375, "width": 812},
24+
{"height": 812, "width": 375}
25+
],
26+
"injectGenericOverloads": {
27+
"Date": {},
28+
"Date.prototype.getTimezoneOffset": {},
29+
"NavigatorUAData.prototype.getHighEntropyValues": {},
30+
"localStorage": {
31+
"scheme": "session"
32+
},
33+
"sessionStorage": {
34+
"scheme": "memory"
35+
},
36+
"innerHeight": {
37+
"offset": 100
38+
},
39+
"innerWidth": {
40+
"offset": 100
41+
},
42+
"Screen.prototype.height": {},
43+
"Screen.prototype.width": {}
44+
}
2045
}
2146
}
2247
}

integration-test/test-pages/runtime-checks/config/script-overload.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@
3333
"type": "function",
3434
"functionName": "noop"
3535
}
36+
},
37+
"breakpoints": [
38+
{"height": 768, "width": 1024},
39+
{"height": 1024, "width": 768},
40+
{"height": 375, "width": 812},
41+
{"height": 812, "width": 375}
42+
],
43+
"injectGenericOverloads": {
44+
"Date": {},
45+
"Date.prototype.getTimezoneOffset": {},
46+
"NavigatorUAData.prototype.getHighEntropyValues": {},
47+
"localStorage": {
48+
"scheme": "session"
49+
},
50+
"sessionStorage": {
51+
"scheme": "memory"
52+
},
53+
"innerHeight": {
54+
"offset": 100
55+
},
56+
"innerWidth": {
57+
"offset": 100
58+
},
59+
"Screen.prototype.height": {},
60+
"Screen.prototype.width": {}
3661
}
3762
}
3863
}

integration-test/test-pages/runtime-checks/config/shadow-dom.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,32 @@
1313
"domains": [
1414
],
1515
"stackDomains": [
16-
]
16+
],
17+
"breakpoints": [
18+
{"height": 768, "width": 1024},
19+
{"height": 1024, "width": 768},
20+
{"height": 375, "width": 812},
21+
{"height": 812, "width": 375}
22+
],
23+
"injectGenericOverloads": {
24+
"Date": {},
25+
"Date.prototype.getTimezoneOffset": {},
26+
"NavigatorUAData.prototype.getHighEntropyValues": {},
27+
"localStorage": {
28+
"scheme": "session"
29+
},
30+
"sessionStorage": {
31+
"scheme": "memory"
32+
},
33+
"innerHeight": {
34+
"offset": 100
35+
},
36+
"innerWidth": {
37+
"offset": 100
38+
},
39+
"Screen.prototype.height": {},
40+
"Screen.prototype.width": {}
41+
}
1742
}
1843
}
1944
}

integration-test/test-pages/runtime-checks/config/site-specific-settings.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,32 @@
2525
}
2626
],
2727
"stackDomains": [
28-
]
28+
],
29+
"breakpoints": [
30+
{"height": 768, "width": 1024},
31+
{"height": 1024, "width": 768},
32+
{"height": 375, "width": 812},
33+
{"height": 812, "width": 375}
34+
],
35+
"injectGenericOverloads": {
36+
"Date": {},
37+
"Date.prototype.getTimezoneOffset": {},
38+
"NavigatorUAData.prototype.getHighEntropyValues": {},
39+
"localStorage": {
40+
"scheme": "session"
41+
},
42+
"sessionStorage": {
43+
"scheme": "memory"
44+
},
45+
"innerHeight": {
46+
"offset": 100
47+
},
48+
"innerWidth": {
49+
"offset": 100
50+
},
51+
"Screen.prototype.height": {},
52+
"Screen.prototype.width": {}
53+
}
2954
}
3055
}
3156
}

0 commit comments

Comments
 (0)