browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

webextensions.api.webNavigation.onCommitted/onCompleted/… - Firefox supports `parentFrameId`

Open def00111 opened this issue 1 month ago • 3 comments

What type of issue is this?

"parentFrameId" is marked as not supported in Firefox.

What information was incorrect, unhelpful, or incomplete?

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onCompleted#browser_compatibility https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onDOMContentLoaded#browser_compatibility https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onErrorOccurred#browser_compatibility https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onHistoryStateUpdated#browser_compatibility https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onReferenceFragmentUpdated#browser_compatibility

Also have marked "parentFrameId" as not supported.

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

It should say that "parentFrameId" is supported in Firefox.

Did you test this? If so, how?

I tested it with a webextension.

https://searchfox.org/firefox-main/rev/2e66ab5e9ba19722090f298cc1c9c290c985e274/toolkit/components/extensions/parent/ext-webNavigation.js#138

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onCommitted

MDN metadata

MDN page report details
  • Query: webextensions.api.webNavigation.onCommitted
  • Report started: 2025-11-30T16:20:55.724Z

def00111 avatar Nov 30 '25 16:11 def00111

The webNavigation schema doesn't mention parentFrameId, but indeed the linked source code suggests that it is supported.

@dotproto or @rebloor Can you confirm?

caugner avatar Dec 01 '25 11:12 caugner

We made an update in https://github.com/mdn/browser-compat-data/pull/27012 at the beginning of November, which added information on Chrome only properties in webNavigation, including. supports for parentFrameId. This PR was reviewed by @Rob--W & @dotproto with no suggestion that support was provided in Firefox. I can also find no bugzilla items mentioning parentFrameId.

rebloor avatar Dec 08 '25 18:12 rebloor

All webNavigation events support parentFrameId since the beginning of time (well before WebExtensions was ready, at https://searchfox.org/firefox-main/diff/1ba4b05dd93edb4fc2e9489827d5459432021723/toolkit/components/extensions/ext-webNavigation.js#34 ).

This logic still exists: https://searchfox.org/firefox-main/rev/ac7d7c131dd65058ad6b7ecfa65dc8f31a0f203e/toolkit/components/extensions/parent/ext-webNavigation.js#138

Oddly, the property is only declared for one event in the API schema, but it should be listed at each event: https://searchfox.org/firefox-main/rev/ac7d7c131dd65058ad6b7ecfa65dc8f31a0f203e/toolkit/components/extensions/schemas/web_navigation.json#215

Rob--W avatar Dec 08 '25 21:12 Rob--W