In at least one snippet you pasted, you were doing
>nsRefPtr<nsScriptLoadRequest> request;
>request->mElement = aElement;

nsRefPtr points to null by default.

Cheers,
Josh

On 04/05/2013 06:43 PM, jeremy.ral...@gmx.ch wrote:
It finally works now. I had to put my code BEFORE

   // Step 14. in the HTML5 spec
   nsresult rv = NS_OK;
   nsRefPtr<nsScriptLoadRequest> request;

and everything was fine. However, I'd still like to understand why "request" 
gets dereferenced when my code stands below these lines. I just don't see it.

And thanks for all the patient comments on my beginner's questions :-)
Jeremy


_______________________________________________
dev-security mailing list
dev-security@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-security

Reply via email to