On Wed, Aug 9, 2017 at 9:39 PM, Boris Zbarsky <[email protected]> wrote:
> On 8/9/17 1:55 PM, Henri Sivonen wrote:
>>
>> I'm thinking of introducing a C++-implemented XPCOM object that the
>> JS-implemented XPCOM object can hold a reference to and that has a C++
>> destructor that does what I want.
>
>
> Does that mean your action doesn't depend on which exact JS object got
> collected, or that you can encode that information in some way without
> referencing the JS object?

The action is decrementing a counter on the inner window, so it's
sufficient if the C++ destructor knows if it needs to decrement the
counter and knows which window.

The concrete situation is described in
https://bugzilla.mozilla.org/show_bug.cgi?id=1378123#c9

-- 
Henri Sivonen
[email protected]
https://hsivonen.fi/
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to