зеркало из https://github.com/mozilla/gecko-dev.git
61152c85e9
Previously, we initialized WorkerLoadInfo's shouldRFP member using the Worker's principal at time of construction. It is better to populate it from the RemoteWorkerData structure. The RemoteWorkerData's shouldRFP member can be initialized with the correct context. In ServiceWorkerPrivateImpl.cpp it has the same effect, before and after we use ServiceWorkerInfo.mPrincipal But for SharedWorker.cpp we previously used RemoteWorkerData.principalInfo (the second of three principal members). This was initialized from the WorkerLoadInfo.mPrincipal member, which in turn came from loadInfo.mChannel which in turn came from loadInfo.mLoadingPrincipal. Now we use the WorkerLoadInfo.mShouldResistFingerprinting member which is initialized from nsContentUtils::ShouldResistFingerprinting(document) in WorkerPrivate::GetLoadInfo which can take into account greater context which will be important in the next few patches. Differential Revision: https://phabricator.services.mozilla.com/D150590 |
||
---|---|---|
.. | ||
PRemoteWorker.ipdl | ||
PRemoteWorkerController.ipdl | ||
PRemoteWorkerService.ipdl | ||
RemoteWorkerChild.cpp | ||
RemoteWorkerChild.h | ||
RemoteWorkerController.cpp | ||
RemoteWorkerController.h | ||
RemoteWorkerControllerChild.cpp | ||
RemoteWorkerControllerChild.h | ||
RemoteWorkerControllerParent.cpp | ||
RemoteWorkerControllerParent.h | ||
RemoteWorkerManager.cpp | ||
RemoteWorkerManager.h | ||
RemoteWorkerParent.cpp | ||
RemoteWorkerParent.h | ||
RemoteWorkerService.cpp | ||
RemoteWorkerService.h | ||
RemoteWorkerServiceChild.cpp | ||
RemoteWorkerServiceChild.h | ||
RemoteWorkerServiceParent.cpp | ||
RemoteWorkerServiceParent.h | ||
RemoteWorkerTypes.ipdlh | ||
moz.build |