Chrome Version: 72.0.3597.0
There are uses of the extension module system's privates in guest_view.js and guest_view_container.js that are unnecessary.
If we have, say,
|privates(obj).internal|
It's being used in a way that assumes this means "internal is a private field of obj", like the use of private in C++.
It actually means something to the effect of
|obj.[[privates]].internal|
where [[ ]] indicates object internal state not exposed via the language (https://www.ecma-international.org/ecma-262/9.0/index.html#sec-object-internal-methods-and-internal-slots).
In other words, it's a means of having hidden object state that only the extension system can access.
Hence, |privates(obj)| is only useful if |obj| is accessible by extensions.
Comment 1 by bugdroid1@chromium.org
, Nov 27