DescriptionDon't assert when ServiceWorker::from is passed an empty promise
If the document gets detached before Service Worker registration
completes, the CallbackPromiseAdapter promise gets cleared. Then when
registration completes, ServiceWorker::from is passed the resolver with
the empty promise. Before this patch, an assert would then occur because
ScriptPromise::then bails before adopting its fulfilled/rejected
arguments. This patch fixes an overly aggressive assert in
V8GarbageCollected and also makes ServiceWorker creation skip waiting
on an empty promise.
BUG=384498
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176282
Patch Set 1 #
Total comments: 5
Patch Set 2 : review comments #Patch Set 3 : fix V8GarbageCollected ASSERT #
Total comments: 2
Patch Set 4 : set state ContextStopped #
Messages
Total messages: 18 (0 generated)
|