Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the StampEditor.isEmpty method to handle File (PR 16828 follow-up) #16844

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

Snuffleupagus
Copy link
Collaborator

After the changes in PR #16828 the StampEditor can now be initialized with a File, in addition to a URL, hence it seems that the isEmpty method ought to take that property into account as well.

Looking at this I also noticed that the assignment in the constructor may cause the this.#bitmapUrl/this.#bitmapFile fields be undefined which "breaks" the comparisons in the isEmpty method.
We could obviously fix those specific cases, but it seemed overall safer (with future changes) to just update the isEmpty method to be less sensitive to exactly how these fields are initialized and reset.

…ow-up)

After the changes in PR 16828 the `StampEditor` can now be initialized with a File, in addition to a URL, hence it seems that the `isEmpty` method ought to take that property into account as well.

Looking at this I also noticed that the assignment in the constructor may cause the `this.#bitmapUrl`/`this.#bitmapFile` fields be `undefined` which "breaks" the comparisons in the `isEmpty` method.
We could obviously fix those specific cases, but it seemed overall safer (with future changes) to just update the `isEmpty` method to be less sensitive to exactly how these fields are initialized and reset.
@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/268f656c7b27a07/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/a65f0a8fdb617eb/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/a65f0a8fdb617eb/output.txt

Total script time: 5.01 mins

  • Integration Tests: FAILED

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/268f656c7b27a07/output.txt

Total script time: 15.96 mins

  • Integration Tests: FAILED

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@Snuffleupagus Snuffleupagus merged commit 60581c4 into mozilla:master Aug 18, 2023
@Snuffleupagus Snuffleupagus deleted the StampEditor-isEmpty branch August 18, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants