mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1338925: Use the correct exception macro in nsDragService::IsValidType. r=mstange
MozReview-Commit-ID: A0sld4ll0fy --HG-- extra : rebase_source : 8bd4f7784f9434ba168c3394cfd7610cb0f6c2fb
This commit is contained in:
parent
c8fa3242ab
commit
d776465025
@ -208,7 +208,7 @@ nsDragService::ConstructDragImage(nsIDOMNode* aDOMNode,
|
|||||||
bool
|
bool
|
||||||
nsDragService::IsValidType(NSString* availableType, bool allowFileURL)
|
nsDragService::IsValidType(NSString* availableType, bool allowFileURL)
|
||||||
{
|
{
|
||||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_RETURN;
|
||||||
|
|
||||||
// Prevent exposing fileURL for non-fileURL type.
|
// Prevent exposing fileURL for non-fileURL type.
|
||||||
// We need URL provided by dropped webloc file, but don't need file's URL.
|
// We need URL provided by dropped webloc file, but don't need file's URL.
|
||||||
@ -220,7 +220,7 @@ nsDragService::IsValidType(NSString* availableType, bool allowFileURL)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
NS_OBJC_END_TRY_ABORT_BLOCK(false);
|
NS_OBJC_END_TRY_ABORT_BLOCK_RETURN(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString*
|
NSString*
|
||||||
|
Loading…
Reference in New Issue
Block a user