Closed Bug 737316 Opened 12 years ago Closed 11 years ago

Scratchpad is broken if dom.event.clipboardevents.enabled is set to false

Categories

(DevTools :: Source Editor, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tinybutstrong, Unassigned)

Details

(Whiteboard: [sourceeditor][orion])

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:14.0) Gecko/20120318 Firefox/14.0a1
Build ID: 20120318040231

Steps to reproduce:

After bug 542938 landed user can set dom.event.clipboardevents.enabled to false. Do it, open Scratchpad and paste some html/css code.


Actual results:

Syntax highlighting stop to work in Scratchpad and get more issues.


Expected results:

Doesn't interfere with Scratchpad!
Keywords: regression
Component: Untriaged → Developer Tools: Scratchpad
OS: Windows NT → Windows 8
Version: 14 Branch → Trunk
Confirmed on
http://hg.mozilla.org/mozilla-central/rev/58a2cd0203ee
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120319 Firefox/14.0a1 ID:20120319031122
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: untriaged → developer.tools.scratchpad
OS: Windows 8 → Windows 7
This is not technically a regression. This is by design.

Why it happens: Scratchpad uses the Orion-based source editor component. Orion is a web app that uses the oncut/copy/paste clipboard events to handle the user cut/copy/paste actions. If you disable these, Orion breaks on the web and inside our developer tools.

We should protect Orion's code against such configuration changes.
Keywords: regression
Whiteboard: [sourceeditor][orion]
Thanks for your report!
OS: Windows 7 → All
Hardware: x86_64 → All
Moving to Source Editor component.

Filter on CHELICERAE.
Component: Developer Tools: Scratchpad → Developer Tools: Source Editor
filter on chocolate
Priority: -- → P3
This had been fixed with the CodeMirror switch.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.