chromeless
chromeless copied to clipboard
Drag and Drop fullpath
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.
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; }