Bug 1414209 - Truncate as value after each link header. r=smaug
authorDragana Damjanovic <dd.mozilla@gmail.com>
Mon, 04 Dec 2017 17:48:56 +0100
changeset 394664 f28a10b116e024fcb64a9270273b1bdac7e45d91
parent 394663 23e1da4465598a26d8eb15826c220f9f61c82256
child 394665 87fdf9ff384320cb621944bbfcb3aa4b01362e25
push id97961
push userdd.mozilla@gmail.com
push dateMon, 04 Dec 2017 16:49:24 +0000
treeherdermozilla-inbound@f28a10b116e0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1414209
milestone59.0a1
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
Bug 1414209 - Truncate as value after each link header. r=smaug
dom/base/nsContentSink.cpp
--- a/dom/base/nsContentSink.cpp
+++ b/dom/base/nsContentSink.cpp
@@ -677,16 +677,17 @@ nsContentSink::ProcessLinkHeader(const n
       href.Truncate();
       rel.Truncate();
       title.Truncate();
       type.Truncate();
       media.Truncate();
       anchor.Truncate();
       referrerPolicy.Truncate();
       crossOrigin.SetIsVoid(true);
+      as.Truncate();
 
       seenParameters = false;
     }
 
     start = ++end;
   }
 
   href.Trim(" \t\n\r\f"); // trim HTML5 whitespace