@@ -19,7 +19,6 @@ function showHelp() {
19
19
console . log ( " --debug : show extra information about script run" ) ;
20
20
console . log ( " --show-text : render font in pages" ) ;
21
21
console . log ( " --no-headless : disable headless mode" ) ;
22
- console . log ( " --no-sandbox : disable sandbox mode" ) ;
23
22
console . log ( " --help : show this message then quit" ) ;
24
23
console . log ( " --tests-folder [PATH] : location of the .GOML tests folder" ) ;
25
24
console . log ( " --jobs [NUMBER] : number of threads to run tests on" ) ;
@@ -40,7 +39,6 @@ function parseOptions(args) {
40
39
"no_headless" : false ,
41
40
"jobs" : - 1 ,
42
41
"executable_path" : null ,
43
- "no_sandbox" : false ,
44
42
} ;
45
43
const correspondences = {
46
44
"--doc-folder" : "doc_folder" ,
@@ -49,7 +47,6 @@ function parseOptions(args) {
49
47
"--show-text" : "show_text" ,
50
48
"--no-headless" : "no_headless" ,
51
49
"--executable-path" : "executable_path" ,
52
- "--no-sandbox" : "no_sandbox" ,
53
50
} ;
54
51
55
52
for ( let i = 0 ; i < args . length ; ++ i ) {
@@ -80,9 +77,6 @@ function parseOptions(args) {
80
77
} else if ( arg === "--help" ) {
81
78
showHelp ( ) ;
82
79
process . exit ( 0 ) ;
83
- } else if ( arg === "--no-sandbox" ) {
84
- console . log ( "`--no-sandbox` is being used. Be very careful!" ) ;
85
- opts [ correspondences [ arg ] ] = true ;
86
80
} else if ( correspondences [ arg ] ) {
87
81
opts [ correspondences [ arg ] ] = true ;
88
82
} else {
@@ -203,6 +197,7 @@ async function main(argv) {
203
197
const args = [
204
198
"--variable" , "DOC_PATH" , opts [ "doc_folder" ] . split ( "\\" ) . join ( "/" ) ,
205
199
"--enable-fail-on-js-error" , "--allow-file-access-from-files" ,
200
+ "--no-sandbox" ,
206
201
] ;
207
202
if ( opts [ "debug" ] ) {
208
203
debug = true ;
@@ -211,9 +206,6 @@ async function main(argv) {
211
206
if ( opts [ "show_text" ] ) {
212
207
args . push ( "--show-text" ) ;
213
208
}
214
- if ( opts [ "no_sandbox" ] ) {
215
- args . push ( "--no-sandbox" ) ;
216
- }
217
209
if ( opts [ "no_headless" ] ) {
218
210
args . push ( "--no-headless" ) ;
219
211
headless = false ;
@@ -262,19 +254,6 @@ async function main(argv) {
262
254
console . log ( `Running ${ files . length } rustdoc-gui ...` ) ;
263
255
}
264
256
265
- // We catch this "event" to display a nicer message in case of unexpected exit (because of a
266
- // missing `--no-sandbox`).
267
- const exitHandling = ( ) => {
268
- if ( ! opts [ "no_sandbox" ] ) {
269
- console . log ( "" ) ;
270
- console . log (
271
- "`browser-ui-test` crashed unexpectedly. Please try again with adding `--test-args \
272
- --no-sandbox` at the end. For example: `x.py test tests/rustdoc-gui --test-args --no-sandbox`" ) ;
273
- console . log ( "" ) ;
274
- }
275
- } ;
276
- process . on ( "exit" , exitHandling ) ;
277
-
278
257
const originalFilesLen = files . length ;
279
258
const results = createEmptyResults ( ) ;
280
259
const status_bar = char_printer ( files . length ) ;
@@ -299,9 +278,6 @@ async function main(argv) {
299
278
Array . prototype . push . apply ( results . failed , new_results . failed ) ;
300
279
Array . prototype . push . apply ( results . errored , new_results . errored ) ;
301
280
302
- // We don't need this listener anymore.
303
- process . removeListener ( "exit" , exitHandling ) ;
304
-
305
281
if ( debug ) {
306
282
results . successful . sort ( by_filename ) ;
307
283
results . successful . forEach ( r => {
0 commit comments