Bug 1534248 - Remove loading unnecessary generated sources. r=loganfsmyth
authorJason Laster <jlaster@mozilla.com>
Mon, 11 Mar 2019 16:24:05 +0000
changeset 521404 835b87c028dd
parent 521403 364ed778d761
child 521405 551105fd7f81
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);