Skip to content

Instantly share code, notes, and snippets.

View jasonLaster's full-sized avatar

Jason Laster jasonLaster

View GitHub Profile
diff --git a/src/ui/setup/helpers.ts b/src/ui/setup/helpers.ts
index ece03f86c..3167a0224 100644
--- a/src/ui/setup/helpers.ts
+++ b/src/ui/setup/helpers.ts
@@ -51,6 +51,7 @@ export async function setupAppHelper(store: UIStore) {
prefs,
features,
asyncStore,
+ protocolVersion,
triggerEvent,
diff --git a/src/devtools/client/debugger/src/actions/source-actors.js b/src/devtools/client/debugger/src/actions/source-actors.js
index 3ebf949ff..a15dcfe4a 100644
--- a/src/devtools/client/debugger/src/actions/source-actors.js
+++ b/src/devtools/client/debugger/src/actions/source-actors.js
@@ -33,6 +33,29 @@ export function removeSourceActors(items) {
};
}
+export const loadSourceActorBreakpointHits = memoizeableAction("loadSourceActorBreakpointHits", {
+ createKey: ({ id, line }) => `${id}:${line}`,
diff --git a/package-lock.json b/package-lock.json
index a2564800a..1c0d51731 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2123,7 +2123,7 @@
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz",
"integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==",
- "dev": true,
+ "devOptional": true,
diff --git a/src/devtools/client/debugger/src/actions/sources/newSources.js b/src/devtools/client/debugger/src/actions/sources/newSources.js
index 95419d7a1..dbc3e42fa 100644
--- a/src/devtools/client/debugger/src/actions/sources/newSources.js
+++ b/src/devtools/client/debugger/src/actions/sources/newSources.js
@@ -116,80 +116,7 @@ function restoreBlackBoxedSources(cx, sources) {
};
}
-export function newQueuedSources(sourceInfo) {
- return async ({ dispatch }) => {
diff --git a/src/devtools/client/debugger/src/components/App.js b/src/devtools/client/debugger/src/components/App.js
index 71049b01..505f103f 100644
--- a/src/devtools/client/debugger/src/components/App.js
+++ b/src/devtools/client/debugger/src/components/App.js
@@ -298,6 +298,7 @@ function DebuggerLoader(props) {
useEffect(() => {
(async () => {
try {
+ await new Promise(r => setTimeout(r, 10_000));
await waitForEditor();
diff --git a/src/ui/actions/network.ts b/src/ui/actions/network.ts
index 908fdbf2..3792fb05 100644
--- a/src/ui/actions/network.ts
+++ b/src/ui/actions/network.ts
@@ -9,6 +9,14 @@ type NewNetworkRequestsAction = {
export type NetworkAction = NewNetworkRequestsAction;
+export function fetchFrames(point: string) {
+ return async ({ dispatch, threadFront }) => {
diff --git a/src/ui/actions/network.ts b/src/ui/actions/network.ts
index 908fdbf2..3792fb05 100644
--- a/src/ui/actions/network.ts
+++ b/src/ui/actions/network.ts
@@ -9,6 +9,14 @@ type NewNetworkRequestsAction = {
export type NetworkAction = NewNetworkRequestsAction;
+export function fetchFrames(point: string) {
+ return async ({ dispatch, threadFront }) => {
diff --git a/test/run.js b/test/run.js
index 15ef0c2c..c2002a84 100644
--- a/test/run.js
+++ b/test/run.js
@@ -9,6 +9,50 @@ const Manifest = require("./manifest");
const { findGeckoPath, createTestScript, tmpFile, spawnChecked, defer } = require("./utils");
const { listAllRecordings } = require("@recordreplay/recordings-cli");
+function isProductionEnvironment() {
+ // we should probably be able to check an env var to see if we're in github ci
diff --git a/src/devtools/client/webconsole/actions/input.js b/src/devtools/client/webconsole/actions/input.js
index ea4b7e1e..78866b00 100644
--- a/src/devtools/client/webconsole/actions/input.js
+++ b/src/devtools/client/webconsole/actions/input.js
@@ -27,6 +27,8 @@ async function getPause(toolbox) {
}
async function dispatchExpression(dispatch, pause, expression) {
+ // This is where we start handling new evaluations
+
diff --git a/src/protocol/graphics.ts b/src/protocol/graphics.ts
index 1fc24c23..7159fdcf 100644
--- a/src/protocol/graphics.ts
+++ b/src/protocol/graphics.ts
@@ -29,66 +29,6 @@ interface Timed {
time: number;
}
-// Given a sorted array of items with "time" properties, find the index of
-// the most recent item at or preceding a given time.