Closed Bug 1748315 Opened 4 years ago Closed 3 years ago

add scripting webidl binding

Categories

(WebExtensions :: General, task, P3)

task
Points:
5

Tracking

(firefox105 fixed)

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: mixedpuppy, Assigned: willdurand)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [addons-jira])

Attachments

(4 files, 1 obsolete file)

No description provided.
Severity: -- → N/A
Assignee: nobody → wdurand
Keywords: leave-open
Attachment #9268413 - Attachment description: WIP: Bug 1748315 - Generate WebIDL bindings for the scripting namespace. r?rpl! → Bug 1748315 - Part 1 - Generate WebIDL bindings for the scripting namespace. r?rpl!

This patch adds the scripting.ExecutionWorld constant object (which
exposes ISOLATED: "ISOLATED" currently). The JSON schema defines an
enum, which eventually gets converted into a constant object. It looks
like We cannot access this object with GetWebExtPropertyAsJSValue(),
which is why this object is fully redefined in the cpp code.

Depends on D141463

This is required to load and validate JSON schemas that use formatters like relativeUrl.

Depends on D141750

Attachment #9268413 - Attachment description: Bug 1748315 - Part 1 - Generate WebIDL bindings for the scripting namespace. r?rpl! → WIP: Bug 1748315 - Part 3 - Generate WebIDL bindings for the scripting namespace. r?rpl!
Attachment #9268627 - Attachment description: Bug 1748315 - Part 2 - Generate WebIDL bindings for the scripting namespace (ExecutionWorld). r?rpl! → Bug 1748315 - Part 4 - Generate WebIDL bindings for the scripting namespace (ExecutionWorld). r?rpl!
Attachment #9268884 - Attachment description: WIP: Bug 1748315 - Part 0 - Slightly improve `GenerateWebIDLBindings.py` UI. r?rpl! → Bug 1748315 - Part 0 - Slightly improve `GenerateWebIDLBindings.py` UI. r?rpl!
Attachment #9268885 - Attachment description: WIP: Bug 1748315 - Part 1 - Propagate json schema validation errors to the extension. r?rpl! → Bug 1748315 - Part 1 - Propagate json schema validation errors to the extension. r?rpl!
Attachment #9268886 - Attachment description: WIP: Bug 1748315 - Part 2 - Define `url` property on the `WorkerContextChild`. r?rpl! → Bug 1748315 - Part 2 - Define `url` property on the `WorkerContextChild`. r?rpl!
Attachment #9268413 - Attachment description: WIP: Bug 1748315 - Part 3 - Generate WebIDL bindings for the scripting namespace. r?rpl! → Bug 1748315 - Part 3 - Generate WebIDL bindings for the scripting namespace. r?rpl!
Attachment #9268886 - Attachment description: Bug 1748315 - Part 2 - Define `url` property on the `WorkerContextChild`. r?rpl! → Bug 1748315 - Part 2 - Pass `context.childManager` to `Schemas.checkParameters()`. r?rpl!
Blocks: 1779555

Comment on attachment 9268627 [details]
Bug 1748315 - Part 4 - Generate WebIDL bindings for the scripting namespace (ExecutionWorld). r?rpl!

Revision D141579 was moved to bug 1779555. Setting attachment 9268627 [details] to obsolete.

Attachment #9268627 - Attachment is obsolete: true
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d2fb98a5db3b Part 0 - Slightly improve `GenerateWebIDLBindings.py` UI. r=rpl https://hg.mozilla.org/integration/autoland/rev/4c4928220638 Part 1 - Propagate json schema validation errors to the extension. r=rpl
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/535b4e6006ab Part 2 - Pass `context.childManager` to `Schemas.checkParameters()`. r=rpl
Blocks: 1782690
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/23bf633b4229 Part 3 - Generate WebIDL bindings for the scripting namespace. r=rpl,webidl,smaug
Keywords: leave-open
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: