Open Bug 2024856 Opened 1 month ago Updated 3 days ago

Can't copy/paste into certain formular fields in Business Central - It opens a sidewindow with the clipboarded text.

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect, P3)

Firefox 148
defect

Tracking

()

UNCONFIRMED

People

(Reporter: it, Unassigned, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image text module.png

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

Steps to reproduce:

The bug exists since version 148. Beta version 149.0b10 does also have it.
Last working version is/was 147.

Open Business Central website.
Go to Articles
Select a Article
Open extended options
Choose "Belonging" (german: Zugehörigkeit)
Choose "Article"
Choose "Text module"
Open text module of your choosing
Click into the lines below "Text"
Press CRTL+V (thats where bug happens)

Actual results:

Screenshot attached.
When pressing CRTL+V in the textline field, text does not get pasted there.
Instead a white space on the right opens with the pasted text in it.
Typing etc. in this area is not possible.

Expected results:

Instead of the white box on the right appearing with pasted text, the pasted text should be inserted into the textfield line. Below the other text.

PS: Entering the text with CRTL+Shift+V and rightclick -> paste
Does have the intended effect how it should work.

Component: Untriaged → DOM: Editor
Product: Firefox → Core
Attached file minimal example

I suspect the problem is that the site is calling document.execCommand("paste") in the Ctrl+V keydown handler. (I can't find the page the reporter is talking about but some other Business Central things have problems with pasting.) Prior to 148 we just returned false for execCommand("paste") (as Chrome does) but now there is a pop-up to allow pasting.

Keywords: regression
Regressed by: 1998195

Is this fixed in 150?

Flags: needinfo?(it)

No, I still get the "Paste" (Einfügen) pop-up even in Nightly and the text is not pasted immediately (I'm not getting the text box on the right, but that may just be an OS difference or something)

Flags: needinfo?(it)

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

For more information, please visit BugBot documentation.

Flags: needinfo?(echen)

(In reply to Leo Tenenbaum [:ltenenbaum] from comment #1)

I suspect the problem is that the site is calling document.execCommand("paste") in the Ctrl+V keydown handler. (I can't find the page the reporter is talking about but some other Business Central things have problems with pasting.) Prior to 148 we just returned false for execCommand("paste") (as Chrome does) but now there is a pop-up to allow pasting.

This is expected behavior, if the clipboard data isn't originated from same origin and page tries to read clipboard data programmatically, there is a paste context menu to notify the user to get the user confirmation.

Hi reporter, is it possible that we could get the access of the page that you report this bug? Or maybe you could save the page (with "Web page, complete" option) locally and share the files to us? This will help us to do further investigation. If you don't want to do this publicly, feel free to send email to me (echen@mozilla.com). Thanks!

Flags: needinfo?(echen) → needinfo?(it)

(In reply to Edgar Chen [:edgar] from comment #6)

Hi reporter, is it possible that we could get the access of the page that you report this bug? Or maybe you could save the page (with "Web page, complete" option) locally and share the files to us? This will help us to do further investigation. If you don't want to do this publicly, feel free to send email to me (echen@mozilla.com). Thanks!

Hi, thanks for looking into this.

Unfortunately the page is not publicly accessible, as it is part of an authenticated Microsoft Dynamics 365 Business Central environment. Granting external access is not possible due to security reasons.
Due to company security policies I’m not allowed to share saved page file.

But as it seems it atleast got partially fixed. If I now try to paste something into those fields with crtl+V a small context box pops up with "insert".
Pressing it or tabbing enters the text saved in the clipboard.

Flags: needinfo?(it)
Severity: -- → S3
Component: DOM: Editor → DOM: Copy & Paste and Drag & Drop
Priority: -- → P3

(In reply to it from comment #7)

Unfortunately the page is not publicly accessible, as it is part of an authenticated Microsoft Dynamics 365 Business Central environment. Granting external access is not possible due to security reasons.
Due to company security policies I’m not allowed to share saved page file.

Thanks for the reply.
Would it be possible to help us to test Safari on your side?
Safari has the same clipboard security model (see comment #5), testing there can help us understand whether this is something we can improve or simply the page’s behavior.

Flags: needinfo?(it)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: