Bug 821610 - Update thread-client to work with xhr breakpoints
☠☠ backed out by 6ac06a913b07 ☠ ☠
authorAnnshul Malik <malikanshul29@gmail.com>
Fri, 12 Oct 2018 14:57:03 +0000
changeset 496637 e7f9ba7e8ac2707c9ad1caf569ad134635caec1e
parent 496636 11fb0d6e940adb9c0a1efd00915eff74c5b4ae46
child 496638 e7c817964e523db7d5326b2da88f4601dc99f2b9
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs821610
milestone64.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 821610 - Update thread-client to work with xhr breakpoints Differential Revision: https://phabricator.services.mozilla.com/D8544
devtools/shared/client/thread-client.js
--- a/devtools/shared/client/thread-client.js
+++ b/devtools/shared/client/thread-client.js
@@ -694,16 +694,40 @@ ThreadClient.prototype = {
     this.client._eventsEnabled && this.emit(packet.type, packet);
   },
 
   getLastPausePacket: function() {
     return this._lastPausePacket;
   },
 
   /**
+   * Requests to set XHR breakpoint
+   * @param string path 
+   *        pause when url contains `path`
+   * @param string method 
+   *        pause when method of request is `method`
+   */
+  setXHRBreakpoint: DebuggerClient.requester({
+    type: "setXHRBreakpoint",
+    path: arg(0),
+    method: arg(1)
+  }),
+
+  /**
+   * Request to remove XHR breakpoint
+   * @param string path 
+   * @param string method 
+   */
+  removeXHRBreakpoint: DebuggerClient.requester({
+    type: "removeXHRBreakpoint",
+    path: arg(0),
+    method: arg(1)
+  }),
+
+  /**
    * Return an EnvironmentClient instance for the given environment actor form.
    */
   environment: function(form) {
     return new EnvironmentClient(this.client, form);
   },
 
   /**
    * Return an instance of SourceClient for the given source actor form.