From b9843e0358575f5b375de54f2fcfd8d1b134b7dd Mon Sep 17 00:00:00 2001 From: roytam1 Date: Sat, 29 May 2021 22:53:37 +0800 Subject: [PATCH] import changes from `dev' branch of rmottola/Arctic-Fox: - Bug 1167459 - Skip rendering function name nodes if there's no name available (e.g. for C++ pseudoframes), r=jsantell (4a69ed224) - missing bits Bug 1102219 - Part 4: Replace String.prototype.contains with `String.prototype.includes` in chrome code. r=till (73cd2d2b1) - Bug 1165045 - Don't create nodes with empty text in the call tree, r=jsantell (b013aa82d) - Bug 1166122 - Fix regression in the call tree caused by bug 1165045, r=jsantell (ee3f16901) - Bug 1167975 - CallView._displaySelf sets this.document just because other functions use it; it should pass it as an argument instead, r=jsantell (5ef560c4f) - Bug 1122662 - Resize graphs when window resizes;r=vporof (25c108e4e) - Bug 1164784 - Eliminate CSS duplication with perf tool record button r=jsantell (43c9bb999) - Bug 1150761 - Rename the performance tool's details view names to better describe the data visualizations. r=vp (04ceb6a37) - Bug 1144424 - Rename '{self,total} allocations' to '{self,total} sampled allocations' in the performance tool. r=jsantell (ae79ad54f) - Bug 1069910 - Add tooltips explaining what each column in the profiler's tree view represents; r=jsantell (8756f88b6) - Bug 1107849 - Define a min/max width for the performance panel sidebar. r=vporof (e1769e831) - Bug 11663354 - A locked recording button should appear disabled in the performance tool. r=vp (4a359d39e) - Bug 1023546 - DevTools - Support HDPI resolutions for Windows. r=bgrins (ef1a3ecb8) - Bug 1168125 - Cleanup performance xul and css, r=jsantell (8ec794e46) - Bug 1168125 - Replace the waterfall view with a tree, r=jsantell (ea76514fe) - Bug 1168125 - Add marker folding logic, r=jsantell (1d3748d2a) - Bug 862341 Part 1: Move the network request storage from the console frontend to the console client so the netmonitor can reuse it. r=vporof (d29fb2b73) - remove gre from resource path (126b00df1) - Bug 943306 - Allow persisting console input history between sessions;r=past (146ebb486) - Bug 1134845 - Add clearHistory jsterm helper to remove persisted console input history. r=past (22237e95b) - Bug 1143497 - Offer a way to extend WebConsole commands. r=bgrins (84e2d2957) - Bug 1125205 - Display console API messages from shared or service workers to the web console, r=past (b4b701a2c) - Bug 1169342 - Remove nsIDOMDeviceStorage. Cleanup nsDOMDeviceStorage event wrappers. r=dhylands (41338e16f) - Bug 1151610 - Manage the case where two extensions fight over the same command. r=bgrins (63f9d2064) - Bug 862341 Part 2: Display cached network requests in the web console. r=vporof (83c0e7263) - Bug 1144211 - Improve code coverage of camera mochitests. r=mikeh (ba9f3de89) - Bug 1152500 - Fix how stop recording may be handled out-of-order. r=dhylands (d8bdd379c) - Bug 862341 Part 3: Display cached network requests in the network panel. r=vporof (a1a6f151d) - Bug 862341 Part 4: Start recording network requests when the toolbox opens. r=vporof (7a2bdf847) - Bug 1151499 - Correct the FM playable state. r=baku (8af26fff2) - Bug 1180347 - Split media.useAudioChannelService to support turning the service on without turning the Firefox OS specific APIs on; r=baku (3fa29291a) - Bug 862341 Part 5: Tests. r=vporof (82fb944c6) --- b2g/app/b2g.js | 2 + b2g/installer/package-manifest.in | 1 - browser/app/profile/palemoon.js | 11 + browser/installer/package-manifest.in | 1 - .../tests/test_telephonyPolicy.html | 1 + dom/base/Console.cpp | 2 +- dom/camera/CameraControlImpl.h | 1 - dom/camera/CameraTestHardware.js | 12 +- dom/camera/DOMCameraControl.cpp | 111 ++- dom/camera/DOMCameraControl.h | 3 +- dom/camera/FallbackCameraPlatform.h | 4 + dom/camera/GonkCameraControl.cpp | 12 +- dom/camera/TestGonkCameraHardware.cpp | 26 + dom/camera/TestGonkCameraHardware.h | 1 + dom/camera/test/camera_common.js | 28 +- dom/camera/test/mochitest.ini | 19 +- dom/camera/test/test_bug1022766.html | 63 -- dom/camera/test/test_bug1037322.html | 69 -- dom/camera/test/test_bug1099390.html | 55 -- ...lures.html => test_camera_auto_focus.html} | 125 +++- .../test/test_camera_bad_initial_config.html | 44 -- .../test/test_camera_configuration.html | 545 ++++++++++++++ ...n.html => test_camera_face_detection.html} | 127 +++- .../test/test_camera_fake_parameters.html | 146 +++- dom/camera/test/test_camera_record.html | 162 +++++ ...ug975472.html => test_camera_release.html} | 60 ++ dom/camera/test/test_camera_take_picture.html | 165 +++++ dom/devicestorage/DeviceStorage.h | 40 +- dom/devicestorage/nsDeviceStorage.cpp | 296 +------- dom/fmradio/FMRadio.cpp | 2 +- dom/html/HTMLMediaElement.cpp | 13 +- dom/interfaces/devicestorage/moz.build | 11 - .../devicestorage/nsIDOMDeviceStorage.idl | 46 -- dom/media/webaudio/AudioDestinationNode.cpp | 13 +- .../webaudio/test/browser_mozAudioChannel.js | 1 + .../test/browser_mozAudioChannel_muted.js | 1 + .../webaudio/test/test_mozaudiochannel.html | 3 +- dom/moz.build | 1 - dom/webidl/AudioContext.webidl | 6 +- .../test/test_consoleSharedWorkers.html | 3 +- toolkit/devtools/framework/target.js | 33 +- toolkit/devtools/framework/toolbox.js | 5 +- .../netmonitor/netmonitor-controller.js | 186 ++--- .../test/browser_net_reload-button.js | 3 - toolkit/devtools/netmonitor/test/head.js | 5 + .../devtools/performance/modules/global.js | 119 +++- .../modules/logic/waterfall-utils.js | 122 ++++ .../modules/widgets/marker-details.js | 36 +- .../modules/widgets/marker-view.js | 305 ++++++++ .../modules/widgets/markers-overview.js | 37 +- .../performance/modules/widgets/tree-view.js | 126 ++-- .../modules/widgets/waterfall-ticks.js | 187 +++++ .../performance/modules/widgets/waterfall.js | 620 ---------------- toolkit/devtools/performance/moz.build | 4 +- .../performance/performance-controller.js | 8 +- toolkit/devtools/performance/performance.xul | 168 +++-- .../test/browser_profiler_tree-view-02.js | 52 +- .../test/browser_profiler_tree-view-04.js | 10 +- .../test/browser_profiler_tree-view-05.js | 4 +- .../performance/views/details-waterfall.js | 81 ++- toolkit/devtools/server/actors/webconsole.js | 53 +- .../shared/widgets/AbstractTreeItem.jsm | 136 +++- toolkit/devtools/shared/widgets/Graphs.jsm | 5 + toolkit/devtools/shared/widgets/spectrum.css | 2 +- .../sourceeditor/codemirror/mozilla.css | 6 +- toolkit/devtools/webconsole/client.js | 148 +++- .../test/browser_console_history_persist.js | 105 +++ ...ser_netmonitor_shows_reqs_in_webconsole.js | 71 ++ ...ebconsole_bug_622303_persistent_filters.js | 142 ++++ ..._webconsole_console_logging_workers_api.js | 44 ++ .../test/browser_webconsole_netlogging.js | 214 ++++++ ...ser_webconsole_shows_reqs_in_netmonitor.js | 71 ++ toolkit/devtools/webconsole/test/chrome.ini | 1 + .../webconsole/test/test-console-workers.html | 13 + .../test/test_commands_registration.html | 192 +++++ toolkit/devtools/webconsole/utils.js | 672 +++++++++++------- toolkit/devtools/webconsole/webconsole.js | 272 +++---- toolkit/devtools/webconsole/webconsole.xul | 7 + .../en-US/chrome/global/devtools/profiler.dtd | 24 +- .../chrome/global/devtools/webConsole.dtd | 10 + .../shared/devtools/animationinspector.css | 4 +- .../shared/devtools/canvasdebugger.inc.css | 4 +- .../shared/devtools/commandline.inc.css | 6 +- .../themes/shared/devtools/computedview.css | 2 +- toolkit/themes/shared/devtools/dark-theme.css | 4 +- .../themes/shared/devtools/debugger.inc.css | 20 +- toolkit/themes/shared/devtools/inspector.css | 2 +- .../themes/shared/devtools/light-theme.css | 4 +- .../themes/shared/devtools/netmonitor.inc.css | 4 +- .../shared/devtools/performance.inc.css | 544 +++++++------- .../themes/shared/devtools/profiler.inc.css | 4 +- .../shared/devtools/responsivedesign.inc.css | 8 +- toolkit/themes/shared/devtools/ruleview.css | 4 +- .../shared/devtools/shadereditor.inc.css | 2 +- .../themes/shared/devtools/styleeditor.css | 2 +- .../themes/shared/devtools/toolbars.inc.css | 8 +- .../shared/devtools/webaudioeditor.inc.css | 2 +- .../themes/shared/devtools/webconsole.inc.css | 4 +- .../themes/shared/devtools/widgets.inc.css | 12 +- xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp | 2 - 100 files changed, 4707 insertions(+), 2466 deletions(-) delete mode 100644 dom/camera/test/test_bug1022766.html delete mode 100644 dom/camera/test/test_bug1037322.html delete mode 100644 dom/camera/test/test_bug1099390.html rename dom/camera/test/{test_camera_hardware_failures.html => test_camera_auto_focus.html} (62%) delete mode 100644 dom/camera/test/test_camera_bad_initial_config.html create mode 100644 dom/camera/test/test_camera_configuration.html rename dom/camera/test/{test_camera_hardware_face_detection.html => test_camera_face_detection.html} (67%) create mode 100644 dom/camera/test/test_camera_record.html rename dom/camera/test/{test_bug975472.html => test_camera_release.html} (75%) create mode 100644 dom/camera/test/test_camera_take_picture.html delete mode 100644 dom/interfaces/devicestorage/moz.build delete mode 100644 dom/interfaces/devicestorage/nsIDOMDeviceStorage.idl create mode 100644 toolkit/devtools/performance/modules/logic/waterfall-utils.js create mode 100644 toolkit/devtools/performance/modules/widgets/marker-view.js create mode 100644 toolkit/devtools/performance/modules/widgets/waterfall-ticks.js delete mode 100644 toolkit/devtools/performance/modules/widgets/waterfall.js create mode 100644 toolkit/devtools/webconsole/test/browser_console_history_persist.js create mode 100644 toolkit/devtools/webconsole/test/browser_netmonitor_shows_reqs_in_webconsole.js create mode 100644 toolkit/devtools/webconsole/test/browser_webconsole_bug_622303_persistent_filters.js create mode 100644 toolkit/devtools/webconsole/test/browser_webconsole_console_logging_workers_api.js create mode 100644 toolkit/devtools/webconsole/test/browser_webconsole_netlogging.js create mode 100644 toolkit/devtools/webconsole/test/browser_webconsole_shows_reqs_in_netmonitor.js create mode 100644 toolkit/devtools/webconsole/test/test-console-workers.html create mode 100644 toolkit/devtools/webconsole/test/test_commands_registration.html diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js index 1312ccee0e..fadb37fc41 100644 --- a/b2g/app/b2g.js +++ b/b2g/app/b2g.js @@ -856,6 +856,8 @@ pref("general.useragent.device_id", ""); // Make