Improve the error message when browser fails to load profiles from localhost due to permission issues
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
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:
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:
Then you can reload the page and it should work.
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 that fixed it, thanks! Feel free to close this unless you want to keep it open to revisit the error message.
Great, let's keep this issue for improving the error message. I rephrased the title.