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:
David Major 2017-02-14 10:23:56 +13:00
parent c8fa3242ab
commit d776465025

View File

@ -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*