Bug 1062469 - Trailing whitespace plague in nsNPAPIPlugin. r=bsmedberg
authorJohn Schoenick <jschoenick@mozilla.com>
Wed, 03 Sep 2014 11:25:56 -0700
changeset 203452 cc6ca12f7979af0f6ae41709934db27b51b342aa
parent 203451 746180e3801c70e21347eca47536f60f01da4d50
child 203453 fb92ec3cabb1af658d5d322688d131601dff0f5b
push id27428
push usercbook@mozilla.com
push dateThu, 04 Sep 2014 13:00:04 +0000
treeherdermozilla-central@7bfd030e8fc8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs1062469
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1062469 - Trailing whitespace plague in nsNPAPIPlugin. r=bsmedberg
dom/plugins/base/nsNPAPIPlugin.cpp
--- a/dom/plugins/base/nsNPAPIPlugin.cpp
+++ b/dom/plugins/base/nsNPAPIPlugin.cpp
@@ -861,17 +861,17 @@ NPError
   // Block Adobe Acrobat from loading URLs that are not http:, https:,
   // or ftp: URLs if the given target is null.
   if (!target && relativeURL &&
       (strncmp(relativeURL, "http:", 5) != 0) &&
       (strncmp(relativeURL, "https:", 6) != 0) &&
       (strncmp(relativeURL, "ftp:", 4) != 0)) {
     nsNPAPIPluginInstance *inst = (nsNPAPIPluginInstance *) npp->ndata;
 
-    
+
     const char *name = nullptr;
     nsRefPtr<nsPluginHost> host = nsPluginHost::GetInst();
     host->GetPluginName(inst, &name);
 
     if (name && strstr(name, "Adobe") && strstr(name, "Acrobat")) {
       return NPERR_NO_ERROR;
     }
   }
@@ -2091,24 +2091,24 @@ NPError
     else {
       return NPERR_GENERIC_ERROR;
     }
   }
 
 #ifndef NP_NO_QUICKDRAW
   case NPNVsupportsQuickDrawBool: {
     *(NPBool*)result = false;
-    
+
     return NPERR_NO_ERROR;
   }
 #endif
 
   case NPNVsupportsCoreGraphicsBool: {
     *(NPBool*)result = true;
-    
+
     return NPERR_NO_ERROR;
   }
 
   case NPNVsupportsCoreAnimationBool: {
     *(NPBool*)result = nsCocoaFeatures::SupportCoreAnimationPlugins();
 
     return NPERR_NO_ERROR;
   }
@@ -2168,24 +2168,24 @@ NPError
     }
 
     case kMatrixInterfaceV0_ANPGetValue: {
       LOG("get matrix interface");
       ANPMatrixInterfaceV0 *i = (ANPMatrixInterfaceV0 *) result;
       InitMatrixInterface(i);
       return NPERR_NO_ERROR;
     }
-      
+
     case kPathInterfaceV0_ANPGetValue: {
       LOG("get path interface");
       ANPPathInterfaceV0 *i = (ANPPathInterfaceV0 *) result;
       InitPathInterface(i);
       return NPERR_NO_ERROR;
     }
-      
+
     case kTypefaceInterfaceV0_ANPGetValue: {
       LOG("get typeface interface");
       ANPTypefaceInterfaceV0 *i = (ANPTypefaceInterfaceV0 *) result;
       InitTypeFaceInterface(i);
       return NPERR_NO_ERROR;
     }
 
     case kPaintInterfaceV0_ANPGetValue: {
@@ -2231,17 +2231,17 @@ NPError
     }
 
     case kSurfaceInterfaceV0_ANPGetValue: {
       LOG("get surface interface");
       ANPSurfaceInterfaceV0 *i = (ANPSurfaceInterfaceV0 *) result;
       InitSurfaceInterface(i);
       return NPERR_NO_ERROR;
     }
-      
+
     case kSupportedDrawingModel_ANPGetValue: {
       LOG("get supported drawing model");
       uint32_t* bits = reinterpret_cast<uint32_t*>(result);
       *bits = kBitmap_ANPDrawingModel && kSurface_ANPDrawingModel;
       return NPERR_NO_ERROR;
     }
 
     case kJavaContext_ANPGetValue: {