gecko-dev/dom/performance
Nazım Can Altınova 20fc64e558 Bug 1583271 - Part 1: Change profiler page information IDs to BrowsingContextID and InnerWindowID r=gerald,nika
We were keeping nsDocShell::mHistoryId and nsDocShell::mOSHE as keys. They
weren't quite good because:
1. While loading an iframe, they were being registered twice with the same
ids(for about:blank and the real URL) sometimes.
2. It wasn't possible to access to the parent mHistoryId and mOSHE from a child
processes if the parent is in a different process. That may not be the case for
now, but it will be after fission.
So we had to find other IDs to:
1. Determine the Tab of the frames.
2. Determine the URLs of the frames.
For the first use case, we were using nsDocShell::mHistoryId for that purpose
but that was wrong. The closest thing that we can get to a tab ID is
BrowsingContext ID because they don't change after a navigation. But iframes
have different BrowsingContext's, so we still need to create a tree to
construct a tab content. That can be either in the front-end or capture time.
For the second use case, we were using a key pair of mHistoryId and mOSHE. We
now chose to keep inner window IDs for that purpose. Inner window IDs are
unique for each navigation loads because inner window correspond to each JS
window global objects. That's why we can use that without any problem. But one
problem is that we cannot handle `history.pushState` and `history.replaceState`
changes with that change since window global objects won't change during those.
But that was the best thing we can do after fission. So this will be a small
sacrifice for us to keep that functionality working after fission.
In that patch we also remove the registration/unregistration calls. We are
going to add those calls in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D47065

--HG--
extra : moz-landing-system : lando
2019-10-09 21:25:11 +00:00
..
tests Bug 1571904 - disabled test on all platforms r=bc 2019-09-08 15:00:52 +00:00
Performance.cpp Bug 1583271 - Part 1: Change profiler page information IDs to BrowsingContextID and InnerWindowID r=gerald,nika 2019-10-09 21:25:11 +00:00
Performance.h Bug 1490044 - Remove DOMPrefs. r=bzbarsky 2019-06-13 09:02:03 +00:00
PerformanceEntry.cpp Bug 1121623 part 5. Remove PerformanceEntry::WrapObject. r=peterv 2019-05-24 07:23:47 +00:00
PerformanceEntry.h Bug 1121623 part 5. Remove PerformanceEntry::WrapObject. r=peterv 2019-05-24 07:23:47 +00:00
PerformanceMainThread.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
PerformanceMainThread.h
PerformanceMark.cpp
PerformanceMark.h
PerformanceMeasure.cpp
PerformanceMeasure.h
PerformanceNavigation.cpp
PerformanceNavigation.h
PerformanceNavigationTiming.cpp Bug 1560495: Update unload event security information for Navigation-Timing Level 2 specification. r=baku 2019-07-09 07:19:50 +00:00
PerformanceNavigationTiming.h Bug 1387894 - Avoid Double-Reducing Performance Duration objects. r=baku 2019-08-02 07:37:09 +02:00
PerformanceObserver.cpp Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug 2019-06-08 21:26:12 +00:00
PerformanceObserver.h Bug 1539006: Properly implement Performance Timeline Level 2 w3c spec. r=mstange,baku 2019-04-12 16:29:48 +00:00
PerformanceObserverEntryList.cpp
PerformanceObserverEntryList.h Bug 1490044 - Remove DOMPrefs. r=bzbarsky 2019-06-13 09:02:03 +00:00
PerformanceResourceTiming.cpp
PerformanceResourceTiming.h
PerformanceServerTiming.cpp
PerformanceServerTiming.h
PerformanceService.cpp
PerformanceService.h
PerformanceStorage.h
PerformanceStorageWorker.cpp Bug 1559919 - Finish the WorkerHolder cleanup - part 2 - Remove dead code in PerformanceStorageWorker, r=asuth 2019-07-12 11:15:46 +00:00
PerformanceStorageWorker.h
PerformanceTiming.cpp Backed out 2 changesets (bug 1558915) for causing bustages. CLOSED TREE 2019-08-02 12:17:42 +03:00
PerformanceTiming.h Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
PerformanceWorker.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
PerformanceWorker.h
moz.build Bug 1231213 - Implement cross-process ServiceWorkerGlobalScope.skipWaiting(). r=asuth 2019-08-15 17:27:28 +00:00