use-local-devtools-files.patch 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Always use local DevTools files instead of remote files from Google
  2. # NOTE: This can break Remote Debugging
  3. # This also fixes local debugging with domain substitution
  4. # Related comment: https://bugs.chromium.org/p/chromium/issues/detail?id=710701#c14
  5. --- a/third_party/devtools-frontend/src/BUILD.gn
  6. +++ b/third_party/devtools-frontend/src/BUILD.gn
  7. @@ -840,14 +840,13 @@ generated_non_autostart_non_remote_modul
  8. "$resources_out_dir/timeline/timeline_module.js",
  9. "$resources_out_dir/web_audio/web_audio_module.js",
  10. "$resources_out_dir/workspace_diff/workspace_diff_module.js",
  11. -]
  12. -
  13. -generated_remote_modules = [
  14. "$resources_out_dir/lighthouse_worker/lighthouse_worker_module.js",
  15. "$resources_out_dir/dagre_layout/dagre_layout_module.js",
  16. "$resources_out_dir/emulated_devices/emulated_devices_module.js",
  17. ]
  18. +generated_remote_modules = []
  19. +
  20. generated_test_modules = [
  21. "$resources_out_dir/accessibility_test_runner/accessibility_test_runner_module.js",
  22. "$resources_out_dir/application_test_runner/application_test_runner_module.js",
  23. @@ -939,7 +938,6 @@ devtools_frontend_resources_deps = devto
  24. ":copy_htaccess",
  25. ":copy_inspector_images",
  26. ":copy_lighthouse_locale_files",
  27. - ":copy_wasm_deps",
  28. ":devtools_extension_api",
  29. ]
  30. @@ -1650,7 +1648,6 @@ action("generate_devtools_grd") {
  31. devtools_embedder_scripts + generated_worker_bundles +
  32. [
  33. "$resources_out_dir/devtools_extension_api.js",
  34. - "$resources_out_dir/sdk/wasm_source_map/pkg/wasm_source_map_bg.wasm",
  35. ]
  36. inputs = grd_files + devtools_image_files
  37. --- a/third_party/devtools-frontend/src/front_end/devtools_app.json
  38. +++ b/third_party/devtools-frontend/src/front_end/devtools_app.json
  39. @@ -10,10 +10,10 @@
  40. { "name": "browser_debugger" },
  41. { "name": "css_overview" },
  42. { "name": "cookie_table" },
  43. - { "name": "dagre_layout", "type": "remote" },
  44. + { "name": "dagre_layout" },
  45. { "name": "devices" },
  46. { "name": "elements" },
  47. - { "name": "emulated_devices" , "type": "remote" },
  48. + { "name": "emulated_devices" },
  49. { "name": "issues" },
  50. { "name": "har_importer" },
  51. { "name": "help" },
  52. --- a/third_party/devtools-frontend/src/front_end/lighthouse_worker.json
  53. +++ b/third_party/devtools-frontend/src/front_end/lighthouse_worker.json
  54. @@ -2,6 +2,6 @@
  55. "worker": true,
  56. "modules": [
  57. { "name": "worker_service", "type": "autostart" },
  58. - { "name": "lighthouse_worker", "type": "remote" }
  59. + { "name": "lighthouse_worker" }
  60. ]
  61. }