Closed Bug 1851517 Opened 1 years ago Closed 1 year ago

PDF editor resets active field when switching windows

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 116
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- wontfix
firefox117 --- wontfix
firefox118 --- wontfix
firefox119 --- verified

People

(Reporter: andrew.ferg219, Assigned: calixte)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0

Steps to reproduce:

I opened a PDF in Firefox, edited a large text box, switched to another Firefox window, and switched back to the PDF window.

Actual results:

The edit I had made to the large text box disappeared, reverting the text box to its state before I edited it.

Expected results:

The large text box should have preserved my edit and remained the active text box when I switched back to the PDF window.

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → PDF Viewer

:andrew.ferg219, can you share the pdf ?

(In reply to Calixte Denizet (:calixte) from comment #2)

:andrew.ferg219, can you share the pdf ?

Sorry, no. It's a sensitive document.

STR:

The first text area must contain the string "Hello World".

It's a regression from bug 1807983 and especially from:
https://github.com/mozilla/pdf.js/pull/15822

The issue is due to:
https://github.com/mozilla/pdf.js/blob/f2a4f2adaffcd35033641e61624fe37bb4f07ed1/src/display/annotation_layer.js#L1352-L1354

because here the relatedTarget is null but when we come back to the page a focus event is triggered and the previous value is just restored.
In Acrobat, Focus or Blur events aren't triggered either when the focus is moved on a another window (or tab in our case).

Assignee: nobody → cdenizet
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: regression
Priority: -- → P1
Regressed by: 1807983

Set release status flags based on info from the regressing bug 1807983

Does this possibly fix bug 1823262 as well?

Yes it does, thank you.

Duplicate of this bug: 1823262
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Flags: qe-verify+

Reproduced with Fx 119.0a1 (2023-09-04) on Windows 10.
Verified fixed with FX 120.0a1(2023-10-01) and Fx 119.0b3 on Windows 10, Ubuntu22 and macOS 13.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: