Bug 1574190 - Add watchpoints trait to browsingContextTargetPrototype and remove from RootActor r=jlast
authorMiriam <bmiriam1230@gmail.com>
Mon, 09 Sep 2019 17:30:31 +0000
changeset 492268 cc3c6d62c9e6e763628864c81313fb39e3a201f8
parent 492267 7ade202cf20b6fe4f14f5fb89a15cbe17f20cbc5
child 492364 bdb64cf16b68c4a7212ba16aef425bce66d8f4ca
child 492365 ccf8a603df023434f54011c5101d8ba07d529773
push id36551
push userrgurzau@mozilla.com
push dateMon, 09 Sep 2019 21:43:02 +0000
treeherdermozilla-central@cc3c6d62c9e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1574190
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1574190 - Add watchpoints trait to browsingContextTargetPrototype and remove from RootActor r=jlast Differential Revision: https://phabricator.services.mozilla.com/D45206
devtools/server/actors/root.js
devtools/server/actors/targets/browsing-context.js
--- a/devtools/server/actors/root.js
+++ b/devtools/server/actors/root.js
@@ -177,18 +177,16 @@ RootActor.prototype = {
     // `front.startProfiler`. This is an optional parameter but it will throw an error if
     // the profiled Firefox doesn't accept it.
     perfActorVersion: 1,
     // Supports native log points and modifying the condition/log of an existing
     // breakpoints. Fx66+
     nativeLogpoints: true,
     // support older browsers for Fx69+
     hasThreadFront: true,
-    // Support watchpoints in the server for Fx71+
-    watchpoints: true,
   },
 
   /**
    * Return a 'hello' packet as specified by the Remote Debugging Protocol.
    */
   sayHello: function() {
     return {
       from: this.actorID,
--- a/devtools/server/actors/targets/browsing-context.js
+++ b/devtools/server/actors/targets/browsing-context.js
@@ -277,16 +277,18 @@ const browsingContextTargetPrototype = {
       reconfigure: true,
       // Supports frame listing via `listFrames` request and `frameUpdate` events
       // as well as frame switching via `switchToFrame` request
       frames: true,
       // Supports the logInPage request.
       logInPage: true,
       // Supports requests related to rewinding.
       canRewind,
+      // Supports watchpoints in the server for Fx71+
+      watchpoints: true,
     };
 
     this._workerTargetActorList = null;
     this._workerTargetActorPool = null;
     this._frameDescriptorActorPool = null;
     this._onWorkerTargetActorListChanged = this._onWorkerTargetActorListChanged.bind(
       this
     );