(parentWindow)
| 406 | * @visibleForTesting |
| 407 | */ |
| 408 | export function generateSentinel(parentWindow) { |
| 409 | let windowDepth = 0; |
| 410 | for (let win = parentWindow; win && win != win.parent; win = win.parent) { |
| 411 | windowDepth++; |
| 412 | } |
| 413 | return String(windowDepth) + '-' + getRandom(parentWindow); |
| 414 | } |
| 415 | |
| 416 | /** |
| 417 | * Resets the count of each 3p frame type |
no test coverage detected