Bug 1469914 - Prevent the HAL from registering duplicate observers; r=froydnj

This also replaces the custom logic in ObserverList with an nsTObserverArray
which has all the necessary logic for stable iteration over a potentially
changing list of items. Unused dependencies were also removed.
This commit is contained in:
Gabriele Svelto
2018-06-22 00:35:08 +02:00
parent 975b317b22
commit daf770ed28
3 changed files with 8 additions and 29 deletions

View File

@@ -20,10 +20,7 @@
#include "nsJSUtils.h"
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/Observer.h"
#include "mozilla/Services.h"
#include "mozilla/StaticPtr.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/ScreenOrientation.h"
#include "WindowIdentifier.h"