Merge "Check task.isResizeable() instead of the resize mode directly" into nyc-dev