Bug 1553291 - CodeMirror chokes on large minified files. r=davidwalsh
authorJason Laster <jlaster@mozilla.com>
Fri, 28 Jun 2019 17:22:35 +0000
changeset 540607 d0823ee61ef55e7f2f7ff8d03d5df501bb5cb52a
parent 540606 4f8471af1d87a08afcf710b710cfb767f8628112
child 540608 a368350c9582f52cc32ff3c38b3d8337510cdbdf
push id11529
push userarchaeopteryx@coole-files.de
push dateThu, 04 Jul 2019 15:22:33 +0000
treeherdermozilla-beta@ebb510a784b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidwalsh
bugs1553291
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1553291 - CodeMirror chokes on large minified files. r=davidwalsh Differential Revision: https://phabricator.services.mozilla.com/D36237
devtools/client/shared/sourceeditor/editor.js
--- a/devtools/client/shared/sourceeditor/editor.js
+++ b/devtools/client/shared/sourceeditor/editor.js
@@ -140,16 +140,17 @@ function Editor(config) {
     theme: "mozilla",
     themeSwitching: true,
     autocomplete: false,
     autocompleteOpts: {},
     // Expect a CssProperties object (see devtools/shared/fronts/css-properties.js)
     cssProperties: null,
     // Set to true to prevent the search addon to be activated.
     disableSearchAddon: false,
+    maxHighlightLength: 1000,
   };
 
   // Additional shortcuts.
   this.config.extraKeys[Editor.keyFor("jumpToLine")] = () => this.jumpToLine();
   this.config.extraKeys[Editor.keyFor("moveLineUp", { noaccel: true })] =
     () => this.moveLineUp();
   this.config.extraKeys[Editor.keyFor("moveLineDown", { noaccel: true })] =
     () => this.moveLineDown();