google / perfetto

Performance instrumentation and tracing for Android, Linux and Chrome (read-only mirror of https://android.googlesource.com/platform/external/perfetto/)
https://www.perfetto.dev
Apache License 2.0
2.78k stars 347 forks source link

Page keeps reloading when loading trace from localhost URL #888

Open s7tya opened 2 weeks ago

s7tya commented 2 weeks ago

As I mentioned in https://github.com/rust-lang/rustc-perf/pull/1967#issuecomment-2351902875, the page keeps reloading when trying to load a trace from a localhost URL. This only happens when isLocalhostTraceUrl is set to true.

Although this is a bit of an edge case because we’re modifying some URLs to allow CSP and embedding Perfetto within a project, I wanted to go ahead and report it anyway.

LalitMaganti commented 2 weeks ago

Just a note to others: I looked at this issue, I think we should add some additional metadata to the open_trace_in_ui flow to distinguish these traces from other POSTs from localhost.