Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

SOLVED: Firefox does not display web interface from LAN printer correctly

  • 32 ردًا
  • 1 has this problem
  • 1 view
  • آخر ردّ كتبه Sky

more options

Firefox fails to display the web UI from my Canon printer properly. It should display as a GUI, but Firefox displays it as a text page. I tried "safe mode" but that did not change anything. The page displays properly in other browsers. Screen shot samples showing a page in Firefox and the same page in Edge is attached.

Firefox fails to display the web UI from my Canon printer properly. It should display as a GUI, but Firefox displays it as a text page. I tried "safe mode" but that did not change anything. The page displays properly in other browsers. Screen shot samples showing a page in Firefox and the same page in Edge is attached.
Attached screenshots

Modified by Sky

الحل المُختار

Sky said

jscher2000 said
Hi Sky, does it make any difference if you try changing the Text Encoding to Unicode while you are on the main page of the site?

Afraid not, Text Encoding is greyed out on the html pages. It appears to only work when the code is exposed. I attached a shot of the header fyi.

I guess Firefox is already applying UTF-8 encoding to the main page and that can't be (and doesn't need to be) overridden.

There must be some non-obvious reason that Firefox is discarding most of the style sheet. I think what I would try is to inject the styles myself using the Stylus extension. That's an add-on you can use to inject CSS into most pages (some pages might block it). Since I don't have access to the printer, it's difficult to know for sure what will happen, but here's the process I would try:

(A) In a different tab, install the Stylus extension

https://addons.mozilla.org/firefox/addon/styl-us/

(B) On the Canon page, click the Stylus "S" icon on the toolbar and near the bottom under "Write style for" click the left-most part of the IP address to start a new rule matching that IP.

<center></center>

(C) Paste the cleanest version of the style sheet you have into the new rule and

(1) remove the comments with the Asian characters (starts with /* and ends with */) then

(2) click the Save button on the left

Switch back over to the page and see whether injecting the styles in this way makes it readable.

Read this answer in context 👍 1

All Replies (12)

more options

Thanks. Yes, (std.css) alt > View > Text Encoding > Unicode does render all of the characters and they copy-paste into Notepad, etc., and maintain rendering. I have a family member who says the unknown characters appear to be Simplified Chinese but could be Japanese as the languages share many character forms. Considering this is a Canon printer I'm guessing Japanese fwiw. I wouldn't expect those characters inside a this string though.

Images attached: 1st displays in Unicode, 2nd displays in windows-1252

Modified by Sky

more options

You can possibly paste the text in Google Translate.

more options

Hi Sky, does it make any difference if you try changing the Text Encoding to Unicode while you are on the main page of the site?

more options

cor-el said

You can possibly paste the text in Google Translate.

That was interesting. Japanese is confirmed and it does solve that small mystery:

/ *-active (is Tab focus for) Windows (environment,) focus (is) Tab (focus for) MacIE-* /

I didn't realize Google was so good at transliteration. Neat! moving along...

more options

jscher2000 said

Hi Sky, does it make any difference if you try changing the Text Encoding to Unicode while you are on the main page of the site?

Afraid not, Text Encoding is greyed out on the html pages. It appears to only work when the code is exposed. I attached a shot of the header fyi.

It does make me wonder why Edge successfully presents the pages, Firefox stumbles, and Chrome chokes and dies. From my seat I'm thinking this is moot since the users' write access is severely restricted to coded menu choices. That is unless one or more of the intrepid Firefox developers tackles why it works in Edge and ports that snippet to Firefox as an update.

more options

الحل المُختار

Sky said

jscher2000 said
Hi Sky, does it make any difference if you try changing the Text Encoding to Unicode while you are on the main page of the site?

Afraid not, Text Encoding is greyed out on the html pages. It appears to only work when the code is exposed. I attached a shot of the header fyi.

I guess Firefox is already applying UTF-8 encoding to the main page and that can't be (and doesn't need to be) overridden.

There must be some non-obvious reason that Firefox is discarding most of the style sheet. I think what I would try is to inject the styles myself using the Stylus extension. That's an add-on you can use to inject CSS into most pages (some pages might block it). Since I don't have access to the printer, it's difficult to know for sure what will happen, but here's the process I would try:

(A) In a different tab, install the Stylus extension

https://addons.mozilla.org/firefox/addon/styl-us/

(B) On the Canon page, click the Stylus "S" icon on the toolbar and near the bottom under "Write style for" click the left-most part of the IP address to start a new rule matching that IP.

<center></center>

(C) Paste the cleanest version of the style sheet you have into the new rule and

(1) remove the comments with the Asian characters (starts with /* and ends with */) then

(2) click the Save button on the left

Switch back over to the page and see whether injecting the styles in this way makes it readable.

more options

EUREKA!!!!, It worked!

Thanks! :-D

Will I need to keep Stylus enabled in order to inject the corrected style sheet?

Modified by Sky

more options

Sky said

EUREKA!!!!, It worked! Thanks! :-D Will I need to keep Stylus enabled in order to inject the corrected style sheet?

Thank you for trying that.

If that's the only site you plan to modify, and you use it infrequently, you can enable/disable Stylus as needed for that site. A bit of a pain visiting the Add-ons page, though.

Someone should report this as a bug, but first maybe send it to Canon support and let them experience the problem?

I suppose it's possible they'll tell you there's an update already. ;-)

more options

jscher2000 & cor-el:

Thanks for all of the help!

Sure enough, the mix of characters is what was throwing Firefox. The injected stylesheet is identical to the original absent the Japanese characters. Firefox even handled the original's duplicated definitions and empty styles with aplomb.

Sky

more options

jscher2000 & cor-el:

Thanks for all of the help!

Sure enough, the mix of characters was definitely throwing Firefox. The injected stylesheet is identical to the original absent the Japanese characters. Firefox even handled the original's duplicated definitions and empty styles with aplomb.

jscher2000 said

Someone should report this as a bug, but first maybe send it to Canon support and let them experience the problem? I suppose it's possible they'll tell you there's an update already. ;-)

That would be nice...

Sky

more options

Did you check the Network Monitor for both cases (HTML page and CSS file) to see how the printer is sending the CSS file ?

more options

No. I don't mind checking, but I'd need more hand-holding to do that. :-/

EDIT 3-MAR-20 Thinking I might have a clue what you were asking for, I've added 3-images. The built-in tool for Firefox is really snazzy!

Modified by Sky

  1. 1
  2. 2