Closed Bug 2026037 Opened 4 months ago Closed 4 months ago

Firefox fails to correctly enter predefined values into form, whereas Chromium does.

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 151
x86_64
All
defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- fixed

People

(Reporter: B.RJL, Assigned: calixte)

References

Details

Attachments

(4 files)

Attached file The Affected PDF File

The PDF File

Attach (recommended) or Link to PDF file here.

It is available at assets.publishing.service.gov.uk/media/68a4769b246cc964c53d29d8/MATCF_English.pdf, and attached.

How To Reproduce The Problem

  1. Download the file:

    #!/usr/bin/env sh
    curl https://assets.publishing.service.gov.uk/media/68a4769b246cc964c53d29d8/MATCF_English.pdf#page=2:~:text=Example:%202023%20to%2024 -O -J
    xdg-open MATCF_English.pdf
    
  2. Select one of the drop-downs on the second page:

    #!/usr/bin/env xdg-open
    location.hash = "page=2";
    document.querySelector('#pdfjs_internal_id_44R').click();
    
  3. Select an exposed element of its context menu (shadow root):

    #!/usr/bin/env sh
    ydotool key 108:1 108:0 28:1 28:0
    

What The Expected Behaviour Is

Each square should be filled with the relevant data.


(add screenshot)

That depends upon id=278469. However, I'll attach it after submission.

What Went Wrong

The first two squares are filled with four squares' worth of data.


(add screenshot)

My Environment

  1. #!/usr/bin/env sh
    rpm -qf $(desktop=$(xdg-settings get default-web-browser); cmd=$(grep -h -m1 '^Exec=' /usr/share/applications/$desktop ~/.local/share/applications/$desktop 2>/dev/null | cut -d= -f2 | sed 's/ %.*//'); which "$cmd") \
    	--queryformat "$(
    		cat <<'EOF'
    Name: %{NAME}
    Version: %{VERSION}
    Release: %{RELEASE}
    Architecture: %{ARCH}
    Install Date: %{INSTALLTIME:date}
    Size: %{SIZE}
    Signature: %{SIGPGP:pgpsig}
    Source RPM: %{SOURCERPM}
    Build Date: %{BUILDTIME:date}
    Build Host: %{BUILDHOST}
    Packager: %{PACKAGER}
    Vendor: %{VENDOR}
    EOF
    	)"$'\n' | yq -P
    
  2. Name: firefox-nightly
    Version: 151.0a1
    Release: 20260324002715
    Architecture: x86_64
    Install Date: Tue 24 Mar 2026 10:46:28 GMT
    Size: 382082898
    Signature: (none)
    Source RPM: firefox-nightly-151.0a1-20260324002715.src.rpm
    Build Date: Tue 24 Mar 2026 02:33:51 GMT
    Build Host: 811542a7f36c
    Packager: (none)
    Vendor: Mozilla
    

My Environment

  1. #!/usr/bin/env sh
    rpm -qf $(command -v chromium-browser) \
    	--queryformat "$(
    		cat <<'EOF'
    Name: %{NAME}
    Version: %{VERSION}
    Release: %{RELEASE}
    Architecture: %{ARCH}
    Install Date: %{INSTALLTIME:date}
    Size: %{SIZE}
    Signature: %{SIGPGP:pgpsig}
    Source RPM: %{SOURCERPM}
    Build Date: %{BUILDTIME:date}
    Build Host: %{BUILDHOST}
    Packager: %{PACKAGER}
    Vendor: %{VENDOR}
    EOF
    	)"$'\n' | yq -P
    
  2. Name: chromium
    Version: 146.0.7680.80
    Release: 1.fc43
    Architecture: x86_64
    Install Date: Wed 18 Mar 2026 11:43:33 GMT
    Size: 329340552
    Signature: (none)
    Source RPM: chromium-146.0.7680.80-1.fc43.src.rpm
    Build Date: Sun 15 Mar 2026 22:21:25 GMT
    Build Host: buildhw-x86-04.rdu3.fedoraproject.org
    Packager: Fedora Project
    Vendor: Fedora Project
    

The white spaces are collapsed in the select options: they must be replaced by some &nbsp.

Assignee: nobody → cdenizet
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P1
Depends on: 2026908
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

The patch landed in nightly and beta is affected.
:calixte, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(cdenizet)
Flags: needinfo?(cdenizet)
QA Whiteboard: [qa-triage-done-c152/b151]
Depends on: 2039544
No longer depends on: 2039544
Depends on: 2039755
No longer depends on: 2039755
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: