[Extensions] Make tabs.update() all-or-nothing
The current implementation of tabs.update() will perform updates as it goes, potentially firing an error for invalid update properties after making other changes. Update this so that tabs.update() will only update a window once all parameters are validated. This allows the extension to know that if it threw an error, none of the updates were performed. This also hopefully de-flakes the ExtensionTabsTest.InvalidUpdateWindowState API test. Bug: 1081549 Change-Id: Ice1af2c6af599c6529278f249a6a9b54ad7f078b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261160Reviewed-by:David Bertoni <dbertoni@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#786545}
Showing
Please register or sign in to comment