зеркало из https://github.com/mozilla/gecko-dev.git
Preserve history on charset reload. Bug 134911, r+sr=bz, a=roc
This commit is contained in:
Родитель
bf99c0bd51
Коммит
0b73a0cc1c
|
@ -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:
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -10,10 +10,12 @@
|
|||
<h2>This page is encoded in Shift_JIS, but has an incorrect meta charset
|
||||
claiming that it is windows-1251</h2>
|
||||
<p id="testpar">ユニコードは、すべての文字に固有の番号を付与します</p>
|
||||
<form>
|
||||
<p>
|
||||
<textarea id="testtextarea" rows=6 cols=60>ユニコードは、すべての文字に固有の番号を付与します</textarea>
|
||||
<input id="testinput" type="text" size=60 value="ユニコードは、すべての文字に固有の番号を付与します">
|
||||
</p>
|
||||
</form>
|
||||
<h2>Expected text on load:</h2>
|
||||
<p>ѓ†ѓjѓRЃ[ѓh‚НЃA‚·‚Ч‚Д‚М•¶Ћљ‚ЙЊЕ—L‚М”ФЌ†‚р•t—^‚µ‚Ь‚·</p>
|
||||
<h2>Expected text on resetting the encoding to Shift_JIS:</h2>
|
||||
|
|
Загрузка…
Ссылка в новой задаче