pass ref part of url to allow #page= for pdf viewer

This commit is contained in:
Heilig Benedek 2017-06-08 02:12:52 +02:00
parent 0732329a38
commit a47fe715d1

View file

@ -57,6 +57,9 @@ AtomWebUIControllerFactory::CreateWebUIControllerForURL(content::WebUI* web_ui,
src = param.second;
}
}
if (url.has_ref()) {
src = src + '#' + url.ref();
}
auto browser_context = web_ui->GetWebContents()->GetBrowserContext();
return new PdfViewerUI(browser_context, web_ui, src);
}