## Meta -
OS:  OSX
Selenium Version:  3.5.2 (head of repo)
Browser:  iOS Safari
Browser Version:  iOS 10.3

## Expected Behavior - Using Selenium Grid the platformName would remain unchanged (keep behavior from 3.4)

## Actual Behavior - With Selenium Grid the platformName is overridden by platform in ImmutableCapabilities because iOS is not defined in Platform.java

## Steps to reproduce -
(already found a temporary fix with help from Simon and Jim)
Run an iOS test against SauceLabs with 3.4 and 3.5. As part of NewSessionPayload (in 3.5) when creating the capabilities iOS is an unrecognized platform so platformName (originally iOS) is set to platform (Mac), providing a bad set of capabilities for the test to actually run.
}
      }
    }
    throw new WebDriverException("Unrecognized platform: " + name);
  }
  /**
   * Decides whether the previous match is better or not than the current match.  If previous match
   * is null, the newer match is always better.
   *
   * @param previous the previous match
   * @param matcher the newer match
   * @return true if newer match is better, false otherwise
   */
  private static boolean isBetterMatch(String previous, String matcher) {
    return previous == null || matcher.length() >= previous.length();
  }
  /**
   * Heuristic for comparing two platforms.  If platforms (which is not the same thing as operating
   * systems) are found to be approximately similar in nature, this will return true.  For instance
   * the LINUX platform is similar to UNIX, and will give a positive result if compared.
   *
   * @param compareWith the platform to compare with
   * @return true if platforms are approximately similar, false otherwise
   */
  public boolean is(Platform compareWith) {
    return this == compareWith || this.family().is(compareWith);
  }
  /**
   * Returns a platform that represents a family for the current platform.  For instance
   * the LINUX if a part of the UNIX family, the XP is a part of the WINDOWS family.