profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Improve the error message when browser fails to load profiles from localhost due to permission issues

Open mempirate opened this issue 1 month ago • 4 comments

Description

I use Firefox Profiler with samply, and to view the results in firefox profiler, I port forward the samply server to localhost. This used to work no problem until around 2 weeks ago. Now, when I do this, I get the following error:


Firefox Profiler

Safari cannot import local profiles

Due to a specific limitation in Safari, ⁨Firefox Profiler⁩ is unable to import profiles from the local machine in this browser. Please open this page in ⁨Firefox⁩ or Chrome instead.


Which is weird because I'm doing this on Chrome (Version 142.0.7444.162 (Official Build) (arm64))

┆Issue is synchronized with this Jira Task

mempirate avatar Nov 25 '25 09:11 mempirate

It looks like Chrome has added a "Local network access" permission. And it asks you when you first navigate to the profiler url with a localhost in it. Here's how it looks:

Image

You need to click allow, so profiler can get the profile from localhost. Can you check if you clicked allow for this permission in profiler.firefox.com ?

If you clicked "block" before, you might need to go to this panel and click on the switch to turn the settings on:

Image

Then you can reload the page and it should work.

canova avatar Nov 25 '25 11:11 canova

But also I think we should make this error more generic, since this is not a Safari only thing anymore. I believe Firefox added a similar permission.

canova avatar Nov 25 '25 11:11 canova

@canova that fixed it, thanks! Feel free to close this unless you want to keep it open to revisit the error message.

mempirate avatar Nov 26 '25 08:11 mempirate

Great, let's keep this issue for improving the error message. I rephrased the title.

canova avatar Nov 27 '25 13:11 canova