Ejemplo n.º 1
0
static bool isInherentlyInsecure(nsIDOMLocation* aLocation)
{
  DOMString protocol;
  nsresult rv =  aLocation->GetProtocol(protocol);
  NS_ENSURE_SUCCESS(rv, false);
  nsString pString = protocol.AsAString();
  return pString.EqualsLiteral("http");
}