-
Notifications
You must be signed in to change notification settings - Fork 82
Chromium crashes while trying to save a page. #147
Comments
bt: #0 0x00007ffff340a425 in __GI_raise (sig=) |
We need to implement a file picker for this. |
Any estimate of when this could be implemented? |
@baleboy I'll take a look on it now and I'll come back to you then. |
alright, this is not so simple as I thought. At the moment Linux Aura-X11 still relies on GTK+ for theme integration and a few other things like the File Dialog: that said, Linux Aura-X11 should port most of these GTK+ dialogs to use Views/Aura only, getting rid of GTK+ dep and thus Linux Aura-Ozone would take advantage of that as well. More specifically to solves our particular issue we need to implement ui::SelectFileDialog for Aura only (see also ui::LinuxShellDialog). Nevertheless, all the File Dialog logic happens inside chrome/ (i.e. meant for the browser and Ash only) but possibly could be moved to content/ so say Content Shell and Crosswalk could benefit as well. This has to be definitely discussed with Chromium developers though. |
Sorry missed this conversation. Ya, so this is something we have been discussing for a while. @joone had some ideas of helping upstream to push this forward. If I remember right their is no plan to port the dialogs to use views/aura but rather move to gtk3. This will take some time as gtk3 is not compatible with gtk2. |
@kalyankondapally we'll be working together with @alexshalamov actually to solve this -- let's talk about that on IRC later... |
Here is a patch: joone@2b6d4ec This patch allows to show a demo WebUI that has just an input box and buttons for testing. We can implement a File Picker using HTML, CSS, and JS based on this patch, but Chromium OS seems to implement the File Picker UI using Aura so we could reuse it. |
Nice one @joone! The WebUI one is an interesting approach but before finishing that we'd need to understand whether upstream will want something that or instead use the Chromium OS for all Aura-based solutions. I think they prefer to go with the latter. |
@tiagovignatti I think so. I will try to use the Aura based solutions, but I'm not sure if all the code related to file-picker could be moved to content/ |
I tried to move the file-picker of ChromeOS to Chrome Browser. It is more complicated to run the file-picker of ChromiumOS in Ozone-wayland than I thought. |
yup, it's indeed complicated but note that it'd be benefiting all Ozone implementations. Can the browser and ChromeOS code be shared instead? I see that you're adding code but maybe you could just have a common code for both targets. My suggestions is that you should show already the WIP to the upstream developers and ask their opinion -- it can be done right now because the work is getting quite big and it gives the whole idea of the task. As I said previously, you can point out the following bug as reference: https://code.google.com/p/chromium/issues/detail?id=130810 overall, this work is looking good! I appreciate your efforts @joone. |
I created an issue: https://code.google.com/p/chromium/issues/detail?id=370493 Thanks! |
Are we going to see this landing in Crosswalk anytime soon? |
@baleboy I think that Crosswalk can't use the file manager of ChromeOS because it is designed for accessing Google Drive and it seems no local file system APIs. Therefore, I am going to use WebUI for Crosswalk, but it needs to access Tizen FileSystem API. For Ozone-Wayland, we need to create private JS APIs for dealing with the local file system that can be used in the WebUI. First, I will apply the WebUI to Crosswalk and then see if Tizen FileSystem API works. |
Here is a patch: joone@963cf6b This is ozone-wayland part of file-picker implementation. |
We have initial support for dialogs and we dont crash. So, closing this issue. |
open Chromium and click right-button in the content window and then "Save As" to crash. 100% reproducible.
Steps:
1)Launch chrome with
./out/Debug/chrome --no-sandbox
2)Right click to open context menu
3)Select Save As option
Expected result:
Opens a Dialog box and one is able to save the page.
Actual result:
Chrome crashes.
Dependency: None.
Blocks: None.
SubTasks: None.
Works on Chromium-X11: Yes.
The text was updated successfully, but these errors were encountered: