Backed out changeset 24f079da6625 (bug 1111834) for bustage.
authorRyan VanderMeulen <ryanvm@gmail.com>
Mon, 09 Mar 2015 15:30:48 -0400
changeset 250312 bcd0c508c109
parent 250311 46392e569cb6
child 250313 46aa1d78bd2e
push id4543
push userryanvm@gmail.com
push date2015-03-09 19:31 +0000
treeherdermozilla-beta@46aa1d78bd2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1111834
milestone37.0
backs out24f079da6625
Backed out changeset 24f079da6625 (bug 1111834) for bustage.
dom/base/Navigator.cpp
--- a/dom/base/Navigator.cpp
+++ b/dom/base/Navigator.cpp
@@ -1212,22 +1212,16 @@ Navigator::SendBeacon(const nsAString& a
   bool crossOrigin = NS_FAILED(rv);
   nsAutoCString contentType, parsedCharset;
   rv = NS_ParseContentType(mimeType, contentType, parsedCharset);
   if (crossOrigin &&
       contentType.Length() > 0 &&
       !contentType.Equals(APPLICATION_WWW_FORM_URLENCODED) &&
       !contentType.Equals(MULTIPART_FORM_DATA) &&
       !contentType.Equals(TEXT_PLAIN)) {
-
-    // we need to set the sameOriginChecker as a notificationCallback
-    // so we can tell the channel not to follow redirects
-    nsCOMPtr<nsIInterfaceRequestor> soc = nsContentUtils::SameOriginChecker();
-    channel->SetNotificationCallbacks(soc);
-
     nsCOMPtr<nsIChannel> preflightChannel;
     nsTArray<nsCString> unsafeHeaders;
     unsafeHeaders.AppendElement(NS_LITERAL_CSTRING("Content-Type"));
     rv = NS_StartCORSPreflight(channel,
                                cors,
                                principal,
                                true,
                                unsafeHeaders,