Changeset 223457 in webkit
- Timestamp:
- Oct 16, 2017 10:12:52 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r223452 r223457 1 2017-10-16 Chris Dumez <cdumez@apple.com> 2 3 ServiceWorkerRegistration should subclass RefCounted<> 4 https://bugs.webkit.org/show_bug.cgi?id=178374 5 6 Reviewed by Ryosuke Niwa. 7 8 ServiceWorkerRegistration should subclass RefCounted<> or we end up with an infinite recursion 9 when constructing such object. This is because ServiceWorkerRegistration subclasses 10 EventTargetWithInlineData which implements ref() / deref() by calling refEventTarget() / 11 derefEventTarget(). refEventTarget() / derefEventTarget() are implemented in 12 ServiceWorkerRegistration so that they call ref() / deref() (which ends up being EventTarget's 13 methods). 14 15 * workers/service/ServiceWorkerRegistration.h: 16 1 17 2017-10-16 Jer Noble <jer.noble@apple.com> 2 18 -
trunk/Source/WebCore/workers/service/ServiceWorkerRegistration.h
r221392 r223457 38 38 class ServiceWorker; 39 39 40 class ServiceWorkerRegistration final : public EventTargetWithInlineData, public ActiveDOMObject {40 class ServiceWorkerRegistration final : public RefCounted<ServiceWorkerRegistration>, public EventTargetWithInlineData, public ActiveDOMObject { 41 41 public: 42 42 enum class UpdateViaCache { … … 63 63 void unregister(Ref<DeferredPromise>&&); 64 64 65 using RefCounted::ref; 66 using RefCounted::deref; 67 65 68 private: 66 69 ServiceWorkerRegistration(ScriptExecutionContext&, const ServiceWorkerRegistrationData&);
Note: See TracChangeset
for help on using the changeset viewer.