author Jon Coppeard <jcoppeard@mozilla.com>
Thu, 15 Aug 2019 16:18:21 +0000
changeset 541984 e1341fad0145dddfa2056caad74136b73b89e163
parent 374655 7b434711753b98a87603453caaa0945791ffe12b
permissions -rw-r--r--
Bug 1571682 - Make allocationSiteGroup fail cleanly on OOM. r=tcampbell,jandem, a=RyanVM This should make this fail cleanly on OOM rather than crashing, which should make this crash go away (without reducing memory usage obviously). The problem was the lack of hasHash/ensureHash methods that we use to handle OOM when generating unique IDs for GC things. I also tidied the equivalent code for ObjectGroupRealm::NewEntry (FallibleHashMethods is already implemented for MovableCellHasher). We could further improve this by giving each script an immutable hash code on creation if you think it's worth the tradeoff of storing this for every script. Differential Revision: https://phabricator.services.mozilla.com/D41233

<!DOCTYPE html>
<html lang="en-US" class="reftest-wait">
  <script type="text/javascript">
    function init() {
      var editor = document.querySelector("div[contenteditable]");
      editor.addEventListener("focus", function() {
        editor.textContent = "This is another misspellored word.";
        setTimeout(function() {
          document.documentElement.className = "";
        }, 0);
<body onload="init()">
  <div contenteditable spellcheck>This is a misspellored word.</div>