[ConstructorCallWith=ScriptState] is sometimes used to cache RefPtr<ScriptState> on a DOM object when the DOM object is constructed. Then the ScriptState is used when subsequent DOM attributes/methods are called. This is a wrong programming pattern because it will leak the ScriptState to the world that called the DOM attributes/methods. We should use [CallWith=ScriptState] at every DOM attribute/method.
To prevent the mistake, we should remove [ConstructorCallWith=ScriptState].
Comment 1 by bugdroid1@chromium.org
, Nov 30 2016