-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1611374 - Disallow nested
Document.execCommand()
calls in Night…
…ly and early Beta r=smaug Chrome does not allow nested `Document.execCommand()` calls: https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/document_exec_command.cc;l=75;drc=301e5d079a1b4c29c5b17574d0470e6db7370acc On the other hand, Safari (and Firefox) allows it. However, it's worthwhile to follow Chrome's behavior. This patch makes `Document::ExecCommand()` return `false` when it's called while running another `Document::ExecCommand()` call on Nightly and early Beta. This is exactly same behavior, and we should watch broken web apps reports for a while before riding this on the train. And this patch sets the pref to `true` when all crash tests under `editor/libeditor/crashtests` which depend on nested calls of `execCommand` run since same things may be reproducible with other DOM APIs. Differential Revision: https://phabricator.services.mozilla.com/D62815 --HG-- extra : moz-landing-system : lando
- Loading branch information
1 parent
6633963
commit a5deb4a
Showing
5 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters