Open Bug 2020285 Opened 9 months ago Updated 5 months ago

www.public.nm.eurocontrol.int - Drop-down buttons from "Network Headline News" section does not show content when expanded

Categories

(Web Compatibility :: Site Reports, defect, P1)

Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:1, firefox-esr115 unaffected, firefox-esr140 unaffected, firefox148 wontfix, firefox149 verified, firefox150 verified, firefox151 verified)

ASSIGNED
Webcompat Priority P3
Webcompat Score 1
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox148 --- wontfix
firefox149 --- verified
firefox150 --- verified
firefox151 --- verified

People

(Reporter: ctanase, Assigned: vhilla)

References

(Regression, )

Details

(5 keywords, Whiteboard: [webcompat-source:web-bugs])

User Story

user-impact-score:0
platform:windows,mac,linux,android
impact:content-missing
configuration:general
affects:all
branch:release
diagnosis-team:dom

Attachments

(2 files, 2 external files)

Environment:
Operating system: Windows 10
Firefox version: Firefox 148.0/150

Steps to reproduce:

  1. Go to https://www.public.nm.eurocontrol.int/PUBPORTAL/gateway/spec/
  2. Click on the drop-downs located in the "Network Headline News" section.

Expected Behavior:
Gets expanded and shows content.

Actual Behavior:
Opens but doesn't show any content.

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/209979

Attached image image.png โ€”

:vhilla, since you are the author of the regressor, bug 543435, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(vhilla)

The clickable items are supposed to inject an about:blank iframe and fill it with content. It seems that the iframe gets injected but content doesn't get filled in.

Lots of minified code. :-(

Attached file injected-async-load.js โ€”

If it's a regression from bug 543435, likely they expect an async load event.

The content gets filled in if I manually dispatch a load event. I.e. Click the first "Tactical Update" dropdown, then exec document.querySelector("#eurocontrol_gwt_ext_stc_0").dispatchEvent(new Event("load")). Though the content initially expands, stays blank, then shrinks and the load doesn't trigger a resize.

If the load event comes async but quick enough, the resize works fine. The attachment is a quick snippet from ChatGPT to do this via a MutationObserver. My initial attempt that limited this to the specific iframe id didn't work, which might hint at them setting load and id after binding the iframe.

Switching my UA to Chrome also fixes this.

User Story: (updated)
Webcompat Priority: --- → P3
Webcompat Score: --- → 1

(In reply to Henri Sivonen (:hsivonen) from comment #4)

The clickable items are supposed to inject an about:blank iframe and fill it with content. It seems that the iframe gets injected but content doesn't get filled in.

Lots of minified code. :-(

Logging the stack trace on document.createElement("iframe") shows lots of line 9 > injectedScript stack frames, starting at some onScriptDownloaded method in MainPages.nocache.js where some element is dynamically inserted. If I try to attach a debugger on createElement("iframe"), the stack is empty. Seems like they dynamically inject some script that can't easily be debugged.


So I guess the options are

  • Reach out to the site because they likely have some Firefox-specific code that expects initial about:blank to load async.
  • Or ship an intervention to
    • Spoof the UA
    • Or have a list of (URI, iframe selector) pairs for which we dispatch an additioal, async load event on bind. I expect there will be a few more such pages, like bug 2020668.
Flags: needinfo?(vhilla)

The planned Fx148 planned dot release builds on Monday, 2026-03-09 with release uplift requests due by eod Friday 2026-03-06.
:vhilla, I see in Comment 7 you don't mention a patch as a fix, but double-checking and mentioning the Fx148 dot release.

Flags: needinfo?(vhilla)

Thanks, yes I don't think this is something we can fix in Gecko.

Flags: needinfo?(vhilla)

I think we should ship an UA spoof intervention. That's simpler than dispatching events.

I'm unsure for which URIs to enable an intervention. I suspect we want to target this Network Operational Portal (NOP).

https://www.eurocontrol.int/network-operations links to a protected https://www.nm.eurocontrol.int/PORTAL/gateway/spec/index.html and public https://www.public.nm.eurocontrol.int/PUBPORTAL/gateway/spec/ version. I can't test whether the protected version has a similar issue.

I've been trying to copy https://phabricator.services.mozilla.com/D249011 as it's given as example for UA overriding in https://wiki.mozilla.org/Compatibility/System_Addon/Interventions. Doing so overrides navigator.userAgent on the top level, but the following still leaks the UA:

ifr = document.createElement("iframe")
document.body.append(ifr)
ifr.contentWindow.navigator.userAgent

The page remains broken with the intervention. The following document start MAIN world content script would work:

Object.defineProperty(navigator, "userAgent", {
  get: () => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
  configurable: true,
});

I also don't see a simple way to add such a match_about_blank content script to the webcompat extension, because buildContentScriptRegistrations doesn't support it on intervention.content_scripts. Claude says even if it did, that uses browser.scripting.registerContentScripts which also doesn't support it.

Assignee: nobody → vhilla
Status: NEW → ASSIGNED

Bug 2021253 for a cross-site fix for the component.

Severity: -- → S2
User Story: (updated)
Webcompat Score: 1 → 4
Priority: -- → P1

Could you request an uplift to beta for this patch once it has landed? Thank you!

Flags: needinfo?(vhilla)
Flags: needinfo?(vhilla)
Keywords: leave-open

Vincent, would it be a safe uplift to 149?

Flags: needinfo?(vhilla)

It's a safe uplift if we want it that badly, sure. We'll just have to rebase it against beta. I'll attach a separate patch for it for Vincent shortly.

Flags: needinfo?(vhilla)

firefox-beta Uplift Approval Request

  1. Click on the drop-downs located in the "Network Headline News" section.
  2. Confirm that the drop-downs expand to show their content.
  • Risk associated with taking this patch: low
  • Explanation of risk level: This only affects our built-in webcompat addon, and only on the specified site.
  • String changes made/needed?: none
  • Is Android affected?: yes
Flags: qe-verify+
User Story: (updated)
Webcompat Score: 4 → 1

Thanks, I wasn't sure if we want to uplift based on the slack messages. But of course, it's safe to do.

Regressions: 2024564
Attachment #9553753 - Attachment description: WIP: Bug 2020285 - Add UA override for Eurocontrol NOP → Bug 2020285 - Add UA override for Eurocontrol NOP
Attachment #9553753 - Flags: approval-mozilla-release+
QA Whiteboard: [qa-ver-needed-c151/b150][uplift]
User Story: (updated)

Verified - Fixed in the latest Nightly build 151.0a1 (2026-04-06) Beta 150.0b6 and 149.0.2(build id: 20260403140140), using Windows 10. The drop-downs located in the "Network Headline News" section are now expended and show their content correctly.
@Vincent, is there anything else to do here on your end? I ask this because I see the status of the bug and the tracking flags are not marked as resolved/fixed yet.
Thank you!

QA Whiteboard: [qa-ver-needed-c151/b150][uplift] → [qa-ver-done-c151/b150][uplift]
Flags: qe-verify+ → needinfo?(vhilla)
QA Contact: ailea

I am updating the tracking flags according to QA results, maybe the leave-open keyword interfered with automation.

Tom said to leave bugs open while an intervention is active. There's nothing left to do from my side.

Ni? to triage owner, are the tracking flags and status correct now?

Flags: needinfo?(vhilla)

Given comment 5 - comment 9, I think we can consider this diagnosed; I don't think it makes sense in the needs-diagnosis queue anymore.

As noted in comment 7, it appears the diagnosis was that the site "likely [has] some Firefox-specific code that expects initial about:blank to load async." And we're now working around that with a UA-spoof, and we don't have a good way to fix this beyond that.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: