Closed Bug 942429 Opened 11 years ago Closed 10 years ago

Right clicking the DevTools CodeMirror source editor creates a light white square

Categories

(DevTools :: Source Editor, defect, P3)

28 Branch
defect

Tracking

(firefox28 unaffected)

RESOLVED WORKSFORME
Tracking Status
firefox28 --- unaffected

People

(Reporter: ntim, Unassigned)

Details

This is mainly visible in DevTools Dark theme.
I'll attach a screenshot soon.
Blocks: 816756
OS: Windows 8.1 → All
Hardware: x86_64 → All
This is caused by the kludge CodeMirror uses to enable copy/paste/select-all in the context menu, even though a non-editable element is clicked. It moves the hidden textarea below the mouse pointer at the last moment, makes it mostly transparent, and lets the click take effect there.

The textarea used to be assigned a white background. Patch [1] makes it transparent. Maybe try if that helps?

[1]: https://github.com/marijnh/CodeMirror/commit/c3b38d016f990c16e126b0fb024fbd2c92656c22
This bug, while important, doesn't block the CodeMirror integration meta-bug.
No longer blocks: 816756
Priority: -- → P3
(In reply to Marijn Haverbeke from comment #1)
> This is caused by the kludge CodeMirror uses to enable copy/paste/select-all
> in the context menu, even though a non-editable element is clicked. It moves
> the hidden textarea below the mouse pointer at the last moment, makes it
> mostly transparent, and lets the click take effect there.
> 
> The textarea used to be assigned a white background. Patch [1] makes it
> transparent. Maybe try if that helps?
> 
> [1]:
> https://github.com/marijnh/CodeMirror/commit/
> c3b38d016f990c16e126b0fb024fbd2c92656c22


The color should also be transparent, since you can also type in that textarea.
Anton, is this still on your radar? I noticed it in a batch of UNCONFIRMED Firefox 28 bugs. Is it something that should stay open, or be closed, or should be brought to someone else's notice? Thanks!
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(anton)
(In reply to Liz Henry :lizzard from comment #4)
> Anton, is this still on your radar? I noticed it in a batch of UNCONFIRMED
> Firefox 28 bugs. Is it something that should stay open, or be closed, or
> should be brought to someone else's notice? Thanks!
You can mark this as RESOLVED FIXED, since the issue no longer happens. It was probably fixed with a recent update of codemirror in Firefox.
Marking as RESOLVED FIXED since the issue no longer exists. Thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(anton)
Resolution: --- → FIXED
WFM unless you know what actually fixed it.
Resolution: FIXED → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.