Skip to content

Instantly share code, notes, and snippets.

Julian Descottes juliandescottes

  • Mozilla
View GitHub Profile
View DEVTOOLS_FISSION_LISTING_REMOTE_FRAMES.MD
                                                                ┌────────────────────────────┐                                         
 ╔═════════════════════════════════════╗                        │ domainA page               │                                         
 ║                                     ║                        │                            │                                         
 ║    LISTING REMOTE FRAMES BEFORE     ║                        │     ┌────────────────────┐ │                                         
 ║                                     ║                        │     │ domainB iframe     │ │                                         
 ╚═════════════════════════════════════╝                        │     │                    │ │                                         
                                                                │     └────────────────────┘ │                                         
                                                                └───
View no-await-in-loop_violations.log
/Users/jdescottes/Development/hg/fx-team-artifact/devtools/client/aboutdebugging/src/actions/debug-targets.js
308:30 error Unexpected `await` inside a loop. no-await-in-loop (eslint)
/Users/jdescottes/Development/hg/fx-team-artifact/devtools/client/aboutdebugging/src/actions/runtimes.js
496:9 error Unexpected `await` inside a loop. no-await-in-loop (eslint)
514:9 error Unexpected `await` inside a loop. no-await-in-loop (eslint)
/Users/jdescottes/Development/hg/fx-team-artifact/devtools/client/accessibility/accessibility-view.js
164:24 error Unexpected `await` inside a loop. no-await-in-loop (eslint)
168:13 error Unexpected `await` inside a loop. no-await-in-loop (eslint)
View pool2_stacktrace.txt
addActorPool@resource://devtools/shared/client/devtools-client.js:772:17
get _poolMap@resource://devtools/shared/protocol/Pool.js:62:15
manage@resource://devtools/shared/protocol/Pool.js:84:5
manage@resource://devtools/shared/protocol/Front.js:89:11
read@resource://devtools/shared/protocol/types.js:346:21
read@resource://devtools/shared/protocol/Response.js:106:22
read@resource://devtools/shared/protocol/Response.js:77:24
generateRequestMethods/</frontProto[name]/<@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:52:31
promise callback*generateRequestMethods/</frontProto[name]@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:49:35
enumProperties@resource://devtools/shared/fronts/object.js:156:18
View pool1_stacktrace.txt
addActorPool@resource://devtools/shared/client/devtools-client.js:772:17
get _poolMap@resource://devtools/shared/protocol/Pool.js:62:15
manage@resource://devtools/shared/protocol/Pool.js:84:5
manage@resource://devtools/shared/protocol/Front.js:89:11
ObjectFront@resource://devtools/shared/fronts/object.js:31:17
getAdHocFrontOrPrimitiveGrip@resource://devtools/shared/fronts/object.js:345:23
_onResult/<@resource://devtools/shared/fronts/property-iterator.js:54:50
_onResult@resource://devtools/shared/fronts/property-iterator.js:50:42
slice@resource://devtools/shared/fronts/property-iterator.js:33:17
async*iteratorSlice@resource://devtools/client/shared/components/reps/reps.js:4291:19
View mach_doc_log.txt
Traceback (most recent call last):
File "/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/_virtualenvs/init_py3/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/_virtualenvs/init_py3/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/_virtualenvs/init_py3/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/_virtualenvs/init_py3/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/_virtualenvs/init_py3/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
View inspector_init.md

Inspector initialization

Current mozilla central

constructor

  • [A.1] create the inspector store
  • [A.2] bind callbacks

init + deferredOpen (they could transparently be merged together)

  • [B.1] localize markup (modifies the DOM of the panel)
View animations_inspector_events.js
async onAnimationsMutation(changes) {
if (!this.isPanelVisible()) {
return;
}
// ...
}
async onTargetAvailable({ isTopLevel, targetFront }) {
if (isTopLevel) {
this.animationsFront = await targetFront.getFront("animations");
View failure.log
jdescottes@juliandescottes-0klvdr:~/Development/hg/fx-team-artifact$ mt /Users/jdescottes/Development/hg/fx-team-artifact/devtools/client/webconsole/test/browser/_webconsole.ini
0:00.39 INFO Checking for ssltunnel processes...
0:00.41 INFO Checking for xpcshell processes...
0:00.42 SUITE_START: mochitest-browser - running 2 tests
0:00.42 INFO Running manifest: devtools/client/webconsole/test/browser/_webconsole.ini
pk12util: PKCS12 IMPORT SUCCESSFUL
0:00.83 INFO Increasing default timeout to 90 seconds
0:00.83 INFO MochitestServer : launching [u'/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/dist/bin/xpcshell', '-g', u'/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/dist/NightlyDebug.app/Contents/Resources', '-f', u'/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/gg/3djmyw1514zdnv65k6tn9tgh0000gn/T/tmpVkRt3F.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1
View success.log
jdescottes@juliandescottes-0klvdr:~/Development/hg/fx-team-artifact$ mt /Users/jdescottes/Development/hg/fx-team-artifact/devtools/client/webconsole/test/browser/_webconsole.ini
0:00.39 INFO Checking for ssltunnel processes...
0:00.40 INFO Checking for xpcshell processes...
0:00.42 SUITE_START: mochitest-browser - running 2 tests
0:00.42 INFO Running manifest: devtools/client/webconsole/test/browser/_webconsole.ini
pk12util: PKCS12 IMPORT SUCCESSFUL
0:00.83 INFO Increasing default timeout to 90 seconds
0:00.83 INFO MochitestServer : launching [u'/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/dist/bin/xpcshell', '-g', u'/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/dist/NightlyDebug.app/Contents/Resources', '-f', u'/Users/jdescottes/Development/hg/fx-team-artifact/objdir.noindex/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/gg/3djmyw1514zdnv65k6tn9tgh0000gn/T/tmpI7mPCb.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1
View rewrite_devtools_requires.py
import os, re
devtools_root = os.path.abspath(".");
print devtools_root, ": DEVTOOLS ROOT\n"
def path_repl(matchobj):
print "REPL MATCHOBJ", matchobj.group(1)
fullpath = os.path.join(current_root, matchobj.group(1))
print "REPL FULLPATH", fullpath
You can’t perform that action at this time.