Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

Tout copier en temps que HAR not working

more options

Hello,

In the DevToolbox, the “Copy all as HAR” and “Create file...” functions are not working. It seems that in both cases, only empty space is placed in the clipboard and in the file (this has been happening since the last update).

Thank you in advance.

Hello, In the DevToolbox, the “Copy all as HAR” and “Create file...” functions are not working. It seems that in both cases, only empty space is placed in the clipboard and in the file (this has been happening since the last update). Thank you in advance.

Alle svar (10)

more options

... and is the same for Firefox Dev I also tested it on another computer.

more options

Are you able to copy text/images from the page normally, the problem is only in the dev tools?

more options

Hello Yes, I've tested everything and everything is working properly. It works for you. Ps: Please note, I may have mistranslated, but I am referring to the "web developer tools" because the "browser toolbox" work fine

Ændret af Zillab den

more options

Am I really the only one with this problem?

more options

Yes, I can see the problem on this page. After opening the Network Monitor (Ctrl+Shift+E) and reloading the page:

  • right-click > Save As HAR seems to work (for a single request)
  • right-click > Save All As HAR gives me a zero-byte file
  • right-click > Copy value > Copy All As HAR puts "" on the clipboard

If I go to a simpler page (such as my pages at https://www.userchrome.org/ and https://www.jeffersonscher.com/photos/Maui07/index.php), it works fine. So it seems related to the request and/or response data.

In the Browser Console (Ctrl+Shift+J), I do see an error message related to Save All As HAR on this page:

TypeError: cyclic object value ... har-exporter.js:266:15
  stringify resource://devtools/client/netmonitor/src/har/har-exporter.js:264
  fetchHarData resource://devtools/client/netmonitor/src/har/har-exporter.js:215
  stringify resource://devtools/client/netmonitor/src/har/har-exporter.js:266
  fetchHarData resource://devtools/client/netmonitor/src/har/har-exporter.js:215

Line 264 uses the standard JSON.stringify() function, and Line 266 reports errors to the console:

https://searchfox.org/firefox-release/source/devtools/client/netmonitor/src/har/har-exporter.js#256

The error indicates that "object references were found in JSON" (Cyclic_object_value on MDN). So something may be wrong in the way Firefox is constructing the HAR object.

The usual way to discover the critical change would be to use the Mozregression tool. If you or someone else has time: https://mozilla.github.io/mozregression/

Ændret af jscher2000 - Support Volunteer den

more options

Thank you very much for your reply and information. Yes, these two web pages work for me too. But do you think this is a problem that Mozilla will resolve?

more options

As a first step, I posted a link to this thread on the Discourse forum for the DevTools team. Hopefully someone there will be able to take this on.

https://discourse.mozilla.org/t/typeerror-cyclic-object-value-in-har-exporter-js/146385

more options

Based on subsequent discussion, this appears to be a problem with requests satisfied from the cache. If you do not need to test performance with caching, you can disable the cache when the dev tools are open using a checkbox in the Network Monitor:

more options

Hello, Yes, it works. Thank you!

Ps: Just out of curiosity. On the page where I reported the bug, there is a link to the source of the js file that needs to be corrected... Does this mean that it will be done for the next Firefox update, or is it possible to apply these kinds of changes yourself in these internal files? Thank you in advance.

Ændret af Zillab den

more options

I looked at the related bug long enough to see that it might be related to cached files, but I didn't try to understand what would need to be changed. Typically, changes are tested in the Nightly and Developer Edition releases for two months before rolling out in the regular release, but critical fixes that don't affect a lot of other things often are rolled out more quickly.

Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.