Title: [238085] trunk/Source/WebCore
- Revision
- 238085
- Author
- [email protected]
- Date
- 2018-11-12 06:55:03 -0800 (Mon, 12 Nov 2018)
Log Message
IDBTransaction does not use "RefPtr<IDBTransaction> self"
https://bugs.webkit.org/show_bug.cgi?id=190436
Reviewed by Alex Christensen.
It seems that `RefPtr<IDBTransaction> self;` is not effective since it does not capture anything.
Use `protectedThis = makeRef(*this)` instead.
No behavior change.
* Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::IDBTransaction):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (238084 => 238085)
--- trunk/Source/WebCore/ChangeLog 2018-11-12 14:40:26 UTC (rev 238084)
+++ trunk/Source/WebCore/ChangeLog 2018-11-12 14:55:03 UTC (rev 238085)
@@ -1,3 +1,18 @@
+2018-11-12 Yusuke Suzuki <[email protected]>
+
+ IDBTransaction does not use "RefPtr<IDBTransaction> self"
+ https://bugs.webkit.org/show_bug.cgi?id=190436
+
+ Reviewed by Alex Christensen.
+
+ It seems that `RefPtr<IDBTransaction> self;` is not effective since it does not capture anything.
+ Use `protectedThis = makeRef(*this)` instead.
+
+ No behavior change.
+
+ * Modules/indexeddb/IDBTransaction.cpp:
+ (WebCore::IDBTransaction::IDBTransaction):
+
2018-11-12 Alicia Boya GarcĂa <[email protected]>
[MSE][GStreamer] Introduce AbortableTaskQueue
Modified: trunk/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp (238084 => 238085)
--- trunk/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp 2018-11-12 14:40:26 UTC (rev 238084)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp 2018-11-12 14:55:03 UTC (rev 238085)
@@ -92,10 +92,9 @@
auto* context = scriptExecutionContext();
ASSERT(context);
- RefPtr<IDBTransaction> self;
JSC::VM& vm = context->vm();
- vm.whenIdle([self, this]() {
- deactivate();
+ vm.whenIdle([protectedThis = makeRef(*this)]() {
+ protectedThis->deactivate();
});
establishOnServer();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes