зеркало из https://github.com/mozilla/gecko-dev.git
always absolutize urls in html copy encoder (doing the right thing is covered in bug #32768)
This commit is contained in:
Родитель
ed4ef8883e
Коммит
ee79b12867
|
@ -1025,7 +1025,9 @@ nsHTMLCopyEncoder::Init(nsIDocument* aDocument,
|
|||
|
||||
mMimeType = NS_LITERAL_STRING("text/html");
|
||||
|
||||
mFlags = aFlags;
|
||||
// Make all links absolute when copying
|
||||
// (see related bugs #57296, #41924, #58646, #32768)
|
||||
mFlags = aFlags | OutputAbsoluteLinks;
|
||||
|
||||
nsresult rv;
|
||||
mParserService = do_GetService(kParserServiceCID, &rv);
|
||||
|
|
|
@ -1025,7 +1025,9 @@ nsHTMLCopyEncoder::Init(nsIDocument* aDocument,
|
|||
|
||||
mMimeType = NS_LITERAL_STRING("text/html");
|
||||
|
||||
mFlags = aFlags;
|
||||
// Make all links absolute when copying
|
||||
// (see related bugs #57296, #41924, #58646, #32768)
|
||||
mFlags = aFlags | OutputAbsoluteLinks;
|
||||
|
||||
nsresult rv;
|
||||
mParserService = do_GetService(kParserServiceCID, &rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче