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

[Editor] Fix undoing an editor deletion (bug 1886959) #17823

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

calixteman
Copy link
Contributor

The original bug was because the parent was null when trying to show an highlight annotation which led to an exception.
That led me to think about having some null/non-null parent when removing an editor: it's a mess especially if a destroyed parent is still attached to an editor. Consequently, this patch always sets the parent to null when deleting the editor.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

r=me, with a few grammar-nits fixed; thank you!

test/integration/freetext_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/highlight_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/highlight_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/highlight_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/highlight_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/highlight_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/highlight_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/ink_editor_spec.mjs Outdated Show resolved Hide resolved
test/integration/stamp_editor_spec.mjs Outdated Show resolved Hide resolved
The original bug was because the parent was null when trying to show
an highlight annotation which led to an exception.
That led me to think about having some null/non-null parent when removing
an editor: it's a mess especially if a destroyed parent is still attached
to an editor. Consequently, this patch always sets the parent to null when
deleting the editor.
@calixteman
Copy link
Contributor Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/537009f67888cc9/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/cfbc598f2d5af9f/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/537009f67888cc9/output.txt

Total script time: 7.44 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/cfbc598f2d5af9f/output.txt

Total script time: 22.35 mins

  • Integration Tests: Passed

@calixteman calixteman merged commit 3fbd6b5 into mozilla:master Mar 25, 2024
9 checks passed
@calixteman calixteman deleted the bug1886959 branch March 25, 2024 13:42
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