Resolves #18980. Adds granularity to the optional callback in webContents.print() by adding a failureType value in addition to the success boolean that differentiates between cancelled and failed print jobs.
Callback false when disconnecting from the print job if the current printing job has not completed, and true if printing is triggered successfully.