Compare commits

..

1 Commits

Author SHA1 Message Date
David Perez
1b9266f3cf PM-38779: Update cursor logic to avoid exception 2026-06-09 13:13:00 -05:00
3 changed files with 10 additions and 9 deletions

View File

@@ -18,7 +18,6 @@
<!-- CRL Distribution Servers -->
<domain includeSubdomains="true">c.lencr.org</domain>
<domain includeSubdomains="true">c.pki.goog</domain>
<domain includeSubdomains="true">crls.certainly.com</domain>
<!-- OCSP Responder Servers -->
<domain includeSubdomains="true">o.pki.goog</domain>

View File

@@ -63,13 +63,16 @@ class BrowserThirdPartyAutofillManagerImpl(
var thirdPartyEnabled = false
val isThirdPartyAvailable = cursor
?.use {
it.moveToFirst()
thirdPartyEnabled = it
.getColumnIndex(THIRD_PARTY_MODE_COLUMN)
.takeUnless { columnIndex -> columnIndex == -1 }
?.let { columnIndex -> it.getInt(columnIndex) != 0 }
?: false
true
if (it.moveToFirst()) {
thirdPartyEnabled = it
.getColumnIndex(THIRD_PARTY_MODE_COLUMN)
.takeUnless { columnIndex -> columnIndex == -1 }
?.let { columnIndex -> it.getInt(columnIndex) != 0 }
?: false
true
} else {
false
}
}
?: false
return BrowserThirdPartyAutoFillData(

View File

@@ -18,7 +18,6 @@
<!-- CRL Distribution Servers -->
<domain includeSubdomains="true">c.lencr.org</domain>
<domain includeSubdomains="true">c.pki.goog</domain>
<domain includeSubdomains="true">crls.certainly.com</domain>
<!-- OCSP Responder Servers -->
<domain includeSubdomains="true">o.pki.goog</domain>