gecko-dev/devtools
Razvan Caliman 9ff9f666b0 Bug 1667368 - [devtools] Prevent accidentally creating multiple highlighter instances r=jdescottes
When requesting a highlighter instance, the inspector front returns one from its cache if present, otherwise it sends a request to the server create a new one.

But if multiple requests come in very quickly before the server responds to the original request, the cache is still empty so the front fires a few more requests. How many? It's arbitrary. As many as fit before the original request's promise resolves and the cache is set. This is the root cause for the issue of seeing duplicate highlighters.

The issue is more pronounced when there is congestion: many microtasks in the queue, for example when loading a heavy tool like the Inspector on a complex page.

To solve this, we store the unsettled promise to create a highlighter and explicitly wait for it to resolve while ignoring subsequent requests.

Differential Revision: https://phabricator.services.mozilla.com/D92802
2020-10-07 20:30:44 +00:00
..
client Bug 1667368 - [devtools] Prevent accidentally creating multiple highlighter instances r=jdescottes 2020-10-07 20:30:44 +00:00
docs Bug 1629712 - Fix documentation text. r=victoria 2020-08-17 22:52:21 +00:00
platform
server Backed out 2 changesets (bug 1669473) for perma failures on browser_net_block-csp.js. CLOSED TREE 2020-10-07 17:46:31 +03:00
shared Bug 1667839 - Pass watchedData to already existing targets. r=nchevobbe 2020-10-05 20:52:23 +00:00
startup Bug 1634030: lazify main app menu r=Gijs 2020-08-10 17:09:55 +00:00
.eslintrc.js Bug 1652690 - Remove outdated eslint rule for devtools/shared/platform r=nchevobbe,perftest-reviewers,sparky 2020-07-15 14:59:19 +00:00
.eslintrc.mochitests.js Bug 1620537 - Fix eslint issues in devtools .eslintrc*.js files now that ESLint 7 will lint them. r=mossop 2020-07-24 20:39:07 +00:00
.eslintrc.xpcshell.js Bug 1620537 - Fix eslint issues in devtools .eslintrc*.js files now that ESLint 7 will lint them. r=mossop 2020-07-24 20:39:07 +00:00
CODE_OF_CONDUCT.md
moz.build Bug 1645398 - [ci] Add a SCHEDULES rule to prevent 'android' builds and tests on pushes that exclusively modify files under /devtools, r=gbrown,jlast 2020-06-15 13:38:46 +00:00
templates.mozbuild
tsconfig.json