Disable indexedDB support if a SecurityError is thrown#2236
Disable indexedDB support if a SecurityError is thrown#2236joeyparrish merged 5 commits intoshaka-project:masterfrom
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
@googlebot I signed it! |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
joeyparrish
left a comment
There was a problem hiding this comment.
Thank you so much for your contribution!
joeyparrish
left a comment
There was a problem hiding this comment.
Thank you so much for your contribution!
|
Test Failure: |
joeyparrish
left a comment
There was a problem hiding this comment.
Looks good to me. Thanks! I'll run it through the build bot once more.
|
Test Failure: |
|
I've refactored this code a bit to avoid the previous error ("The result of the 'getprop' operator is not being used"). Additionally, this caused the compiler to completely remove this code. The compiled version, with this refactor is: |
|
Test Failure: |
|
Fixed max line length exceeded |
|
All tests passed! |
|
Thanks so much for the contribution! |
When using Shaka player inside an cross domain iframe in Firefox with 3rd party cookies blocked,
probeSupportmethod throws a SecurityError.The error is thrown in lib/offline/indexeddb/storage_mechanism.js:340, when accessing
window.indexedDB.The proposed solution removes
window.indexedDBwith a polyfill, using the same approach implemented for Chromecast.