Crown Liability and Proceedings Act: https://laws-lois.justice.gc.ca/eng/acts/c-50/index.html

Ontario Crown Liability and Proceedings Act: https://www.canlii.org/en/on/laws/stat/so-2019-c-7-sch-17/latest/so-2019-c-7-sch-17.html

Ministry of the Attorney General Act: https://www.ontario.ca/laws/statute/90m17

S. 8 Limit on proceedings against Crown Attorneys, etc.

8 (1) No action or other proceeding for damages shall be commenced by a person who is or was the subject of a prosecution, in respect of any act done or omitted to be done in the performance or purported performance of a duty or authority in relation to the prosecution, against any of the following:

1. A Crown Attorney, Deputy Crown Attorney or assistant Crown Attorney appointed under the Crown Attorneys Act.

2. A person authorized under section 6 of the Crown Attorneys Act to be a provincial prosecutor.

3. Any other employee appointed for the purposes of section 4.

4. A person who was, but no longer is, a person described in paragraph 1, 2 or 3. 2009, c. 33, Sched. 2, s. 46.

Proceedings against Attorney General
(2) An action or other proceeding described in subsection (1) may be commenced against the Attorney General by a person who is or was the subject of a prosecution and, for the purpose, the Attorney General stands in the place of the person against whom the action or other proceeding would have been brought but for that subsection, and may be found liable in his or her stead. 2009, c. 33, Sched. 2, s. 46.

Same
(3) An action or other proceeding may only be brought against the Attorney General under subsection (2) if, but for subsection (1), the action or proceeding could have been brought against a person referred to in that subsection. 2009, c. 33, Sched. 2, s. 46.

Liability without prejudice
(4) A finding of liability against the Attorney General under subsection (2) is without prejudice to the right of the Attorney General or the Crown to indemnity or other relief from the person in whose place the Attorney General stood in the action or other proceeding. 2009, c. 33, Sched. 2, s. 46.

Notice of claim; discovery; service; trial without jury; payment by Attorney General
(5) Section 16, subsections 18 (1) to (3) and sections 19, 20 and 28 of the Crown Liability and Proceedings Act, 2019 apply, with necessary modifications, to an action or other proceeding under subsection (2) and, for the purpose, a reference to the Crown shall be read as a reference to the Attorney General. 2009, c. 33, Sched. 2, s. 46; 2019, c. 7, Sched. 17, s. 119