Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created September 23, 2020 20:00
Show Gist options
  • Select an option

  • Save jasonLaster/1b6e9f57ffc3d87cc98a6c60ebf01777 to your computer and use it in GitHub Desktop.

Select an option

Save jasonLaster/1b6e9f57ffc3d87cc98a6c60ebf01777 to your computer and use it in GitHub Desktop.
diff --git a/devtools/startup/DevToolsStartup.jsm b/devtools/startup/DevToolsStartup.jsm
index 830b9ae1f7c6..18ab511339db 100644
--- a/devtools/startup/DevToolsStartup.jsm
+++ b/devtools/startup/DevToolsStartup.jsm
@@ -713,8 +713,12 @@ DevToolsStartup.prototype = {
const channel = new WebChannel("record-replay", urlForWebChannel);
channel.listen((id, message) => {
- const { user } = message;
- saveRecordingUser(user);
+ if (message.type == "update-user") {
+ const { user } = message;
+ saveRecordingUser(user);
+ }
+ if (message.type == "record-url") {
+ }
});
}
},
@@ -1649,6 +1653,8 @@ function setNextRecordingURLCallback(callback) {
function reloadAndRecordTab(gBrowser) {
let url = gBrowser.currentURI.spec;
+ // this is all here
+
if (gNextRecordingURLCallback) {
gNextRecordingURLCallback(url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment