|
|
|
|
|
by shadowgovt
1861 days ago
|
|
I think the problem is that with the code-as-written, if the GA call fails, the relevant `window` field won't be populated, which the code is detecting. Given the hyper-malleable nature of JavaScript in an HTML page in a user-agent owned by the end user, at some point the developer has to draw a line in the sand and say "This category of failure modes is not checked," because it's mathematically impossible to check all possible failure modes in that configuration. "An extension is intentionally faking an object in the `window` context" just happens to be on the other side of the "don't check" line for this application, because it's extremely unlikely (and, one could argue, user-self-inflicted). |
|