diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 20bda6c3e2c3..4304aaa0c85f 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -4764,7 +4764,6 @@ nsDocShell::Embed(nsIContentViewer * aContentViewer, // Determine if this type of load should update history switch (mLoadType) { - case LOAD_RELOAD_CHARSET_CHANGE: // don't preserve history in charset reload case LOAD_NORMAL_REPLACE: case LOAD_STOP_CONTENT_AND_REPLACE: case LOAD_RELOAD_BYPASS_CACHE: diff --git a/docshell/test/browser/Makefile.in b/docshell/test/browser/Makefile.in index a0fa10b3cf26..e10b90ea95d1 100644 --- a/docshell/test/browser/Makefile.in +++ b/docshell/test/browser/Makefile.in @@ -46,6 +46,7 @@ include $(topsrcdir)/config/rules.mk _BROWSER_TEST_FILES = \ browser_bug92473.js \ test-form_sjis.html \ + browser_bug134911.js \ browser_bug349769.js \ browser_bug388121-1.js \ browser_bug388121-2.js \ diff --git a/docshell/test/browser/test-form_sjis.html b/docshell/test/browser/test-form_sjis.html index af17f061eb13..91c375deefa1 100644 --- a/docshell/test/browser/test-form_sjis.html +++ b/docshell/test/browser/test-form_sjis.html @@ -10,10 +10,12 @@

This page is encoded in Shift_JIS, but has an incorrect meta charset claiming that it is windows-1251

ユニコードは、すべての文字に固有の番号を付与します

+

+

Expected text on load:

ѓ†ѓjѓRЃ[ѓh‚НЃA‚·‚Ч‚Д‚М•¶Ћљ‚ЙЊЕ—L‚М”ФЌ†‚р•t—^‚µ‚Ь‚·

Expected text on resetting the encoding to Shift_JIS: