mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Bug 1051221 - Changed way to remove 'view-souce:' in URL using regex-replace instead of substring, used while saving the MathML source page. r=MattN
This commit is contained in:
parent
489904c774
commit
5bce767329
@ -323,7 +323,7 @@ function ViewSourceReload()
|
||||
// Strips the |view-source:| for internalSave()
|
||||
function ViewSourceSavePage()
|
||||
{
|
||||
internalSave(window.content.location.href.substring(12),
|
||||
internalSave(window.content.location.href.replace(/^view-source:/i, ""),
|
||||
null, null, null, null, null, "SaveLinkTitle",
|
||||
null, null, window.content.document, null, gPageLoader);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user