Disable logging if the chrome://inspect page web view is purged.
The system may purge the web view associated with the chrome://inspect page if it is left with logging enabled and many other tabs are used. Since the web view is gone, a page reload must occur when the user navigates back to the tab. The reload will cause all logs to be cleared from the chrome://inspect page and will reset the button back to "Start Logging". Turning off logging in InspectDOMHandler ensures that the state matches what the user will see when they navigate back to the chrome://inspect tab. Bug: 920823 Change-Id: I852d5a264f2d11424e8183fe1aeffb0299572537 Reviewed-on: https://chromium-review.googlesource.com/c/1435035 Commit-Queue: Mike Dougherty <michaeldo@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#626196}
Showing
Please register or sign in to comment