Bug 1534248 - Remove loading unnecessary generated sources. r=loganfsmyth
authorJason Laster <jlaster@mozilla.com>
Mon, 11 Mar 2019 16:24:05 +0000
changeset 521404 835b87c028dd8e134ceb83fa575abffa53321f8e
parent 521403 364ed778d761aa064a5da484ced1ed2b9e83c699
child 521405 551105fd7f8137dc15533b35eb304ed32829de7f
push id10866
push usernerli@mozilla.com
push dateTue, 12 Mar 2019 18:59:09 +0000
treeherdermozilla-beta@445c24a51727 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersloganfsmyth
bugs1534248
milestone67.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 1534248 - Remove loading unnecessary generated sources. r=loganfsmyth Differential Revision: https://phabricator.services.mozilla.com/D22966
devtools/client/debugger/new/src/actions/sources/loadSourceText.js
--- a/devtools/client/debugger/new/src/actions/sources/loadSourceText.js
+++ b/devtools/client/debugger/new/src/actions/sources/loadSourceText.js
@@ -78,21 +78,16 @@ export function loadSourceText(source: ?
       return;
     }
 
     const newSource = getSource(getState(), source.id);
     if (!newSource) {
       return;
     }
 
-    if (isOriginal(newSource) && !newSource.isWasm) {
-      const generatedSource = getGeneratedSource(getState(), source);
-      await dispatch(loadSourceText(generatedSource));
-    }
-
     if (!newSource.isWasm && isLoaded(newSource)) {
       await parser.setSource(newSource);
       await dispatch(setBreakpointPositions(newSource.id));
     }
 
     // signal that the action is finished
     deferred.resolve();
     requests.delete(id);