DescriptionAdd null checks in navigator.serviceWorker access to fix possible crash
This fixes two possible crash:
1. document->frame() could be null when ServiceWorkerContainerClient::from is called
2. NavigatorServiceWorker.m_serviceWorker could be null in ServiceWorkerContainer::detachClient
BUG=355998, 356017
TEST=fast/serviceworker/access-container-with-invalid-context.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170501
Patch Set 1 #Patch Set 2 : #
Total comments: 12
Patch Set 3 : #Patch Set 4 : reverted iframe #Patch Set 5 : reverted iframe change #
Messages
Total messages: 12 (0 generated)
|