Commit 135b74f
committed
[test] Don't use
This should avoid running into these issues:
```
request.allHeaders: Target page, context or browser has been closed
```
The sync `headers()` method is sufficient for these use cases:
> Note that this method does not return security-related headers,
> including cookie-related ones. You can use `request.allHeaders()` for
> complete list of headers that include cookie information.
Alternative for #86740.request.allHeaders() in sync page.on() callbacks1 parent 7cdb4d0 commit 135b74f
File tree
2 files changed
+10
-26
lines changed- test/e2e
- app-dir/app-basepath
- switchable-runtime
2 files changed
+10
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 78 | + | |
| 79 | + | |
94 | 80 | | |
95 | 81 | | |
96 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
639 | 638 | | |
640 | 639 | | |
641 | 640 | | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
647 | 645 | | |
648 | 646 | | |
649 | 647 | | |
| |||
0 commit comments