mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Issue #2402 - Don't call WorkerPrivate::WorkerName() to get service worker scope. https://bugzilla.mozilla.org/show_bug.cgi?id=1350433
This commit is contained in:
parent
6979441734
commit
5202c08cfb
5 changed files with 14 additions and 7 deletions
|
|
@ -535,6 +535,13 @@ public:
|
|||
return mLoadInfo.mServiceWorkerID;
|
||||
}
|
||||
|
||||
const nsCString&
|
||||
ServiceWorkerScope() const
|
||||
{
|
||||
MOZ_DIAGNOSTIC_ASSERT(IsServiceWorker());
|
||||
return mWorkerName;
|
||||
}
|
||||
|
||||
nsIURI*
|
||||
GetBaseURI() const
|
||||
{
|
||||
|
|
@ -831,7 +838,7 @@ public:
|
|||
const nsCString&
|
||||
WorkerName() const
|
||||
{
|
||||
MOZ_ASSERT(IsServiceWorker() || IsSharedWorker());
|
||||
MOZ_ASSERT(IsSharedWorker());
|
||||
return mWorkerName;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue