Comments (14)
I think it would be a requirement for fixing #37, since in that case you would want to know the actual URL of each redirect.
from navigation-timing.
@toddreifsteck if we wanted to align RT and NT in this regard, and report the URL in both.. is that something Edge would be able to align with?
from navigation-timing.
We should reach out to the various Analytics vendors who are part of the group as well as internal Analytics folks at our various companies.
IE11 and Edge 12-15 currently have shipped with this name='document' behavior for Navigation Timing 2. Although I have no pushback on the value of this update, I have concerns about breaking this behavior given years of a shipping implementation. If we choose to make this change, we should be clear that we are potentially breaking existing web code and should have some due diligence.
@spanicker Perhaps Chrome can ship with name==URL and add Telemetry for getEntriesByName('document') and access to the entry.name entry on NavigationTiming2 objects?
from navigation-timing.
We should reach out to the various Analytics vendors who are part of the group as well as internal Analytics folks at our various companies.
/cc @nicjansma
from navigation-timing.
I agree that it makes more sense to have name
be the document's URL instead of "document"
for consistency with RT, though, most people will get the URL from window.location
anyways.
Note boomerang does not query for NT2 in the Perf Timeline -- we query performance.timing
(which doesn't have the name
attribute).
I haven't seen anyone query for getEntriesByName("document")
(other than W3C tests) to get NT from the PerformanceTimeline -- and there's only a few examples for getEntriesByType("navigation")
(according to Google searches). (My guess is most people just use performance.timing
which has been around longer and provides the same data in a different epoch)
Telemetry to validate our assumptions is always good :)
from navigation-timing.
Unless web devs / Nic indicate that moving to URL improves usability significantly, I'm not sure it's worth the additional last minute drill for NT2, given that it'll take some time & effort to investigate the compatibility issue.
from navigation-timing.
@igrigorik if you want this for M57, please file a crbug and I'll try to get it pulled in to the release.
from navigation-timing.
@nicjansma yep, exactly.
@spanicker we already have https://bugs.chromium.org/p/chromium/issues/detail?id=675039, do we need another one? Personally, I'd strongly prefer we make this change now, before we have to implementations in the wild..
from navigation-timing.
I haven't yet seen anyone rely on name === 'document'
. (I checked episodes and newrelic.)
If this change is made, I suggest the value of name
be the requested URL as opposed to the redirect URL. Redirect entries might look like:
PerformanceNavigationTiming
entryType: navigation
name: http://www.mysite.com <!-- requested url -->
redirect_url: https://www.mysite.com
PerformanceNavigationTiming
entryType: redirect
name: https://www.mysite.com
from navigation-timing.
If this change is made, I suggest the value of name be the requested URL as opposed to the redirect URL.
The other way around, we need to report the final URL (window.location.toString()), otherwise we'll be reporting wrong timestamps for the advertised URL in the future; we can't expose the original URL unless that response passes TAO opt-in.
- Chrome CL (landed): https://codereview.chromium.org/2675973004
- WPT tests (updated): web-platform-tests/wpt@d24a86b
from navigation-timing.
- shipping in M57 in Chrome, stable ~mid march
- we'll pause landing it until we have confidence in it
Check back in 2~3 weeks.
from navigation-timing.
I came here from https://lists.w3.org/Archives/Public/public-test-infra/2017JanMar/0025.html
Is it a correct reading of this issue that everyone can live with the proposed behavior, but want to see it proven web compatible before actually committing to the change? This is a fairly common situation, but does make things tricky with Chromium's new 2-way wpt sync. Will comment further on public-test-infra.
from navigation-timing.
@foolip That is the exact concern.
@patrickkettner flagged so he is aware of this thread.
from navigation-timing.
from navigation-timing.
Related Issues (20)
- Using navigationStart as a baseline may expose cross-origin timing information HOT 69
- How should prefetch be exposed? HOT 7
- Processing Model: Should 'prompt for unload' box actually be unload?
- Using "connectStart", "secureConnectionStart" and "connectEnd" with HTTP/3 flows HOT 5
- Reporting timestamps rely on a global object which might not exist yet HOT 1
- ToT spec has a bunch of respec warnings and errors HOT 1
- Should pages with different COOP be able to get unload event start/end. HOT 13
- Extend Navigation Timing API to include back/forward cache NotRestoredReasons HOT 4
- Links to "relevant application caches" are broken HOT 1
- Report that Critical-CH was used to restart a navigation HOT 5
- Extend the navigationType enum to include "reload after being discarded" navigations HOT 3
- Detecting whether a navigation was BFCache-eligible HOT 2
- Extend 'NavigationType' to include User Agent Launch HOT 13
- Clarify how PerformanceTiming.responseStart relates to Early Hint responses HOT 5
- performance.timeOrigin vs performance.timing.navigationStart HOT 3
- Extending the NavigationTimingType HOT 5
- NavigationTimingType enum need updates as HTML spec changed HOT 7
- Broken references in Navigation Timing Level 2 HOT 1
- Broken references in Navigation Timing Level 2
- Measuring `beforeunload` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from navigation-timing.