mac-cain13 / xdebug-helper-for-chrome

Easily activate PHP debugging, profiling and tracing with this Xdebug Chrome extension
https://chrome.google.com/webstore/detail/eadndfjplgieldjbigjakmdgkmoaaaoc
307 stars 97 forks source link

Handling the cases when `document.cookie` is not available #100

Open zerkms opened 5 years ago

zerkms commented 5 years ago

Some applications disallow cookies on its pages which leads to

Error in event handler: Error: Failed to read the 'cookie' property from 'Document': Access is denied for this document.
    at getCookie (chrome-extension://eadndfjplgieldjbigjakmdgkmoaaaoc/content.js:15:32)
    at Object.getStatus (chrome-extension://eadndfjplgieldjbigjakmdgkmoaaaoc/content.js:88:8)
    at messageListener (chrome-extension://eadndfjplgieldjbigjakmdgkmoaaaoc/content.js:68:25)

It would be ideal if read/write cookies exceptions were handled. Thanks.