Skip to content

Commit 46e00c9

Browse files
committed
[Sync 129] small clean up items
1 parent cec461d commit 46e00c9

File tree

14 files changed

+22
-526
lines changed

14 files changed

+22
-526
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
global:
1313
- DISPLAY=':99.0'
1414
- YARN_VERSION='1.9.4'
15-
- MC_COMMIT='f7dc130bc082' # https://hg.mozilla.org/mozilla-central/shortlog
15+
- MC_COMMIT='78bc178af584' # https://hg.mozilla.org/mozilla-central/shortlog
1616

1717
notifications:
1818
slack:

assets/panel/moz.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ DIRS += [
99
'src',
1010
]
1111

12-
include('node-templates.mozbuild')
12+
include('../../shared/build/node-templates.mozbuild')
1313

1414
DevToolsModules(
1515
'panel.js',

assets/panel/panel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ DebuggerPanel.prototype = {
129129
},
130130

131131
selectSourceURL(url, line) {
132-
this._actions.selectSourceURL(url, { line });
132+
return this._actions.selectSourceURL(url, { line });
133133
},
134134

135135
selectSource(sourceId, line) {
136-
this._actions.selectSource(sourceId, { line });
136+
return this._actions.selectSource(sourceId, { line });
137137
},
138138

139139
getSourceByActorId(sourceId) {

assets/panel/prefs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ pref("devtools.debugger.file-search-regex-match", false);
5252
pref("devtools.debugger.project-directory-root", "");
5353
pref("devtools.debugger.skip-pausing", false);
5454
pref("devtools.debugger.logging", false);
55+
pref("devtools.debugger.map-scopes-enabled", false);
5556

5657
pref("devtools.debugger.features.wasm", true);
5758
pref("devtools.debugger.features.shortcuts", true);
5859
pref("devtools.debugger.features.root", true);
59-
pref("devtools.debugger.features.column-breakpoints", false);
60+
pref("devtools.debugger.features.column-breakpoints", true);
6061
pref("devtools.debugger.features.chrome-scopes", false);
6162
pref("devtools.debugger.features.map-scopes", true);
6263
pref("devtools.debugger.features.remove-command-bar-options", false);

bin/copy-assets.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const moz_build_tpl = `
2525
# License, v. 2.0. If a copy of the MPL was not distributed with this
2626
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
2727
28+
__dirs__
29+
2830
DevToolsModules(
2931
__FILES__
3032
)
@@ -101,14 +103,13 @@ function copySVGs({ projectPath, mcPath }) {
101103
path.join(mcImagesPath, `${file}`)
102104
)
103105
);
104-
105106
const mozBuildText = moz_build_tpl
107+
.replace('__dirs__', "DIRS += [\n 'sources',\n]")
106108
.replace('__FILES__',files.map(f => ` '${f}',`).join("\n"))
107109

108110
const mozBuildPath = path.join(mcPath, "devtools/client/debugger/new/images/moz.build");
109111
fs.writeFileSync(mozBuildPath, mozBuildText, "utf-8");
110112

111-
112113
const sourceFiles = fs.readdirSync(path.join(projectImagesPath, "sources"))
113114
.filter(file => file.match(/svg$/))
114115
.filter(file => usedSvgs.some(svg => svg.includes(file)));
@@ -120,12 +121,12 @@ function copySVGs({ projectPath, mcPath }) {
120121
)
121122
);
122123
const mozBuildSourceText = moz_build_tpl
124+
.replace('__dirs__', '')
123125
.replace('__FILES__',sourceFiles.map(f => ` '${f}',`).join("\n"))
124126

125127
const mozBuildSourcePath = path.join(mcPath, "devtools/client/debugger/new/images/sources/moz.build");
126128
fs.writeFileSync(mozBuildSourcePath, mozBuildSourceText, "utf-8");
127129

128-
129130
console.log("[copy-assets] - Svg.js");
130131
copyFile(
131132
path.join(projectPath, "/images/Svg.js"),

bin/copy-modules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ DIRS += [
5454
__DIRS__
5555
]
5656
57-
DebuggerModules(
57+
CompiledModules(
5858
__FILES__
5959
)
6060
`;

src/actions/breakpoints/tests/__snapshots__/syncing.spec.js.snap

-199
This file was deleted.

0 commit comments

Comments
 (0)