Chromium Code Reviews
DescriptionUpdate save file button based on states
On chrome://net-internals/#export, when you backspace really quickly and
save to file at almost the same time, then save button becomes enabled
even when the textarea is empty.
There are currently two paths to enable or disable save file button:
1) UserComments is empty or not empty.
2) We are saving button / not saving button.
Things can get wrong if the two paths conflict with each other.
In fixing this, we also change the function structure such that save file
button is enabled / disabled based on both states.
BUG=671969
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/1dfe6d2f4f55e4a344b51c16fe0fa23bd00f21a9
Cr-Commit-Position: refs/heads/master@{#437295}
Patch Set 1 #
Messages
Total messages: 14 (7 generated)
|
|||||||||||||||||||