[PATCH v2 3/5] mshtml: Don't release location when releasing the window.

Gabriel Ivăncescu gabrielopcode at gmail.com
Thu Nov 4 09:09:03 CDT 2021


On 03/11/2021 21:42, Jacek Caban wrote:
> On 11/2/21 7:07 PM, Gabriel Ivăncescu wrote:
>> We don't hold a refcount to the location, but only a weak ref (as 
>> tests show).
> 
> 
> To be honest, the test is not really interesting and I think that it 
> would be better to hold the reference instead. What we observe in tests 
> may be explained by some uninteresting internal details (like maybe the 
> returned interface is just some sort of a wrapper), but current 
> behaviour is broken for scripts. As an example like:
> 
> location.prop = "test";
> 
> var v = location.prop;
> 
> location may be released between those sentences, causing "prop" to be 
> lost.
> 
> 
> I think that we can just remove the reference count test if it causes 
> problems.
> 
> 
> Thanks,
> 
> Jacek
> 

Sure, I actually considered that, but didn't know whether the test was 
important or not. I'll re-send it that way.



More information about the wine-devel mailing list