Hartmut actually suggested a fix like comment 22 about a week ago since just reversing the order of UpdateFolderWithListener and OnCopyComplete fixed one problem but caused another. See comment 7. From email he sent me 1/5/26: >The filter is triggered by the OnCopyCompleted call. The UpdateFolderWithListener directly afterwards somehow interferes with that. I also tried delaying the UpdateFolder call by dispatching to the main thread, but that didn't help reliably either. The cleanest solution would probably be to call UpdateFolder first, then wait for its completion in OnStopRunningUrl, and then call OnCopyCompleted, but since UpdateFolder calls also itself, that's quite the mess I think ... I'm not seeing where UpdateFolder (or UpdateFolderWithListener) is calling itself.
Bug 2008314 Comment 23 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Hartmut actually suggested a fix like comment 22 about a week ago since just reversing the order of OnCopyComplete and UpdateFolderWithListener fixed one problem but caused another. See comment 7. From email he sent me 1/5/26: >The filter is triggered by the OnCopyCompleted call. The UpdateFolderWithListener directly afterwards somehow interferes with that. I also tried delaying the UpdateFolder call by dispatching to the main thread, but that didn't help reliably either. The cleanest solution would probably be to call UpdateFolder first, then wait for its completion in OnStopRunningUrl, and then call OnCopyCompleted, but since UpdateFolder calls also itself, that's quite the mess I think ... I'm not seeing where UpdateFolder (or UpdateFolderWithListener) is calling itself.