Closed
Bug 223361
Opened 22 years ago
Closed 21 years ago
Not working execcommand cut,copy,paste after enablePrivilege UniversalXPConnect
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: martijn.martijn, Assigned: bugzilla)
Details
Attachments
(1 file)
907 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031021 Firebird/0.7+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031021 Firebird/0.7+
See the testcase coming up.
I have a midas rich editor, and I have a function who does the basic cut,copy,
paste operations:
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
y.contentWindow.document.execCommand(f, false, null);
So you get first a warning if you want to allow UniversalXPConnect privileges
for this page. If you allow this, it should cut,copy and paste.
This works in Mozilla, but not in Firebird. I get an exception there:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
file:///C:/cutcopypaste.htm :: doe :: line 16" data: no]
Reproducible: Always
Steps to Reproduce:
1.See testcase
2.
3.
Actual Results:
I got an error. See above
Expected Results:
Do the same as Mozilla
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•21 years ago
|
||
confirming
this really only seems to affect the cut/copy/paste, since every other midas
command works. I've uploaded the midas demo, but here it gains the privileges
with xpconnect instead of the prefs at the orginal demo. You can find it at
http://home.t-online.de/home/monikawein/midas2.html
blake: any chance looking into this? imo midas is quite important for corporate
users
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Comment 3•21 years ago
|
||
ok i tried to track down this bug a little bug, basicly important information
is this:
### CanAccess(Clipboard.cutcopy, 1) sameOrigin
###!!! ASSERTION: CheckPropertyAccessImpl called without a target object or
URL: 'Error', file /mozilla2/mozilla/caps/src/nsScriptSecurityManager.cpp,
line 664
Break: at file /mozilla2/mozilla/caps/src/nsScriptSecurityManager.cpp, line
664
### CanAccess(UnnamedClass.toString, 0) noAccess CheckXPCPerms GRANTED.
JavaScript error:
line 0: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///home/mcsmurf/
midas2.html :: tbclick :: line 193" data: no]
Summary: Not working execcommand cut,copy,paste after enablePrivilege UniversalXPConnect → Not working execcommand cut,copy,paste after enablePrivilege UniversalXPConnect
Comment 4•21 years ago
|
||
What version of firefox?
This works for me in Firefox 0.9.2 (if I save the file locally)
Comment 5•21 years ago
|
||
Didn't realize how old the bug was.
This works in current Firefox.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 6•21 years ago
|
||
Yes, indeed. I forgot about this bug. Thanks for checking!
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•