Backed out changeset 4b4656732ca8 (bug 1109751)
authorWes Kocher <wkocher@mozilla.com>
Fri, 03 Apr 2015 12:22:22 -0700
changeset 237571 b850625399af6a6a9da081d1b7c1b6e51c5c3cdc
parent 237570 b0de9cef013bc9f0cf3df08272fa66c04357ebed
child 237572 90c5d1cc12a8527befe209929c023d427e7e672d
push id28540
push userphilringnalda@gmail.com
push dateSat, 04 Apr 2015 17:42:19 +0000
treeherdermozilla-central@035959eef3f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1109751
milestone40.0a1
backs out4b4656732ca8e8d947aafdc62a326a3f1c00f0dd
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
Backed out changeset 4b4656732ca8 (bug 1109751)
dom/fetch/Fetch.cpp
--- a/dom/fetch/Fetch.cpp
+++ b/dom/fetch/Fetch.cpp
@@ -573,16 +573,17 @@ private:
                    nsACString::const_iterator& aStart,
                    nsACString::const_iterator& aEnd)
   {
     // We copy the end iterator to keep the original pointing to the real end
     // of the string.
     nsACString::const_iterator end(aEnd);
     const char* beginning = aStart.get();
     if (FindInReadable(aBoundaryString, aStart, end)) {
+      MOZ_ASSERT(aStart.size_forward() >= aBoundaryString.Length());
       // We either should find the body immediately, or after 2 chars with the
       // 2 chars being '-', everything else is failure.
       if ((aStart.get() - beginning) == 0) {
         aStart.advance(aBoundaryString.Length());
         return true;
       }
 
       if ((aStart.get() - beginning) == 2) {