summaryrefslogtreecommitdiffstats
path: root/netwerk/docs/new_to_necko_resources.rst
blob: a046d63bd6b66ecd509f41d8e48ec0c84881d8a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
New-to-Necko Resources - An Aggregation
=======================================

This doc serves as a hub for resources/technologies a new-to-necko developer
should get familiar with.

Code Generation and IPC
~~~~~~~~~~~~~~~~~~~~~~~

* `IPC`_ (Inter-Process Communication) and `IPDL`_ (Inter-Thread and Inter-Process Message Passing)
* `IDL`_ (Interface Description Language)
    - Implementing an interface (C++/JS)
    - XPCONNECT (scriptable/builtin)
    - QueryInterface (QI) - do_QueryInterface/do_QueryObject
    - do_GetService, do_CreateInstance
* `WebIDL`_

.. _IPC: /ipc/index.html
.. _IDL: /xpcom/xpidl.html
.. _IPDL: /ipc/ipdl.html
.. _WebIDL: /toolkit/components/extensions/webextensions/webidl_bindings.html


Necko interfaces
~~~~~~~~~~~~~~~~

* :searchfox:`nsISupports <xpcom/base/nsISupports.idl>`
* :searchfox:`nsIRequest <netwerk/base/nsIRequest.idl>` ->
  :searchfox:`nsIChannel <netwerk/base/nsIChannel.idl>` ->
  :searchfox:`nsIHttpChannel <netwerk/protocol/http/nsIHttpChannel.idl>`
* :searchfox:`nsIRequestObserver <netwerk/base/nsIRequestObserver.idl>` (onStart/onStopRequest)
* :searchfox:`nsIStreamListener <netwerk/base/nsIStreamListener.idl>` (onDataAvailable)
* :searchfox:`nsIInputStream <xpcom/io/nsIInputStream.idl>`/
  :searchfox:`nsIOutputStream <xpcom/io/nsIOutputStream.idl>`

Libraries
~~~~~~~~~
* `NSPR`_
* `NSS`_
* `PSM`_

.. _NSPR: https://firefox-source-docs.mozilla.org/nspr/about_nspr.html?highlight=nspr
.. _NSS: https://firefox-source-docs.mozilla.org/security/nss/legacy/faq/index.html
.. _PSM: https://firefox-source-docs.mozilla.org/security/nss/legacy/faq/index.html?highlight=psm


Preferences
~~~~~~~~~~~
* :searchfox:`all.js <modules/libpref/init/all.js>`
* :searchfox:`firefox.js <browser/app/profile/firefox.js>`
* :searchfox:`StaticPrefList.yaml <modules/libpref/init/StaticPrefList.yaml>`

Debugging
~~~~~~~~~
* `HTTP Logging`_

.. _HTTP Logging: /networking/http/logging.html

Testing
~~~~~~~
* `xpcshell`_
* `mochitest`_
* `web-platform`_
* `gtest`_
* `marionette`_

.. _xpcshell: /testing/xpcshell/index.html
.. _mochitest:  /browser/components/newtab/docs/v2-system-addon/mochitests.html
.. _web-platform: /web-platform/index.html
.. _gtest: /gtest/index.html
.. _marionette: /testing/marionette/index.html


See also
~~~~~~~~
  - E10S_ (Electrolysis) -> Split ``HttpChannel`` into: ``HttpChannelChild`` & ``HttpChannelParent``
  - Fission_ -> Site isolation

  .. _E10s: https://wiki.mozilla.org/Electrolysis
  .. _Fission: https://hacks.mozilla.org/2021/05/introducing-firefox-new-site-isolation-security-architecture/