Commit cdc6f584 authored by Andrea Marchesini's avatar Andrea Marchesini
Browse files

Bug 1504953 - SecurityError for unsupported scheme in Workers and SharedWorkers, r=smaug

parent 1861753b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ ChannelFromScriptURL(nsIPrincipal* principal,
                       nullptr, // aCallbacks
                       aLoadFlags,
                       ios);
    NS_ENSURE_SUCCESS(rv, rv);
    NS_ENSURE_SUCCESS(rv, NS_ERROR_DOM_SECURITY_ERR);
  } else {
    // We must have a loadGroup with a load context for the principal to
    // traverse the channel correctly.
@@ -262,7 +262,7 @@ ChannelFromScriptURL(nsIPrincipal* principal,
                         ios);
    }

    NS_ENSURE_SUCCESS(rv, rv);
    NS_ENSURE_SUCCESS(rv, NS_ERROR_DOM_SECURITY_ERR);

    if (cspEventListener) {
      nsCOMPtr<nsILoadInfo> loadInfo = channel->GetLoadInfo();
+0 −4
Original line number Diff line number Diff line
[same-origin.html]
  [unsupported_scheme]
    expected: FAIL
+0 −4
Original line number Diff line number Diff line
[same-origin.html]
  [unsupported_scheme]
    expected: FAIL