Bug 1347640 - HTMLInputElement shouldn't try to cancel image request on all the type changes

* Move the changing of HTMLInputElement's mType from ParseAttribute to AfterSetAttr
* Move a few more things from AfterSetAttr to HandleTypeChange

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-04-16 20:02:55 -04:00 committed by Roy Tam
commit 5a9d76e6d5
2 changed files with 73 additions and 66 deletions

View file

@ -1100,7 +1100,7 @@ protected:
/**
* Manages the internal data storage across type changes.
*/
void HandleTypeChange(uint8_t aNewType);
void HandleTypeChange(uint8_t aNewType, bool aNotify);
/**
* Sanitize the value of the element depending of its current type.