devtools: Check if the agent is enabled during markUndoableState
The agent can be disabled when this message arrives, just like the undo() and redo() methods above. Check for this explicitly because it sets history_ back to null which can cause a nullptr dereference. Bug: 1115856 Change-Id: I503a8dffc5abd3b490d6ca21ae22f0edafb8e42d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2367680 Commit-Queue: Peter Marshall <petermarshall@chromium.org> Reviewed-by:Simon Zünd <szuend@chromium.org> Cr-Commit-Position: refs/heads/master@{#801024}
Showing
Please register or sign in to comment