Skip to content

Commit 3850701

Browse files
committed
Bug 1891110 - [devtools] Ignore requests for non-test related network events in browser_resources_network_events_parent_process.js r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D236340 UltraBlame original commit: a3961538958f8f0e009ff4fd9d00fc08b9881362
1 parent 568171a commit 3850701

File tree

1 file changed

+60
-44
lines changed

1 file changed

+60
-44
lines changed

devtools/shared/commands/resource/tests/browser_resources_network_events_parent_process.js

+60-44
Original file line numberDiff line numberDiff line change
@@ -276,49 +276,6 @@ png
276276
+
277277
uuid
278278
;
279-
/
280-
/
281-
Loading
282-
the
283-
content
284-
page
285-
might
286-
also
287-
trigger
288-
priviledge
289-
image
290-
requests
291-
from
292-
the
293-
firefox
294-
UI
295-
this
296-
seems
297-
to
298-
/
299-
/
300-
happen
301-
when
302-
a
303-
new
304-
tab
305-
is
306-
created
307-
for
308-
the
309-
page
310-
.
311-
const
312-
ignoreRequestPatterns
313-
=
314-
"
315-
file
316-
:
317-
/
318-
/
319-
/
320-
"
321-
;
322279
add_task
323280
(
324281
async
@@ -431,16 +388,75 @@ NETWORK_EVENT
431388
{
432389
if
433390
(
391+
!
434392
resource
435393
.
436394
url
437395
.
438396
startsWith
439397
(
440-
ignoreRequestPatterns
398+
"
399+
https
400+
:
401+
/
402+
/
403+
example
404+
"
441405
)
442406
)
443407
{
408+
/
409+
/
410+
Skip
411+
all
412+
URLs
413+
which
414+
don
415+
'
416+
t
417+
start
418+
with
419+
https
420+
:
421+
/
422+
/
423+
example
424+
to
425+
avoid
426+
/
427+
/
428+
pollution
429+
from
430+
newtab
431+
file
432+
urls
433+
etc
434+
.
435+
.
436+
.
437+
info
438+
(
439+
"
440+
Skipping
441+
network
442+
event
443+
resource
444+
not
445+
starting
446+
with
447+
https
448+
:
449+
/
450+
/
451+
example
452+
:
453+
"
454+
+
455+
resource
456+
.
457+
url
458+
)
459+
;
444460
return
445461
;
446462
}

0 commit comments

Comments
 (0)