Bug 1288964 - Restore reload buttons in canvas and web audio. r=me, a=ritu
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 02 Aug 2016 18:06:10 -0500
changeset 347581 307fe134b473938131cb0f28db52cf371883f663
parent 347580 291a9823eb6a705207b738ddb79b7b86bddc4db8
child 347582 5369bff4fd97e66e62a33aa2d6aea84e3c9a0498
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, ritu
bugs1288964
milestone50.0a2
Bug 1288964 - Restore reload buttons in canvas and web audio. r=me, a=ritu MozReview-Commit-ID: 2ZKDlt8teTL
devtools/server/actors/canvas.js
devtools/server/actors/webaudio.js
--- a/devtools/server/actors/canvas.js
+++ b/devtools/server/actors/canvas.js
@@ -137,16 +137,19 @@ var CanvasActor = exports.CanvasActor = 
     this.finalize();
   },
 
   /**
    * Starts listening for function calls.
    */
   setup: function ({ reload }) {
     if (this._initialized) {
+      if (reload) {
+        this.tabActor.window.location.reload();
+      }
       return;
     }
     this._initialized = true;
 
     this._callWatcher = new CallWatcherActor(this.conn, this.tabActor);
     this._callWatcher.onCall = this._onContentFunctionCall;
     this._callWatcher.setup({
       tracedGlobals: CANVAS_CONTEXTS,
--- a/devtools/server/actors/webaudio.js
+++ b/devtools/server/actors/webaudio.js
@@ -446,16 +446,19 @@ var WebAudioActor = exports.WebAudioActo
     // the first time, to ultimately fire `start-context` event
     this._firstNodeCreated = false;
 
     // Clear out stored nativeIDs on reload as we do not want to track
     // AudioNodes that are no longer on this document.
     this._nativeToActorID.clear();
 
     if (this._initialized) {
+      if (reload) {
+        this.tabActor.window.location.reload();
+      }
       return;
     }
 
     this._initialized = true;
 
     this._callWatcher = new CallWatcherActor(this.conn, this.tabActor);
     this._callWatcher.onCall = this._onContentFunctionCall;
     this._callWatcher.setup({