You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native linux portal not being called for 35 #46652
@razzeee The "blocks stable" label is just a technical distinction for the 35-x-y project board. 35.0.0 stable was already released, so it couldn't block stable; we just moved it over to that column while doing issue triage.
With that being said, though: I just read your comment on the linked PR, did this functionality regress since Deepak's fix? If so, we can prioritize it higher. It'd be helpful if we could pinpoint where in Electron 35 this regressed specifically (i.e. if it was 35.1.5 or an earlier release in 35-x-y), I'll see if I can use your test gist to bisect
Started investigating this, issue regressed via https://chromium-review.googlesource.com/c/chromium/src/+/6182296. Before the change the version detection that happens on startup would be triggered, performed and completed on the dbus thread. After the change, the trigger and completion happens on the main thread (UI thread). The problem is particularly with the completion callback, if the file dialog choice is called FileDialogChoice GetFileDialogChoice before the detection completes then portal dialogs cannot be used. This is not an issue for upstream since file dialogs are not initiated until a web page requests which happens quite late in the lifecycle giving enough time for the detection to complete.
We can make the detection code sync. This will impact main process application load times on linux since we ideally delay app ready till the detection completes. The detection logic first attempts to start the service if it is not already running, then proceeds to get the version information which is considerable for a sync logic.
We can make only the detection code use the old path, that is the dbus thread task runner initiates and performs the detection while the rest of SelectFileDialogLinuxPortal operations like select file callsites can use the shared session bus that would start on the main thread. However, this will be race condition again just at different layer.
Activity
razzeee commentedon Apr 28, 2025
@VerteDinde how doesn't this block stable? all versions after 35 seem affected too?
VerteDinde commentedon Apr 29, 2025
@razzeee The "blocks stable" label is just a technical distinction for the 35-x-y project board. 35.0.0 stable was already released, so it couldn't block stable; we just moved it over to that column while doing issue triage.
With that being said, though: I just read your comment on the linked PR, did this functionality regress since Deepak's fix? If so, we can prioritize it higher. It'd be helpful if we could pinpoint where in Electron 35 this regressed specifically (i.e. if it was 35.1.5 or an earlier release in 35-x-y), I'll see if I can use your test gist to bisect
razzeee commentedon Apr 29, 2025
Yes, my understanding is, that it regressed
deepak1556 commentedon May 2, 2025
Started investigating this, issue regressed via https://chromium-review.googlesource.com/c/chromium/src/+/6182296. Before the change the version detection that happens on startup would be triggered, performed and completed on the dbus thread. After the change, the trigger and completion happens on the main thread (UI thread). The problem is particularly with the completion callback, if the file dialog choice is called FileDialogChoice GetFileDialogChoice before the detection completes then portal dialogs cannot be used. This is not an issue for upstream since file dialogs are not initiated until a web page requests which happens quite late in the lifecycle giving enough time for the detection to complete.
deepak1556 commentedon May 2, 2025
SelectFileDialogLinuxPortaloperations like select file callsites can use the shared session bus that would start on the main thread. However, this will be race condition again just at different layer.