Bug 324291 - "Reporter should record the character encoding used to display the page" [p=raccettura/gavin r=gavin/raccettura aM9=beltzner]

This commit is contained in:
reed@reedloden.com 2007-11-05 14:45:55 -08:00
parent 17419d6a48
commit d8b6415094
4 changed files with 15 additions and 3 deletions

View File

@ -8,6 +8,7 @@
<!ENTITY reportBuildConfig "Build Config">
<!ENTITY reportUseragent "Useragent">
<!ENTITY reportLanguage "Language">
<!ENTITY reportCharset "Charset">
<!ENTITY reportEmail "Email">
<!ENTITY error "Error Details">
<!ENTITY faultCode "Code">

View File

@ -88,6 +88,10 @@
<th>&reportLanguage;:</th>
<td><span id="langStri"/></td>
</tr>
<tr>
<th>&reportCharset;:</th>
<td><span id="charsetStri"/></td>
</tr>
<tr>
<th>&reportEmail;:</th>
<td><span id="emailStri"/></td>

View File

@ -49,6 +49,7 @@ const gParamURL = window.arguments[0];
const gParamUserAgent = navigator.userAgent;
const gParamOSCPU = navigator.oscpu;
const gParamPlatform = navigator.platform;
const gCharset = window.arguments[1];
// Globals
var gParamDescription;
@ -138,7 +139,7 @@ function initForm() {
var privacyLink = document.getElementById("privacyPolicy");
privacyLink.setAttribute("href", url);
// We don't let the user go forward until they fufill certain requirements - see validateform()
// We don't let the user go forward until they fulfill certain requirements - see validateform()
reportWizard.canAdvance = false;
document.getElementById("problem_type").focus();
@ -216,7 +217,7 @@ function sendReport() {
gParamBuildConfig = getBuildConfig();
gParamGecko = getGecko();
// SOAP params
// params
var param = {
'method': 'submitReport',
'rmoVers': gRMOvers,
@ -232,6 +233,7 @@ function sendReport() {
'buildconfig': gParamBuildConfig,
'language': gParamLanguage,
'email': gParamEmail,
'charset': gCharset,
'sysid': sysId
};
@ -316,6 +318,7 @@ function onSendReportDataLoad(req) {
finishExtendedDoc.getElementById('userAgentStri').textContent = gParamUserAgent;
finishExtendedDoc.getElementById('langStri').textContent = gParamLanguage;
finishExtendedDoc.getElementById('emailStri').textContent = gParamEmail;
finishExtendedDoc.getElementById('charsetStri').textContent = gCharset;
reportWizard.canRewind = false;

View File

@ -79,9 +79,13 @@ function onBrowserLoad() {
}
function loadReporterWizard() {
var browser = getBrowser();
var charSet = browser.contentDocument.characterSet;
var url = browser.currentURI.spec;
window.openDialog("chrome://reporter/content/reportWizard.xul", "",
"chrome,centerscreen,dialog",
getBrowser().currentURI.spec);
url,
charSet);
return true;
}