Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Laster jasonLaster

  • Mozilla
  • New York City
View GitHub Profile
View foo.diff
diff --git a/metrics.js b/metrics.js
index cf01fff..c09fa3c 100644
--- a/metrics.js
+++ b/metrics.js
@@ -99,6 +99,7 @@ function computeErrorMetrics(platform) {
function computeControllerRequestMetrics() {
const now = Date.now();
const metricsControllerMap = {};
+ const controllerRequestsMap = {};
View foo.diff
diff --git a/metrics.js b/metrics.js
index e9fbfac..b49715a 100644
--- a/metrics.js
+++ b/metrics.js
@@ -96,16 +96,59 @@ function computeErrorMetrics(platform) {
return metrics;
}
+function computeControllerRequests() {
+ const metricsControllerMap = {};
View foo.diff
diff --git a/src/devtools/client/webconsole/components/Output/Message.js b/src/devtools/client/webconsole/components/Output/Message.js
index d7b51742..66199aa7 100644
--- a/src/devtools/client/webconsole/components/Output/Message.js
+++ b/src/devtools/client/webconsole/components/Output/Message.js
@@ -11,7 +11,6 @@ const { actions } = require("ui/actions/index");
const { MESSAGE_TYPE } = require("devtools/client/webconsole/constants");
const { MessageIndent } = require("devtools/client/webconsole/components/Output/MessageIndent");
const MessageIcon = require("devtools/client/webconsole/components/Output/MessageIcon");
-const { CloseButton } = require("devtools/client/debugger/src/components/shared/Button");
const FrameView = createFactory(require("devtools/client/shared/components/Frame"));
View foo.diff
diff --git a/src/protocol/socket.ts b/src/protocol/socket.ts
index ae5d602c..044b3f10 100644
--- a/src/protocol/socket.ts
+++ b/src/protocol/socket.ts
@@ -1,5 +1,6 @@
import { defer, makeInfallible } from "./utils";
import { ProtocolClient } from "@recordreplay/protocol";
+import { setExpectedError } from "ui/actions/session";
interface Message {
View foo.diff
diff --git a/src/devtools/client/inspector/actions/index.ts b/src/devtools/client/inspector/actions/index.ts
index 679c55eb..a9737804 100644
--- a/src/devtools/client/inspector/actions/index.ts
+++ b/src/devtools/client/inspector/actions/index.ts
@@ -1,4 +1,10 @@
import { Action } from "redux";
+import { selectors } from "ui/reducers";
+
+function setupInspector(store) {
+ ThreadFront.on("paused", () => store.dispatch(onPaused()));
View 2020-12-31T19_25_38_287Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
2 info using npm@6.14.9
3 info using node@v14.15.3
4 verbose npm-session 6d553cd57cd48967
5 verbose publish [ '.' ]
6 info lifecycle @recordreplay/protocol@0.2.1~prepublish: @recordreplay/protocol@0.2.1
7 info lifecycle @recordreplay/protocol@0.2.1~prepare: @recordreplay/protocol@0.2.1
8 verbose lifecycle @recordreplay/protocol@0.2.1~prepare: unsafe-perm in lifecycle true
9 verbose lifecycle @recordreplay/protocol@0.2.1~prepare: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/jasonlaster/src/replay/protocol/node_modules/.bin:/usr/local/bin:/Users/jasonlaster/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/jasonlaster/src/dotfiles/bin:./node_modules/.bin:/Users/jasonlaster/.yarn/bin
View foo.diff
diff --git a/src/devtools/client/debugger/src/actions/breakpoints/index.js b/src/devtools/client/debugger/src/actions/breakpoints/index.js
index 9930d484..7eec265a 100644
--- a/src/devtools/client/debugger/src/actions/breakpoints/index.js
+++ b/src/devtools/client/debugger/src/actions/breakpoints/index.js
@@ -184,13 +184,18 @@ export function addBreakpointAtLine(cx, line, shouldLog = false, disabled = fals
};
const options = {};
- const file = source.url.split("/").pop();
- options.logValue = `"${file}:${line}"`;
View foo.diff
diff --git a/src/devtools/client/webconsole/panel.js b/src/devtools/client/webconsole/panel.js
index 90b4b753..a7c27d01 100644
--- a/src/devtools/client/webconsole/panel.js
+++ b/src/devtools/client/webconsole/panel.js
@@ -6,21 +6,4 @@
import EventEmitter from "devtools/shared/event-emitter";
import { initOutputSyntaxHighlighting } from "devtools/client/webconsole/utils/syntax-highlighted";
-
-export class WebConsolePanel {
View foo.diff
diff --git a/.gitignore b/.gitignore
index 39213d1..75ec0f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,3 @@
node_modules
js
-ts/protocol
-ts/client/client.ts
-ts/client/generic.ts
View foo.diff
diff --git a/src/devtools/client/inspector/computed/components/ComputedApp.tsx b/src/devtools/client/inspector/computed/components/ComputedApp.tsx
index a5675fc0..f445dfe4 100644
--- a/src/devtools/client/inspector/computed/components/ComputedApp.tsx
+++ b/src/devtools/client/inspector/computed/components/ComputedApp.tsx
@@ -27,17 +27,7 @@ function isHidden(property: ComputedPropertyState, search: string, showBrowserSt
return false;
}
-function ComputedApp(props: PropsFromRedux) {
- const {
You can’t perform that action at this time.