Commit e4efef8
committed
Add early return for disabled feature in DuckChatDeleter
When duckAiDataClearingFeature is disabled (the default), deleteChat() now
returns false immediately instead of spinning up a WebView, loading pages
for two domains, injecting JS, and waiting for timeouts that will never
complete. This avoids up to ~10 seconds of unnecessary suspended delay
per tab burn when the feature is disabled.1 parent 6e073cd commit e4efef8
File tree
1 file changed
+2
-0
lines changed- duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/clearing
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
0 commit comments