diff --git a/content/base/src/nsContentSink.cpp b/content/base/src/nsContentSink.cpp index c71773177bc2..56094da2fe3f 100644 --- a/content/base/src/nsContentSink.cpp +++ b/content/base/src/nsContentSink.cpp @@ -1177,7 +1177,7 @@ nsContentSink::StartLayout(bool aIgnorePendingSheets) // 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