[Extensions WebIDL] Convert networking.onc to WebIDL [chromium/src : main]

0 views
Skip to first unread message

Tim (Gerrit)

unread,
Jan 27, 2026, 7:57:23 PM (3 days ago) Jan 27
to Devlin Cronin, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Devlin Cronin

Tim added 2 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Tim . resolved

We've already talked about the strangeness of this schema, but I put two specific call-outs into the commit message touching on them. I've also left a comment on the update I'm doing to the old IDL file along with this change to explain why in more detail. Take a look and tell me what you think.

File tools/json_schema_compiler/test/converted_schemas/networking_onc.idl
Line 5, Patchset 7 (Latest):// <p>The <code>chrome.networking.onc</code> API is used for configuring network
// connections (Cellular, Ethernet, VPN or WiFi). This API is available in
// auto-launched Chrome OS kiosk sessions.</p><p>Network connection
// configurations are specified following <a
// href="https://chromium.googlesource.com/chromium/src/+/main/components/onc/docs/onc_spec.md">
// Open Network Configuration (ONC)</a> specification.</p><p><b>NOTE</b>: Most
// dictionary properties and enum values use UpperCamelCase to match the ONC
// specification instead of the JavaScript lowerCamelCase convention.</p>
Tim . unresolved

This is a little strange and I don't really like modifying the old file in order to make it match the output from the new, but the output from the old file (with the manual indentation it tries to add) resulted it the actual output having extra spaces throughout on linebreaks. This is because the comment processing just removed character returns and the "//" at the start of the line, so it retained the extra spaces used to indent.

The full old description string after processing was previously:
`"description": "<p> The <code>chrome.networking.onc</code> API is used for configuring network connections (Cellular, Ethernet, VPN or WiFi). This API is available in auto-launched Chrome OS kiosk sessions. </p> <p> Network connection configurations are specified following <a href=\"https://chromium.googlesource.com/chromium/src/+/main/components/onc/docs/onc_spec.md\"> Open Network Configuration (ONC)</a> specification. </p> <p> <b>NOTE</b>: Most dictionary properties and enum values use UpperCamelCase to match the ONC specification instead of the JavaScript lowerCamelCase convention. </p>",`
(note the extra spaces).

And the new string is now:
`"description": "<p>The <code>chrome.networking.onc</code> API is used for configuring network connections (Cellular, Ethernet, VPN or WiFi). This API is available in auto-launched Chrome OS kiosk sessions.</p><p>Network connection configurations are specified following <a href=\"https://chromium.googlesource.com/chromium/src/+/main/components/onc/docs/onc_spec.md\"> Open Network Configuration (ONC)</a> specification.</p><p><b>NOTE</b>: Most dictionary properties and enum values use UpperCamelCase to match the ONC specification instead of the JavaScript lowerCamelCase convention.</p>",`

Although this looks kind of messy here in the old IDL format, in the new WebIDL file I've used the auto-<p> tag formatting to make it nicer.

Open in Gerrit

Related details

Attention is currently required from:
  • Devlin Cronin
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia0e28259a2a73e06ca9bbc2a9329160ec69745dd
Gerrit-Change-Number: 7508060
Gerrit-PatchSet: 7
Gerrit-Owner: Tim <tjud...@chromium.org>
Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
Gerrit-Reviewer: Tim <tjud...@chromium.org>
Gerrit-Attention: Devlin Cronin <rdevlin...@chromium.org>
Gerrit-Comment-Date: Wed, 28 Jan 2026 00:57:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Devlin Cronin (Gerrit)

unread,
Jan 28, 2026, 2:09:40 PM (2 days ago) Jan 28
to Tim, Devlin Cronin, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Tim

Devlin Cronin voted and added 2 comments

Votes added by Devlin Cronin

Code-Review+1

2 comments

Patchset-level comments
Devlin Cronin . resolved

LGTM

File tools/json_schema_compiler/test/converted_schemas/networking_onc.idl
Line 5, Patchset 7 (Latest):// <p>The <code>chrome.networking.onc</code> API is used for configuring network
// connections (Cellular, Ethernet, VPN or WiFi). This API is available in
// auto-launched Chrome OS kiosk sessions.</p><p>Network connection
// configurations are specified following <a
// href="https://chromium.googlesource.com/chromium/src/+/main/components/onc/docs/onc_spec.md">
// Open Network Configuration (ONC)</a> specification.</p><p><b>NOTE</b>: Most
// dictionary properties and enum values use UpperCamelCase to match the ONC
// specification instead of the JavaScript lowerCamelCase convention.</p>
Tim . resolved

This is a little strange and I don't really like modifying the old file in order to make it match the output from the new, but the output from the old file (with the manual indentation it tries to add) resulted it the actual output having extra spaces throughout on linebreaks. This is because the comment processing just removed character returns and the "//" at the start of the line, so it retained the extra spaces used to indent.

The full old description string after processing was previously:
`"description": "<p> The <code>chrome.networking.onc</code> API is used for configuring network connections (Cellular, Ethernet, VPN or WiFi). This API is available in auto-launched Chrome OS kiosk sessions. </p> <p> Network connection configurations are specified following <a href=\"https://chromium.googlesource.com/chromium/src/+/main/components/onc/docs/onc_spec.md\"> Open Network Configuration (ONC)</a> specification. </p> <p> <b>NOTE</b>: Most dictionary properties and enum values use UpperCamelCase to match the ONC specification instead of the JavaScript lowerCamelCase convention. </p>",`
(note the extra spaces).

And the new string is now:
`"description": "<p>The <code>chrome.networking.onc</code> API is used for configuring network connections (Cellular, Ethernet, VPN or WiFi). This API is available in auto-launched Chrome OS kiosk sessions.</p><p>Network connection configurations are specified following <a href=\"https://chromium.googlesource.com/chromium/src/+/main/components/onc/docs/onc_spec.md\"> Open Network Configuration (ONC)</a> specification.</p><p><b>NOTE</b>: Most dictionary properties and enum values use UpperCamelCase to match the ONC specification instead of the JavaScript lowerCamelCase convention.</p>",`

Although this looks kind of messy here in the old IDL format, in the new WebIDL file I've used the auto-<p> tag formatting to make it nicer.

Devlin Cronin

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Tim
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ia0e28259a2a73e06ca9bbc2a9329160ec69745dd
    Gerrit-Change-Number: 7508060
    Gerrit-PatchSet: 7
    Gerrit-Owner: Tim <tjud...@chromium.org>
    Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
    Gerrit-Reviewer: Tim <tjud...@chromium.org>
    Gerrit-Attention: Tim <tjud...@chromium.org>
    Gerrit-Comment-Date: Wed, 28 Jan 2026 19:09:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Tim <tjud...@chromium.org>
    satisfied_requirement
    open
    diffy

    Tim (Gerrit)

    unread,
    Jan 30, 2026, 4:55:46 PM (8 hours ago) Jan 30
    to Devlin Cronin, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

    Tim voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ia0e28259a2a73e06ca9bbc2a9329160ec69745dd
    Gerrit-Change-Number: 7508060
    Gerrit-PatchSet: 8
    Gerrit-Owner: Tim <tjud...@chromium.org>
    Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
    Gerrit-Reviewer: Tim <tjud...@chromium.org>
    Gerrit-Comment-Date: Fri, 30 Jan 2026 21:55:37 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Jan 30, 2026, 5:00:03 PM (8 hours ago) Jan 30
    to Tim, Devlin Cronin, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

    Chromium LUCI CQ submitted the change

    Unreviewed changes

    7 is the latest approved patch-set.
    No files were changed between the latest approved patch-set and the submitted one.

    Change information

    Commit message:
    [Extensions WebIDL] Convert networking.onc to WebIDL

    This conversion was largely done using a detailed description of the
    conversion process passed to Gemini CLI. To double check this work, the
    file has also been copied into the converted schemas test to verify no
    functional difference in output.

    Note 1: networking.onc is a bit of a strange one, as it is purely used
    for documentation purposes and is essentially a clone of
    networkingPrivate, which gets aliased to networking.onc. This means it's
    not referenced in any .gni files, so there's no .gni update in this CL.

    Note 2: The top level API comment was slightly updated on the old IDL
    file, which fixes some whitespace issues with how it was previously
    formatted. The new WebIDL version also takes advantage of the automatic
    <p> tag additions the processor can do for comments.
    Fixed: 452428144
    Change-Id: Ia0e28259a2a73e06ca9bbc2a9329160ec69745dd
    Reviewed-by: Devlin Cronin <rdevlin...@chromium.org>
    Commit-Queue: Tim <tjud...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1577533}
    Files:
    • A extensions/common/api/networking_onc.webidl
    • R tools/json_schema_compiler/test/converted_schemas/networking_onc.idl
    • A tools/json_schema_compiler/test/converted_schemas/networking_onc.webidl
    • M tools/json_schema_compiler/web_idl_diff_tool_test.py
    Change size: XL
    Delta: 4 files changed, 2141 insertions(+), 15 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Devlin Cronin
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ia0e28259a2a73e06ca9bbc2a9329160ec69745dd
    Gerrit-Change-Number: 7508060
    Gerrit-PatchSet: 9
    Gerrit-Owner: Tim <tjud...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
    Gerrit-Reviewer: Tim <tjud...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages