Page MenuHomePhabricator

Bug 1562680. Implement the new syntax for Web IDL dictionary defaulting. r=peterv
ClosedPublic

Authored by bzbarsky on Jul 1 2019, 4:51 PM.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

bzbarsky created this revision.Jul 1 2019, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2019, 4:51 PM
phab-bot requested review of this revision.Jul 1 2019, 4:51 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.
peterv accepted this revision.Jul 2 2019, 9:26 AM
peterv added inline comments.
dom/bindings/Codegen.py
6204–6206

I'm not sure if this comment needs updating or not, does it refer to the default value or the jsval ("we only handle null anyway")?

6213

does

dom/chrome-webidl/MessageManager.webidl
222

Wouldn't it make sense to make this non-optional?

This revision is now accepted and ready to land.Jul 2 2019, 9:26 AM
bzbarsky updated this revision to Diff 126371.Jul 3 2019, 6:07 AM
bzbarsky marked 3 inline comments as done.

Address review comments

bzbarsky added inline comments.Jul 3 2019, 6:07 AM
dom/bindings/Codegen.py
6204–6206

It was referring to the default value. I updated it to be clearer.

6213

Good catch, fixed.

dom/chrome-webidl/MessageManager.webidl
222

Right you are. Done, and the comment removed.

bzbarsky updated this revision to Diff 126372.Jul 3 2019, 6:15 AM

Merge to tip

This revision is now accepted and ready to land.Jul 3 2019, 6:39 AM
bzbarsky updated this revision to Diff 126380.Jul 3 2019, 6:44 AM

Fix FuzzingFunctions too

This revision is now accepted and ready to land.Jul 3 2019, 7:52 AM