cef/patch/patches/mojo_generator_1422178.patch

14 lines
611 B
Diff

diff --git mojo/public/tools/bindings/generators/mojom_ts_generator.py mojo/public/tools/bindings/generators/mojom_ts_generator.py
index 98516f03276e4..a1bda9c021c52 100644
--- mojo/public/tools/bindings/generators/mojom_ts_generator.py
+++ mojo/public/tools/bindings/generators/mojom_ts_generator.py
@@ -177,6 +177,8 @@ def _GetWebUiModulePath(module):
path = module.metadata.get('webui_module_path')
if path is None or path == '/':
return path
+ if path == '':
+ return '/'
if _IsAbsoluteChromeResourcesPath(path):
return path.rstrip('/') + '/'
return '/{}/'.format(path.strip('/'))