mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
devtools: Use request destination as cause_type in NetworkEventActor (#38162)
The cause_type in NetworkEventActor was derived from a hard-coded pattern match on the request URL file extension. This patch replaces the hard-coded pattern matching with the Destination field of Request, to provide a better alignment with the Fetch specification. Testing: Updated unit tests. Fixes: #38151 --------- Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
parent
a52f9fd9a9
commit
0537c29064
5 changed files with 15 additions and 9 deletions
|
@ -1339,6 +1339,7 @@ fn test_fetch_with_devtools() {
|
|||
time_stamp: devhttprequests.1.time_stamp,
|
||||
connect_time: devhttprequests.1.connect_time,
|
||||
send_time: devhttprequests.1.send_time,
|
||||
destination: Destination::None,
|
||||
is_xhr: true,
|
||||
browsing_context_id: TEST_WEBVIEW_ID.0,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue