Skip to content

Commit

Permalink
Backed out changeset c0715e519fb2 (bug 1725734) for causing web-locks…
Browse files Browse the repository at this point in the history
… wpt failures. CLOSED TREE
  • Loading branch information
CosminSabou committed Aug 17, 2021
1 parent f6a5d34 commit 658e3b5
Show file tree
Hide file tree
Showing 35 changed files with 1,086 additions and 655 deletions.
11 changes: 0 additions & 11 deletions dom/base/Navigator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include "mozilla/dom/MediaSession.h"
#include "mozilla/dom/WakeLock.h"
#include "mozilla/dom/power/PowerManagerService.h"
#include "mozilla/dom/LockManager.h"
#include "mozilla/dom/MIDIAccessManager.h"
#include "mozilla/dom/MIDIOptionsBinding.h"
#include "mozilla/dom/Permissions.h"
Expand Down Expand Up @@ -158,7 +157,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(Navigator)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mMediaSession)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mAddonManager)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mWebGpu)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mLocks)

NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mWindow)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mMediaKeySystemAccessManager)
Expand Down Expand Up @@ -240,8 +238,6 @@ void Navigator::Invalidate() {

mWebGpu = nullptr;

mLocks = nullptr;

mSharePromise = nullptr;
}

Expand Down Expand Up @@ -2115,13 +2111,6 @@ webgpu::Instance* Navigator::Gpu() {
return mWebGpu;
}

dom::LockManager* Navigator::Locks() {
if (!mLocks) {
mLocks = new dom::LockManager(GetWindow()->AsGlobal());
}
return mLocks;
}

/* static */
bool Navigator::Webdriver() {
#ifdef ENABLE_WEBDRIVER
Expand Down
7 changes: 3 additions & 4 deletions dom/base/Navigator.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class ServiceWorkerContainer;
class DOMRequest;
class CredentialsContainer;
class Clipboard;
class LockManager;
} // namespace dom
namespace webgpu {
class Instance;
Expand All @@ -53,7 +52,8 @@ class Instance;
// Navigator: Script "navigator" object
//*****************************************************************************

namespace mozilla::dom {
namespace mozilla {
namespace dom {

class Permissions;

Expand Down Expand Up @@ -206,7 +206,6 @@ class Navigator final : public nsISupports, public nsWrapperCache {
mozilla::dom::CredentialsContainer* Credentials();
dom::Clipboard* Clipboard();
webgpu::Instance* Gpu();
dom::LockManager* Locks();

static bool Webdriver();

Expand Down Expand Up @@ -286,9 +285,9 @@ class Navigator final : public nsISupports, public nsWrapperCache {
RefPtr<AddonManager> mAddonManager;
RefPtr<webgpu::Instance> mWebGpu;
RefPtr<Promise> mSharePromise; // Web Share API related
RefPtr<dom::LockManager> mLocks;
};

} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_Navigator_h
63 changes: 0 additions & 63 deletions dom/locks/Lock.cpp

This file was deleted.

75 changes: 0 additions & 75 deletions dom/locks/Lock.h

This file was deleted.

Loading

0 comments on commit 658e3b5

Please sign in to comment.