Commit 40e9683
Notification: Add toString and make permission/requestPermission set values (#1934)
* Initial PoC changes for testing
* Address comments
* Add toString attempt
* Try using full constructor instead of arrow function
* Fix notification toString
* Avoid proxy descriptor mismatch in wrapToString
* Remove rando copilot edit
* Try recursively shimming toString
* Try again to fix toString2 error
* Match Chrome's inheritance instead of supplying toString
* Fix constructor toString
* Debug toString2
* Debug toString2 some more
* Add current state
* Fix writable value
* Get tests to pass
* Make notification.permission use value over get
* Fix writable value
* Remove this scope changes
* Zap dangling comment
* Zap another comment
* Zap rando file addition
* Make suggested changes
---------
Co-authored-by: Jonathan Kingston <jkingston@duckduckgo.com>1 parent 4678800 commit 40e9683
File tree
2 files changed
+53
-13
lines changed- injected
- integration-test
- src/features
2 files changed
+53
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
133 | 153 | | |
134 | 154 | | |
135 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
219 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
220 | 233 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 234 | + | |
224 | 235 | | |
225 | 236 | | |
226 | 237 | | |
227 | 238 | | |
228 | 239 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
234 | 243 | | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
238 | | - | |
239 | | - | |
| 247 | + | |
| 248 | + | |
240 | 249 | | |
241 | | - | |
| 250 | + | |
242 | 251 | | |
243 | 252 | | |
244 | | - | |
245 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
246 | 266 | | |
247 | 267 | | |
248 | 268 | | |
| |||
0 commit comments