Hi, I'm working on File-picker for Crosswalk and Chromium(Ozone-wayland) using WebUI. https://crosswalk-project.org/jira/browse/XWALK-950 https://github.com/01org/ozone-wayland/issues/147
The file-picker WebUI works fine in Chromium, but it doesn't work in Crosswalk because shared JS files(src/ui/webui/resources/js) don't run as follows: [0701/172113:ERROR:CONSOLE(0)] "Uncaught TypeError: Cannot convert undefined or null to object", source: chrome://file-picker/ (0) [0701/172113:ERROR:CONSOLE(1)] "Uncaught ReferenceError: loadTimeData is not defined", source: chrome://file-picker/strings.js (1) [0701/172113:ERROR:CONSOLE(7)] "Uncaught ReferenceError: cr is not defined", source: chrome://file-picker/file_picker.js (7) There seems to be missing things for WebUI in Crosswalk. Here are my patches for Crosswalk: https://github.com/joone/chromium-crosswalk/commit/66ac6238b2f8ec7a05c50e44a682d42f03cc5e04 https://github.com/joone/crosswalk/commit/3008dbcb4fd068dae309863cd9a8f1bc22938c4d https://github.com/joone/ozone-wayland/commit/963cf6b0b66c308f3da5158c303b164c1695aa28 Actually, there are several WebUIs in Crosswalk. Of course, they don't work now due to missing WebUI support. https://github.com/joone/chromium-crosswalk/blob/66ac6238b2f8ec7a05c50e44a682d42f03cc5e04/content/public/common/url_constants.cc After applying my patches, you can try to open chrome://file-picker and chrome://gpu. chrome://gpu also has the same problem. I think that it is important to support WebUI for Crosswalk: We can provide system dialog boxes (file-picker or printing) and system menu (settings or help) like Chromium. If you have any idea why WebUI doesn't work in Crosswalk, please let me know. Thanks, Joone
_______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
