Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky f771d7e529 Bug 1477923. Make WebIDL callbacks store a global in addition to the object that's used as a callback. r=mccr8
We want to be able to enter the Realm we were in when the callback was created
before calling it, but if the callback stores a cross-compartment wrapper we
don't really have a good way to find that Realm.  So we store it explicitly by
storing a global when the callback is created.

The changes to the constructor signatures to use JSObject* instead of
JS::Handle<JSObject*> are so we can avoid having to root the global for these
calls.  These changes make two of the constructors ambiguous when nullptr is
being passed for the first arg; this patch adds casts to disambiguate.
2018-08-03 17:11:39 -04:00
Jan Henning d81f066c59 Bug 1456391 - Part 1: Move nsISessionStoreUtils to Toolkit. r=Nika
We want to use forEachNonDynamicChildFrame() on Android as well.

MozReview-Commit-ID: E4sJa6gbyuq

--HG--
rename : browser/components/sessionstore/nsISessionStoreUtils.idl => toolkit/components/sessionstore/nsISessionStoreUtils.idl
rename : browser/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/nsSessionStoreUtils.cpp
rename : browser/components/sessionstore/nsSessionStoreUtils.h => toolkit/components/sessionstore/nsSessionStoreUtils.h
extra : rebase_source : 97e0b74042ff8d9a6b4cb4b609546aab9d58a834
2018-04-24 21:52:46 +02:00