Skip to content

Instantly share code, notes, and snippets.

View jasonLaster's full-sized avatar

Jason Laster jasonLaster

View GitHub Profile
diff --git a/devtools/server/actors/replay/module.js b/devtools/server/actors/replay/module.js
index 67b5a6639d07..eb83b8dae475 100644
--- a/devtools/server/actors/replay/module.js
+++ b/devtools/server/actors/replay/module.js
@@ -358,6 +358,25 @@ function eventListener(info) {
RecordReplayControl.onEvent(event, info.phase == "pre");
}
}
+function getWindowAsImageData(win) {
+ const canvas = win.document.createElementNS(
diff --git a/src/dispatch/control/controlInfo.js b/src/dispatch/control/controlInfo.js
index 286e463..b89e9e6 100644
--- a/src/dispatch/control/controlInfo.js
+++ b/src/dispatch/control/controlInfo.js
@@ -34,15 +34,16 @@ class ControlInfo {
// Unique ID for this controller.
this.id = uuid();
this.gControl.set(this.id, this);
- log(`CreateControl ${this.id}`);
-
2020-10-08T21:13:53.377Z Dispatcher initializing.
2020-10-08T21:18:30.393Z NewConnection c4d793c9-3458-4f4d-a9e7-7872a687829e
2020-10-08T21:18:30.443Z HandleMessage Start 1 undefined undefined Internal.getAssertionFilters
2020-10-08T21:18:30.445Z HandleMessage End 1 Internal.getAssertionFilters
2020-10-08T21:18:53.111Z MemoryUsage {"rss":33726464,"heapTotal":5500928,"heapUsed":3743328,"external":1403016,"arrayBuffers":9902}
2020-10-08T21:19:05.788Z NewConnection 08abe355-d3ed-49c1-aee3-0ff48df0d665
2020-10-08T21:19:05.792Z HandleMessage Start 1 undefined undefined Internal.createRecording
2020-10-08T21:19:05.793Z CreateRecording 8b60c399-ab0f-4bf7-9a0e-007b1424c5bf
2020-10-08T21:19:05.794Z HandleMessage End 1 Internal.createRecording
2020-10-08T21:19:06.748Z HandleMessage Start 2 undefined undefined Recording.processRecording
diff --git a/src/ui/components/shared/Sharing.js b/src/ui/components/shared/Sharing.js
index d7ca3e17..b1e5ca00 100644
--- a/src/ui/components/shared/Sharing.js
+++ b/src/ui/components/shared/Sharing.js
@@ -152,13 +152,7 @@ function PermissionsList({ data, recordingId, refetch }) {
}
function MutationStatus({ owner, inputValue, recordingId, setInProgress, setInputValue, refetch }) {
- const { data, loading, error } = useQuery(GET_COLLABORATOR_ID, {
- variables: { email: inputValue },
diff --git a/devtools/startup/DevToolsStartup.jsm b/devtools/startup/DevToolsStartup.jsm
index 830b9ae1f7c6..93f8262c38db 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);
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);
commit a921ed8ca38f5fbbf016fc4a1c0cc574ca2e5641
Author: Jason Laster <jason.laster.11@gmail.com>
Date: Mon Sep 21 18:40:48 2020 -0700
small fix
diff --git a/src/ui/components/DevTools.js b/src/ui/components/DevTools.js
index de8e4c3c..008bd11a 100644
--- a/src/ui/components/DevTools.js
+++ b/src/ui/components/DevTools.js
diff --git a/.prettierrc b/.prettierrc
index 5a49d93..e3d36e1 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -5,5 +5,5 @@
"tabWidth": 2,
"trailingComma": "es5",
"arrowParens": "avoid",
- "printWidth": 80
+ "printWidth": 90
diff --git a/test/run.js b/test/run.js
index 17d165c1..7657aa8c 100644
--- a/test/run.js
+++ b/test/run.js
@@ -10,29 +10,28 @@ const url = require("url");
const minimist = require("minimist");
const Manifest = require("./manifest.json");
+let count = 1;
+const patterns = [];
diff --git a/src/ui/actions/metadata.js b/src/ui/actions/metadata.js
index ad775723..f0c4140c 100644
--- a/src/ui/actions/metadata.js
+++ b/src/ui/actions/metadata.js
@@ -179,5 +179,12 @@ export function updateUser(authUser = {}) {
const updatedUser = { id, avatarID, picture, name };
dispatch({ type: "register_user", user: updatedUser });
+
+ if (authUser) {