Bug 1054289 - Scroll to the current ref, not the original one. r=smaug, a=sledru
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Fri, 29 Aug 2014 20:34:35 +0100
changeset 216660 8865201cd18e
parent 216659 46ffe60377d9
child 216661 e47ff024eec1
push id3864
push userryanvm@gmail.com
push date2014-09-04 13:00 +0000
treeherdermozilla-beta@e47ff024eec1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, sledru
bugs1054289
milestone33.0
Bug 1054289 - Scroll to the current ref, not the original one. r=smaug, a=sledru
content/base/src/nsContentSink.cpp
--- a/content/base/src/nsContentSink.cpp
+++ b/content/base/src/nsContentSink.cpp
@@ -1172,17 +1172,17 @@ nsContentSink::StartLayout(bool aIgnoreP
     if (NS_FAILED(rv)) {
       return;
     }
   }
 
   // If the document we are loading has a reference or it is a
   // frameset document, disable the scroll bars on the views.
 
-  mDocument->SetScrollToRef(mDocumentURI);
+  mDocument->SetScrollToRef(mDocument->GetDocumentURI());
 }
 
 void
 nsContentSink::NotifyAppend(nsIContent* aContainer, uint32_t aStartIndex)
 {
   if (aContainer->GetCurrentDoc() != mDocument) {
     // aContainer is not actually in our document anymore.... Just bail out of
     // here; notifying on our document for this append would be wrong.