// Break the cycle so the object can be destroyed.
mDeathGrip = nullptr;
}
size_t SizeOfExcludingThis(mozilla::SizeOfState& aState) const final { return0; // the value shouldn't matter
}
void NodeInfoChanged(mozilla::dom::Document* aOldDoc) final {}
bool GotNotified() const { return !mDeathGrip; }
void AwaitNewNotification(Handler aNewHandler) {
MOZ_ASSERT(!mDeathGrip, "Still waiting for a notification"); // Create a cyclic ownership, so that the link will be released only // after its status has been updated. This will ensure that, when it should // run the next test, it will happen at the end of the test function, if // the link status has already been set before. Indeed the link status is // updated on a separate connection, thus may happen at any time.
mDeathGrip = this;
mHandler = aNewHandler;
}
protected:
~mock_Link() { // Run the next test if we are supposed to. if (mRunNextTest) {
run_next_test();
}
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.9Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.