Re: [wake-lock] Subtleties of using Document are not specced (#141)

I see that there's an attempt to handle documents without a browsing context by checking document.defaultView. But that's not robust; if I do `Object.defineProperty(xhr.responseDoc, "defaultView", { value: "non-null" })` the spec will currently 'crash'. You should explicitly check if the document has a browsing context. (There are similar problems with the `window.navigator` line later on.)

-- 
GitHub Notification of comment by domenic
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/141#issuecomment-449114204 using your GitHub account

Received on Thursday, 20 December 2018 19:44:02 UTC