Clear selection after tearing down surface to work around Firefox bug

Bug: 71852
Change-Id: I3b4f0f755ece5c9e5444f8abadb1950a3f4ef318
Merge "Clear selection after tearing down surface to work around Firefox bug"