Closed Bug 1511391 Opened 7 years ago Closed 7 years ago

Cannot focus cursor in the textarea in the sidebar webextension

Categories

(WebExtensions :: General, defect, P2)

defect

Tracking

(firefox-esr60 unaffected, firefox64 unaffected, firefox65 wontfix, firefox66 wontfix)

RESOLVED DUPLICATE of bug 1383910
Tracking Status
firefox-esr60 --- unaffected
firefox64 --- unaffected
firefox65 --- wontfix
firefox66 --- wontfix

People

(Reporter: vladikoff, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Attached image save-bug.gif
### STR * Use Firefox 65.0a1 (2018-11-28) (64-bit) * Install Notes from TestPilot via https://testpilot.firefox.com/experiments/notes/ * Open Welcome note, try to focus the cursor on text ### Expected Cursor should jump between the textarea lines ### Actual Nothing happens ### Details Works fine in 63.0.3 (64-bit) Might be related to https://bugzilla.mozilla.org/show_bug.cgi?id=1496288
Flags: needinfo?(mixedpuppy)

[Regression window]:
Considering the fact that this issue is not reproducible on latest Firefox Release and Beta builds, using the Mozregression tool I've managed to find the following regression window:

Last good revision: f17b7ba6d0aa737d4f69a0fc3206da8c539225e5
First bad revision: 8e88421b280c2afda62f4ba704ce29701c30549f
Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=f17b7ba6d0aa737d4f69a0fc3206da8c539225e5&tochange=8e88421b280c2afda62f4ba704ce29701c30549f

From the pushlog it seems that the Bug 1506547 has caused this regression.

From https://github.com/mozilla/notes/issues/1390

What editor is this using? Is there any chance to upload to this bug an HTML test-case that reproduces the issue?

Flags: needinfo?(vlad)

Moving to layout, P2 for now to figure out what's going on and if it's an issue with my patch or with the Notes experiment.

Random other question: Is there a way to inspect the HTML that the extension installs?

Component: General → Layout
Priority: -- → P2
Product: WebExtensions → Core

From a brief glance at https://github.com/mozilla/notes/blob/master/src/sidebar/index.html, it looks like this is using the "CKEditor".

To inspect/debug, you can go to about:debugging, scroll down to where Firefox Notes is, select "Debug". On the inspector pane of the window that opens, look to the top-right of the toolbar, there's two buttons. Select the left most one (not the ..., the split window like one), select "sidebar/index.html" and that should let you inspect it.

Ok, so the good think is that all the CKEditor demos work on Nightly, so there's definitely something specific to the add-on.

That's great, because I did check CKEditor before landing my patch, since it caused problems in some of the bugs that caused the hacks that my patch removed to creep in our codebase ;)

Anyhow, that's great to know, thanks! I'll try to take a look.

Flags: needinfo?(emilio)

Ok, so this was fun as hell to find. The reason this bug happens only for the extension is:

https://searchfox.org/mozilla-central/rev/76fe4bb385348d3f45bbebcf69ba8c7283dfcec7/browser/components/extensions/extension.css#16

The low-risk fix is:

https://github.com/mozilla/notes/pull/1431

Now, why in the world is there a -moz-user-select: none rule for the root element for web-extensions? I don't know. :bwinton, maybe you know?

There's a further incompatibility issue here, which is that we don't allow selecting elements with -moz-user-select: none if they're editables... Maybe we should change that.

Component: Layout → General
Flags: needinfo?(emilio) → needinfo?(bwinton)
Product: Core → WebExtensions
See Also: → 1518339

I filed bug 1518339 for the interop issue between Blink and WebKit.

It prevents any element in the page from getting selected and edited, which is not really desirable. This is workaround-able by overriding this rule, but seems a bad default. If we wanted to make some browser-specific thing not selectable we should target it more explicitly (like .browser-style > label in this same stylesheet).

I wasn't involved in browser-style when it was created, I assumed this select statement was done for a reason. Removing it will affect all extensions that choose to enable browser_style. I think this should be thought through more.

Flags: needinfo?(mixedpuppy)
Attachment #9034878 - Attachment is obsolete: true

Per bug 1383910 comment 7 and the phabricator discussion this is the intended behavior, so I don't think there's a point in keeping this open. My fix to the extension should be merged instead, I guess, and we can fix bug 1518339 too on the layout side.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE

This is now fixed in the Notes 4.1.2 release, sorry about the delay!

Flags: needinfo?(vlad)

And I think this was resolved without my input, so I'm clearing my needinfo. 😉

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

Attachment

General

Created:
Updated:
Size: