зеркало из https://github.com/mozilla/gecko-dev.git
Bug 919429 - [Message manager] We must not force weak listeners to implement Ci.nsIMessageListener. r=smaug
This commit is contained in:
Родитель
11cd5e5051
Коммит
ea61875190
|
@ -757,7 +757,7 @@ nsFrameMessageManager::ReceiveMessage(nsISupports* aTarget,
|
||||||
|
|
||||||
for (uint32_t i = 0; i < mListeners.Length(); ++i) {
|
for (uint32_t i = 0; i < mListeners.Length(); ++i) {
|
||||||
// Remove mListeners[i] if it's an expired weak listener.
|
// Remove mListeners[i] if it's an expired weak listener.
|
||||||
nsCOMPtr<nsIMessageListener> weakListener;
|
nsCOMPtr<nsISupports> weakListener;
|
||||||
if (mListeners[i].mWeakListener) {
|
if (mListeners[i].mWeakListener) {
|
||||||
weakListener = do_QueryReferent(mListeners[i].mWeakListener);
|
weakListener = do_QueryReferent(mListeners[i].mWeakListener);
|
||||||
if (!weakListener) {
|
if (!weakListener) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче