Fix CacheStorage null ptr access
When this code was changed to not use the RevocableInterfacePtr it was assumed that the calls into the mojo bindings only occurred while the object's associated context was still alive. It is possible to have a reference to a cache storage object from a frame that has been destroyed and make calls to it. In this case the RevocableInterfacePtr previously dropped them because the calls would fail. Now we will return a promise that is rejected. BUG=1012781,1012358 Change-Id: I9504af8245be13137db82e39e3dc5a702c89e7d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1854184 Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Reviewed-by:Ben Kelly <wanderview@chromium.org> Cr-Commit-Position: refs/heads/master@{#705122}
Showing
Please register or sign in to comment