editor/libeditor/crashtests/639736-1.xhtml
author Shane Hughes <shughes@mozilla.com>
Sat, 24 Sep 2022 00:00:46 +0000
changeset 636388 50f72898d7b8b88985dc5d7595007b426a46c93e
parent 636050 9b15baab6f77d09eca2956276f66fee97555e4a1
permissions -rw-r--r--
Bug 1789644 - Add a pref toggle for QuickActions, separate from the pref for suggestions. r=mak,daleharvey Change the behavior of the QuickActions provider, so that setting the pref `quickactions.enabled` to false will prevent showing quick action results in all contexts, while setting `suggest.quickactions` to false will only prevent showing quick action results in the default search mode (i.e., quick action results will still appear in the Quick Actions search mode enabled by typing `> ` in the urlbar). Differential Revision: https://phabricator.services.mozilla.com/D157702

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function onLoad() {
  // For emulating the traditional behavior, collapse Selection to end of the
  // <td> which is the deepest last child of the <body>.
  getSelection().collapse(
    document.querySelector("td"),
    document.querySelector("td").childNodes.length
  );
  try {
    document.execCommand("removeformat");
  } catch(e) {}
  document.adoptNode(document.documentElement);
}
</script>
</head>
<body onload="onLoad();"><td contenteditable="true"/></body>
</html>