Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created November 12, 2020 20:07
Show Gist options
  • Select an option

  • Save jasonLaster/6d36362144cc172bf397d6fc072a3364 to your computer and use it in GitHub Desktop.

Select an option

Save jasonLaster/6d36362144cc172bf397d6fc072a3364 to your computer and use it in GitHub Desktop.
diff --git a/README.txt b/README.txt
index 6370ac2679aa..a1f388c02fbf 100644
--- a/README.txt
+++ b/README.txt
@@ -27,3 +27,5 @@ install directory without having to rebuild everything, try:
```
rm -rf rr-opt/dist/Replay.app
```
+
+
diff --git a/devtools/server/actors/replay/connection.js b/devtools/server/actors/replay/connection.js
index 10653c994a11..a161f8565db7 100644
--- a/devtools/server/actors/replay/connection.js
+++ b/devtools/server/actors/replay/connection.js
@@ -180,6 +180,8 @@ async function addRecordingResource(recordingId, url) {
const text = await response.text();
const resource = getResourceInfo(url, text);
+
+ // getLoggedInUser
await sendCommand(
gMainChannelId,
"Internal.addRecordingResource",
diff --git a/devtools/server/actors/replay/module.js b/devtools/server/actors/replay/module.js
index 161f3ae6ffba..23b43553e8b5 100644
--- a/devtools/server/actors/replay/module.js
+++ b/devtools/server/actors/replay/module.js
@@ -249,11 +249,14 @@ gDebugger.onNewScript = (script) => {
const recordingId = RecordReplayControl.recordingId();
if (recordingId) {
const { url, sourceMapURL } = script.source;
- Services.cpmm.sendAsyncMessage("RecordReplayGeneratedSourceWithSourceMap", {
- recordingId,
- url,
- sourceMapURL,
- });
+ Services.cpmm.sendAsyncMessage(
+ "RecordReplayGeneratedSourceWithSourceMap",
+ {
+ recordingId,
+ url,
+ sourceMapURL,
+ }
+ );
}
}
@@ -387,6 +390,7 @@ function eventListener(info) {
}
function SendRecordingFinished(recordingId) {
+ // here's the recording data...
const document = getWindow().document;
const data = {
recordingId,
@@ -1052,7 +1056,9 @@ function createProtocolObject(objectId, level) {
const obj = getObjectFromId(objectId);
const className = obj.class;
- RecordReplayControl.annotate(`CreateProtocolObject ${objectId} ${className} ${level}`);
+ RecordReplayControl.annotate(
+ `CreateProtocolObject ${objectId} ${className} ${level}`
+ );
let preview;
if (level != "none") {
preview = new ProtocolObjectPreview(obj, level).fill();
@@ -1139,7 +1145,11 @@ ProtocolObjectPreview.prototype = {
this.overflow = true;
return false;
}
- if (!force && this.level == "canOverflow" && this.numItems >= NumItemsBeforeOverflow) {
+ if (
+ !force &&
+ this.level == "canOverflow" &&
+ this.numItems >= NumItemsBeforeOverflow
+ ) {
this.overflow = true;
return false;
}
@@ -1171,7 +1181,9 @@ ProtocolObjectPreview.prototype = {
return;
}
try {
- RecordReplayControl.annotate(`PreviewCallGetter ${name} ${this.numItems}`);
+ RecordReplayControl.annotate(
+ `PreviewCallGetter ${name} ${this.numItems}`
+ );
const value = createProtocolValueRaw(this.raw[name]);
this.getterValues.set(name, { name, ...value });
} catch (e) {
diff --git a/devtools/startup/DevToolsStartup.jsm b/devtools/startup/DevToolsStartup.jsm
index 2a241c5c67f0..d0e39ef427fa 100644
--- a/devtools/startup/DevToolsStartup.jsm
+++ b/devtools/startup/DevToolsStartup.jsm
@@ -1444,6 +1444,7 @@ function saveRecordingInDB(description) {
);
const body = {
+ // Here's the user data
user_id: user.id,
recording_id: description.recordingId,
id: description.recordingId,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment