DOM localStorage not set after an immediate reboot 72/322072/3
authorRob Limuel Samia <rl.samia@samsung.com>
Thu, 3 Apr 2025 07:24:09 +0000 (07:24 +0000)
committerBot Blink <blinkbot@samsung.com>
Wed, 23 Apr 2025 07:29:28 +0000 (07:29 +0000)
The localstorage was refreshed evey 30 second.
So if the time from data write to reboot was less than 30 second,
the data will not be saved.

Change the time period of the localstorage refresh to 0.

Related KONA:
    RQ191204-01823
    RQ191122-01180

Change-Id: If93fa74e9cb68977966b0cccb09e922b85927b36
Signed-off-by: Rob Limuel Samia <rl.samia@samsung.com>
components/services/storage/dom_storage/storage_area_impl.cc

index 38f49cfe426272a88c896946ae0ae98e7ba1d42f..2d72402f4b9792badd0cae6d0aabbf1a05562fd6 100644 (file)
@@ -697,6 +697,11 @@ void StorageAreaImpl::StartCommitTimer() {
 }
 
 base::TimeDelta StorageAreaImpl::ComputeCommitDelay() const {
+#if BUILDFLAG(IS_TIZEN_TV)
+  LOG(INFO) << "DOM localStorage set after an immediate reboot";
+  return base::TimeDelta::FromSeconds(0);
+#endif
+
   if (s_aggressive_flushing_enabled_)
     return base::Seconds(1);