Open Bug 1142625 Opened 9 years ago Updated 2 years ago

Cannot access textbox access menu when mixing xul in a html document because of TypeError: document.commandDispatcher is undefined

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: gl, Unassigned)

Details

Attachments

(2 files)

Attached file textbox.xhtml
In the devtools rule view, we are currently mixing xul in a html document. For a live example, you can apply the part 1 patch in bug 1120616 and open up the inspector and the textbox appears under the rules tab (See https://bugzilla.mozilla.org/attachment.cgi?id=8559877 for illustration). This is seen as a blocker for the feature from landing. This is the current html document http://mxr.mozilla.org/mozilla-central/source/browser/devtools/styleinspector/cssruleview.xhtml.

I have attached some examples of reduce test cases illustrating the bug where no context menu appears if you right click on the text box. This occurs for both <textbox> and <input> elements. The context menu in question should allow users to select the standard copy, paste, undo, select all, etc. functions. 

The error that appears when we right click is as follows:
JavaScript error: chrome://global/content/bindings/textbox.xml, line 487: TypeError: document.commandDispatcher is undefined

Converting to pure xul is not seen as a favourable option.
Attached file htmlinput.xhtml
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: