This CL changes references to self.SDK.targetManager (the global
instance of SDK.SDKModel.TargetManager) over to
SDK.SDKModel.TargetManager.instance(). To keep both TypeScript and
Closure happy we must make a method on the TargetManager class itself,
since it only allows private constructors to be accessed by static
methods on the class.
Bug: 1058320
Change-Id: I6ca35024c21cf24254fd6273138a1ab3e163ee00
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2088092
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
We currently observe the InspectedURLChanged event to decide if the
CSS Overview needs to be reset, but this can be fired, it seems, for
changes internal to the page (seems like iframes, perhaps). As such
with this CL we confirm that the inspected URL itself has changed
before triggering the reset.
Change-Id: I32b721b66bd75875ecd61426573131407c455a4f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1887791
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>