New issue
Advanced search Search tips

Issue 881327 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 28
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Imported HAR shows incorrect type

Reported by tim.hil...@audacia.co.uk, Sep 6

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36

Steps to reproduce the problem:
1. Open dev tools and load a page.
2. In network tab of dev tools, right click an entry and Save as HAR with content.
3. Drag the saved HAR file onto the network tab.

What is the expected behavior?
The data in the network tab looks the same.

What went wrong?
All XHR requests are showing as scripts. The data is all there, but it filters incorrectly (so filtering to XHR after loading from a HAR file always gives zero results, even if the HAR includes some XHRs).

Did this work before? No 

Chrome version: 69.0.3497.81  Channel: stable
OS Version: 10.0
Flash Version:
 
har loaded incorrectly.jpg
84.0 KB View Download
Labels: Needs-Triage-M69
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback
Unable to reproduce the issue on windows 10 using chrome reported version -69.0.3497.81 & canary-71.0.3550.0 as per steps in C#0.Empty network  page is displayed once we drag saved HAR file to network tab.

Please find the attached screencast for reference & let us know if we miss any steps to reproduce the issue from our end.
Thanks.!


881327-Win.mp4
4.4 MB View Download
Thanks for looking into this. Your reproduction steps are correct but I think `chrome://version` must be a special case of some sort, as I've tried it and the HAR file is almost empty. I would suggest trying to replicate on a normal webpage. This is one I happened to notice makes several XHRs - https://www.w3schools.com/xml/xml_http.asp. I've attached a screen recording in case it helps - as you can see, there are numerous XHRs but when the HAR is loaded it appears that there were none. I assume this is because they are being saved/loaded back as the wrong content type. (In my original screenshot, you can see they were available in the JS section, rather than the XHR section.)
881327 repro steps.mp4
2.9 MB View Download
Project Member

Comment 4 by sheriffbot@chromium.org, Sep 13

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: caseq@chromium.org
Components: -Platform>DevTools Platform>DevTools>Network
Owner: hhli@chromium.org
Status: Assigned (was: Unconfirmed)
Owner: jarhar@chromium.org
Project Member

Comment 7 by bugdroid1@chromium.org, Nov 28

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7e6c3233fc2f2eeb738aba352c360020dd40b9f3

commit 7e6c3233fc2f2eeb738aba352c360020dd40b9f3
Author: Joey Arhar <jarhar@chromium.org>
Date: Wed Nov 28 01:57:06 2018

[DevTools] Add ResourceType to HAR exports

Bug:  881327 
Change-Id: I7e9f50f598210e75d613561855dd4bde95ebaa0f
Reviewed-on: https://chromium-review.googlesource.com/c/1342761
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611505}
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/renderer/devtools/front_end/common/ResourceType.js
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/renderer/devtools/front_end/har_importer/HARFormat.js
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/renderer/devtools/front_end/har_importer/HARImporter.js
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/renderer/devtools/front_end/sdk/HARLog.js
[add] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/web_tests/http/tests/devtools/har-importer-expected.txt
[add] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/web_tests/http/tests/devtools/har-importer.js
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/web_tests/http/tests/devtools/resource-har-conversion-expected.txt
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/web_tests/http/tests/devtools/resource-har-headers-expected.txt
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/web_tests/http/tests/devtools/resource-har-headers.js
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/web_tests/http/tests/devtools/resource-parameters-expected.txt
[modify] https://crrev.com/7e6c3233fc2f2eeb738aba352c360020dd40b9f3/third_party/blink/web_tests/http/tests/devtools/resource-parameters-ipv6-expected.txt

Status: Fixed (was: Assigned)
HAR exports will now contain extra information to include the type, so when you import a new one the correct type will be shown. The change is not in canary yet but it will be soon.

Sign in to add a comment