chromeless icon indicating copy to clipboard operation
chromeless copied to clipboard

Drag and Drop fullpath

Open morozovm opened this issue 15 years ago • 1 comments

file.mozFullPath return nothing, how get fulllpath of file that was dropped? Maybe enable UniversalFileRead privilege, but netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");

return

info: Uncaught-Exception: 'Error: A script from "resource://app" was denied UniversalFileRead privileges.

morozovm avatar Oct 24 '11 03:10 morozovm

fixed by commented If statement

nsDOMFile::GetMozFullPath(nsAString &aFileName) { NS_ASSERTION(mIsFullFile, "Should only be called on files"); //if (nsContentUtils::IsCallerTrustedForCapability("UniversalFileRead")) { return GetMozFullPathInternal(aFileName); //} aFileName.Truncate(); return NS_OK; }

morozovm avatar Oct 24 '11 21:10 morozovm