[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New wrappers

From: Libor Polčák
Subject: New wrappers
Date: Fri, 10 Sep 2021 14:25:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.9

Hello all.

Giorgio finished the development of the improved wrapping code dealing with the 
bugs realted to early injection and reliable injection in Firefox when wisiting 
pages with CSP. See 

Giorgio, I am little confused about wrapped_name and callable_name. Is the 
following true?

"Generally speaking, use wrapped_name whenever you need to access the original 
objects only inside
the wrapper and you do not need to pass the object to other code, such as 
`Promise` objects or
callbacks. Compared to `callable_name`, `wrapped_name` has less overhead and is the 
preferred way."

Am I right that it does not make sense to define both callable_name and 

If I got it right, I think that we should consider using only wrapped_name and providing the 
developer with an option to use the object in Promies and callbacks. E.g. providing a boolean 
option like "page_script_access" that defaults to false. The code would generate the 
X-ray code only if "page_script_access===true".

Does it make sense or not?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]