Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
Luca Greco db7143751a Bug 1302702 - Make WebExtension Addon Debugging oop-compatible. r=ochameau
This patch applies all the changes needed to the devtools actors
and the toolbox-process-window, to be able to debug a webextension
running in an extension child process (as well as a webextension
running in the main process).

The devtools actor used to debug a webextension is splitted into
3 actors:

- the WebExtensionActor is the actor that is created when the
  "root.listTabs" RDP request is received, it provides the addon
  metadata (name, icon and addon id) and two RDP methods:

  - reload: used to reload the addon (e.g. from the "about:debugging#addons" page)
  - connectAddonDebuggingActor: which provides the actorID of the actor
    that is connected to the process where the extension is running
    (used by toolbox-process-window.js to connect the toolbox to the needed
    devtools actors, e.g. console, inspector etc.)

- the WebExtensionParentActor is the actor that connects to the
  process where the extension is running and ensures that a
  WebExtensionChildActor instance is created and connected
  (this actor is only the entrypoint to reach the WebExtensionChildActor,
  and so it does not provide any RDP request on its own, it only connect
  itself to its child counterpart and then it returns the RDP "form" of
  the child actor, and the client is then connected directly to the
  child actor)

- the WebExtensionChildActor is the actor that is running in the same
  process of the target extension, and it provides the same requestTypes
  of a tab actor.

By splitting the WebExtensionActor from the WebExtensionParentActor, we are
able to prevent the RemoteDebuggingServer to connect (and create
instances of the WebExtensionChildActor) for every addon listed by
a root.listAddons() request.

MozReview-Commit-ID: L1vxhA6xQkD

--HG--
extra : rebase_source : f9438b4a9842c1dd504edf2fcd87857c670f411f
2017-03-21 15:55:35 +01:00
.cargo Bug 1277338 - Part 1: Turn js/src into the mozjs-sys crate; r=sfink 2016-10-13 16:12:42 -07:00
.vscode Add some task definitions to run mach from VSCode (bug 1323308). r=gps 2017-05-04 18:03:54 +03:00
accessible Bug 1363027 - keep removing accessible alive during event coalescence, r=davidb 2017-05-12 14:02:15 -04:00
addon-sdk Backed out 15 changesets (bug 1358846, bug 1356826) for talos error. a=backout 2017-05-12 17:45:21 +08:00
browser Bug 1364672 - take the padding of the views into account when calculating the height of each sub view. r=Gijs 2017-05-17 18:05:58 +02:00
build Bug 1365633 - Add rustc target for Android x86_64. r=rillian 2017-05-17 15:13:34 +00:00
caps Bug 1348362 - Cleanup chrome://global/skin/icons - Remove unused files. r=dao 2017-05-07 19:16:27 +01:00
chrome Bug 780562 - Remove support for the chrome "platform" flag. r=bsmedberg 2017-04-14 20:48:53 +09:00
config Bug 1350262 - implement prime rehash policy compat for unordered_map and unordered_set in libstdc++. r=glandium 2017-05-09 22:15:18 -04:00
db Bug 1352260 - Upgrade to SQLite 3.18.0. r=mak 2017-04-01 15:08:18 -04:00
devtools Bug 1302702 - Make WebExtension Addon Debugging oop-compatible. r=ochameau 2017-03-21 15:55:35 +01:00
docshell Bug 1300351 - Fix non-standard manifest annotation; r=me,test-only 2017-05-15 16:17:02 -06:00
dom Bug 1364746 - stylo: Continue to propagate quirks mode information to Servo r=bholley 2017-05-14 18:11:18 +03:00
editor Merge inbound to m-c a=merge 2017-05-11 17:30:41 -07:00
embedding Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
extensions Bug 1359490 - add an event loop spinning abstraction function; r=gerald 2017-05-15 09:34:19 -04:00
gfx Merge inbound to central, a=merge 2017-05-15 16:22:21 -07:00
gradle/wrapper Bug 1300094 - Update Gradle to 2.14.1 and Gradle Plugin to 2.1.3 r=sebastian 2016-09-22 14:31:01 -07:00
hal Bug 1357323 - Remove the gonk code that was referenced by the build system. r=gps 2017-04-18 17:46:39 +09:00
image Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
intl Bug 1358159 - Handle string terminator for GetLocaleInfoEx. r=jfkthame 2017-05-10 12:42:26 -07:00
ipc Bug 1365203 - Annotate name of base::Thread in the crash report. r=gsvelto 2017-05-17 14:25:09 +08:00
js merge mozilla-inbound to mozilla-central a=merge 2017-05-17 11:16:52 +02:00
layout Bug 1341102: Update expectations for servo/servo#16858. r=me 2017-05-17 18:46:40 +02:00
media Bug 1365227: P2. Enforce that ExtractExtra data works on AVCC only. r=JamesCheng 2017-05-16 14:51:24 +02:00
memory Backed out changeset 484c5137e19f (bug 1365194) to clean up spidermonkey 2017-05-17 11:44:17 +02:00
mfbt Bug 1363426 - part 3 - minor cleanups to Atomics.h; r=erahm 2017-05-10 09:58:28 -04:00
mobile Bug 1331742 - Part 5 - Add unit tests for browserAction.onClicked r=mixedpuppy 2017-05-12 15:02:11 -04:00
modules merge mozilla-inbound to mozilla-central a=merge 2017-05-17 11:16:52 +02:00
mozglue Backed out changeset b56224bf370d (bug 1365194) 2017-05-17 11:43:26 +02:00
netwerk merge mozilla-inbound to mozilla-central a=merge 2017-05-16 15:04:38 +02:00
nsprpub Bug 1350291, uplift NSPR_4_15_BETA2, r=franziskus 2017-05-10 17:36:58 +02:00
other-licenses Backed out changeset a874592cff0a (bug 1340627) 2017-05-11 12:51:51 +02:00
parser Bug 1355441 - Reuse StackNode in TreeBuilder to avoid malloc. r=hsivonen. 2017-05-15 17:18:20 +03:00
probes Bug 1344878 - add BUG_COMPONENT to probes/* files. r=Ms2ger 2017-03-24 09:50:48 -04:00
python Bug 1364511 - Upgrade Mercurial during `mach bootstrap` on MozillaBuild; r=RyanVM 2017-05-12 15:04:28 -07:00
rdf Bug 1330235 - Remove NS_STDCALL_FUNCPROTO and replace its usage with decltype. r=froydnj 2017-05-09 23:00:37 +10:00
security No bug, Automated HPKP preload list update from host bld-linux64-spot-380 - a=hpkp-update 2017-05-16 08:13:54 -07:00
services Merge inbound to central, a=merge 2017-05-15 16:22:21 -07:00
servo servo: Merge #16907 - Bug 1364862: Make PostRebuildAllStyleData async. r=heycam (from emilio:postrebuild); r=heycam 2017-05-17 09:21:53 -05:00
startupcache Bug 1334318 - remove last uses of PR_smprintf; r=froydnj 2017-04-28 10:13:26 -06:00
storage Bug 1359490 - add an event loop spinning abstraction function; r=gerald 2017-05-15 09:34:19 -04:00
taskcluster Bug 1365350: make uploader task a dependency of tests. r=garndt 2017-05-17 09:09:14 -03:00
testing Backed out changeset d58fda39820b (bug 1364594) for failing Marionette's test_window_maximize.py TestWindowMaximize.test_maximize on Windows 8 x64. r=backout 2017-05-17 17:54:47 +02:00
third_party Bug 1341102: Revendor rust dependencies. r=me 2017-05-17 16:48:39 +02:00
toolkit Bug 1302702 - ExtensionParent DebugUtils xpcshell test unit. r=kmag 2017-04-11 05:13:13 +02:00
tools merge mozilla-inbound to mozilla-central a=merge 2017-05-17 11:16:52 +02:00
uriloader Bug 1362466 - Skip default handler injection if pref gecko.handlerService.defaultHandlersVersion not defined. r=paolo 2017-05-07 10:46:00 -04:00
view Bug 1363000 - re-enable <select> related SVG crashtests. r=heycam 2017-05-12 10:52:16 +08:00
widget Bug 1363567 - 2. Move onFullScreenPluginHidden to GeckoApp; r=rbarker 2017-05-15 23:11:18 -04:00
xpcom Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2017-05-16 15:08:58 +02:00
xpfe Bug 1359490 - add an event loop spinning abstraction function; r=gerald 2017-05-15 09:34:19 -04:00
.clang-format Bug 1322321 - Update the clang format file to match more our coding style r=ehsan 2016-12-06 17:43:17 -10:00
.clang-format-ignore Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
.clang-tidy Bug 1319396 - Update the list of checkers in the .clang-tidy file r=Ehsan 2016-11-22 12:30:19 +01:00
.cron.yml Bug 1358976 - Stop automatic triggers of nightly builds on mozilla-aurora r=dustin DONTBUILD 2017-05-15 09:55:48 -04:00
.eslintignore Bug 1362421 - Enable eslint on caps/tests/mochitest/browser_checkloaduri.js. r=standard8 2017-05-12 20:06:39 +05:30
.eslintrc.js Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
.flake8 Bug 1321956 - Disable flake8 check for 'visually indented line with same indent as next logical line', r=ahal 2016-12-08 09:53:21 -10:00
.gdbinit Bug 1317802 - don't stop for SIGSYS in .gdbinit; r=jld 2016-11-16 01:13:22 -05:00
.gdbinit_python
.gitignore Add some task definitions to run mach from VSCode (bug 1323308). r=gps 2017-05-04 18:03:54 +03:00
.hgignore Add some task definitions to run mach from VSCode (bug 1323308). r=gps 2017-05-04 18:03:54 +03:00
.hgtags No bug - Tagging mozilla-central 6583496f169cd8a13c531ed16e98e8bf313eda8e with FIREFOX_AURORA_54_BASE a=release DONTBUILD CLOSED TREE 2017-03-06 23:43:32 +01:00
.inferconfig Bug 1357629 - Add httpclientandroidlib to .inferconfig ignore list r=nalexander,njpark 2017-04-18 20:05:25 -07:00
.lldbinit
.taskcluster.yml Bug 591688 - Notify when decision task fails r=dustin,gps 2017-04-12 21:01:46 -07:00
.ycm_extra_conf.py
AUTHORS Bug 1349980 - update task generation to support -g in try syntax for running OS X tasks in generic-worker,r=dustin 2017-04-06 18:50:41 +02:00
Android.mk
CLOBBER Backed out changeset 64c183fa4dd3 (bug 1340627) 2017-05-11 12:51:47 +02:00
GNUmakefile
LEGAL
LICENSE
Makefile.in bug 1355961 - add some sccache stats to build_metrics. r=gps 2017-04-12 15:06:22 -04:00
README.txt Bug 1349108 - Update links in README.txt to HTTPS r=RyanVM 2017-03-21 00:11:02 -04:00
aclocal.m4 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
build.gradle Bug 1318823 - Use com.getkeepsafe.dexcount in Gradle builds. r=sebastian 2016-11-18 18:28:58 -08:00
client.mk Bug 1317778 - Emit a depfile with python configure dependencies so Make will know when to re-run configure. r=glandium 2016-12-02 10:05:57 -08:00
client.py
configure.in
configure.py Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
gradle.properties
gradlew
mach Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
moz.build Bug 1262241 - Move the definition of the js library to a subdirectory. r=mshal 2017-04-04 11:43:14 +09:00
moz.configure Bug 1355584 Make NSIS an optional requirement for MINGW builds r=glandium 2017-04-12 11:21:13 -05:00
mozilla-config.h.in
npm-shrinkwrap.json Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
old-configure.in Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
package.json Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
settings.gradle Bug 1291363 - Add geckoview and geckoview_example Gradle projects. r=jchen,sebastian 2016-10-05 20:23:38 -07:00
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/