зеркало из https://github.com/mozilla/pjs.git
Bug 596385: Remove File.url since the spec now uses a different syntax. r=jst a=blocker
This commit is contained in:
Родитель
bb3979f3e2
Коммит
833224aa51
|
@ -41,7 +41,7 @@ interface nsIDOMFileError;
|
|||
interface nsIInputStream;
|
||||
interface nsIURI;
|
||||
|
||||
[scriptable, uuid(e72e2d6e-e267-4ea1-a798-6703d3a2c362)]
|
||||
[scriptable, uuid(414e5d40-c831-4b28-acdc-8ff02d1a317d)]
|
||||
interface nsIDOMFile : nsISupports
|
||||
{
|
||||
//fileName and fileSize are now deprecated attributes
|
||||
|
@ -53,8 +53,6 @@ interface nsIDOMFile : nsISupports
|
|||
readonly attribute unsigned long long size;
|
||||
readonly attribute DOMString type;
|
||||
|
||||
readonly attribute DOMString url;
|
||||
|
||||
DOMString getAsText(in DOMString encoding); // raises(FileException) on retrieval
|
||||
DOMString getAsDataURL(); // raises(FileException) on retrieval
|
||||
DOMString getAsBinary(); // raises(FileException) on retrieval
|
||||
|
|
|
@ -177,22 +177,6 @@ nsDOMFile::GetInternalStream(nsIInputStream **aStream)
|
|||
nsIFileInputStream::REOPEN_ON_REWIND);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMFile::GetUrl(nsAString& aURL)
|
||||
{
|
||||
if (mURL.IsEmpty()) {
|
||||
GetInternalUrl(mURL);
|
||||
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryReferent(mRelatedDoc);
|
||||
NS_LossyConvertUTF16toASCII shortURL(mURL);
|
||||
doc->RegisterFileDataUri(shortURL);
|
||||
}
|
||||
|
||||
aURL = mURL;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMFile::GetInternalUrl(nsAString& aURL)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче