为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Odd "Reader View" behavior

  • 1 个回答
  • 1 人有此问题
  • 24 次查看
  • 最后回复者为 guigs

more options

I was viewing an HTML file that is located on my local hard drive. The page is basically a list of HTML links.

While viewing the page, I noticed the (gray) "Reader View" icon/control in the "Address Bar", and I clicked the "Reader View" icon.

Here's what happened next:

1) The page display went nearly blank.

  • Along the left edge (vertically), the "Exit Reader View" and "Adjust the text size" icons/controls are shown.
  • Along the top of the page, a border/panel is shown, about 1.5 to 2 cm high.
  • About 1.5 to 2 cm below that, a "largish" rectangle icon with a styled circle inside was shown.

I have attached an image of how this looks.


2) After a short time, probably less than one-half second:

  • The "Exit Reader View" and "Adjust the text size" icons/controls disappeared.
  • The border/panel, and the rectangle icon disappeared.

3) At this point, the page was totally blank.

4) I then noticed that the "Address Bar" was totally empty.

  • The "History" and the "Refresh" icons/controls were shown at the right end of the "Address Bar".
  • The "Reader View" icon/control was no longer shown.
  • The URL to the page I was viewing was no longer shown.

5) If I click the "Back" button:

  • The URL to the page I was viewing is briefly shown in the "Address Bar".
  • The "Reader View" icon/control is briefly shown in the address bar (Orange).
  • The above behavior (#1-#4) repeats, and I am back to a blank page display and an empty "Address Bar".

If I go further back in the tab "History", I can view my original page.

Should I report this as a bug?

It would be great if someone else could try this to see if it happens to them, particularly on the current version of Firefox.




The content of the local HTML file is unimportant, but it seems that at least on a fairly small file, in order to get the "Reader View" icon/control to show in the "Address Bar", it is required to have some text formatted with the HTML "< PRE >" and "< /PRE >" tags.

A sample HTML file to try is below...

Note: The "HTML", "BR", and "PRE" ("Angle bracket") tags are not properly showing here so in some cases I had to add a " " (space) after the opening (left) "Angle bracket" in order to get this to display properly. When saving as a test file, reformat without the space after the opening (left) "Angle bracket":

   < html>
   <head>
   <title>FF Reader View Test</title>
   </head>
   <body>
   < br />
   < br />
   Mozilla: <a href=
     "https://support.mozilla.org/en-US/questions/1110151" 
     target="_blank">
     Odd "Reader View" behavior
   </a> < br />
   https://support.mozilla.org/en-US/questions/1110151 < br />
   < br />
   < br />
   < br />
   < pre>
   I was viewing an HTML file that is located on my 
   local hard drive. The page is basically a list of 
   HTML links. 
While viewing the page, I noticed the (gray) "Reader View" icon/control in the "Address Bar", and I clicked the "Reader View" icon.
Here's what happened next: 1) The page display went nearly blank. Along the left edge (vertically), the "Exit Reader View" and "Adjust the text size" icons/controls are shown. Along the top of the page, a border/panel is shown, about 1.5 to 2 cm high. About 1.5 to 2 cm below that, a "largish" rectangle icon with a styled circle inside was shown.
I have attached an image of how this looks.
....

....
< /pre> < br /> < br /> < br /> </body> </html>
I was viewing an HTML file that is located on my local hard drive. The page is basically a list of HTML links. While viewing the page, I noticed the (gray) "Reader View" icon/control in the "Address Bar", and I clicked the "Reader View" icon. Here's what happened next: 1) The page display went nearly blank. * Along the left edge (vertically), the "Exit Reader View" and "Adjust the text size" icons/controls are shown. * Along the top of the page, a border/panel is shown, about 1.5 to 2 cm high. * About 1.5 to 2 cm below that, a "largish" rectangle icon with a styled circle inside was shown. I have attached an image of how this looks. 2) After a short time, probably less than one-half second: * The "Exit Reader View" and "Adjust the text size" icons/controls disappeared. * The border/panel, and the rectangle icon disappeared. 3) At this point, the page was totally blank. 4) I then noticed that the "Address Bar" was totally empty. * The "History" and the "Refresh" icons/controls were shown at the right end of the "Address Bar". * The "Reader View" icon/control was no longer shown. * The URL to the page I was viewing was no longer shown. 5) If I click the "Back" button: * The URL to the page I was viewing is briefly shown in the "Address Bar". * The "Reader View" icon/control is briefly shown in the address bar (Orange). * The above behavior (#1-#4) repeats, and I am back to a blank page display and an empty "Address Bar". If I go further back in the tab "History", I can view my original page. Should I report this as a bug? It would be great if someone else could try this to see if it happens to them, particularly on the current version of Firefox. <br /> <hr /> <br /> The content of the local HTML file is unimportant, but it seems that at least on a fairly small file, in order to get the "Reader View" icon/control to show in the "Address Bar", it is required to have some text formatted with the HTML "< PRE >" and "< /PRE >" tags. A sample HTML file to try is below... Note: The "HTML", "BR", and "PRE" ("Angle bracket") tags are not properly showing here so in some cases I had to add a " " (space) after the opening (left) "Angle bracket" in order to get this to display properly. When saving as a test file, reformat without the space after the opening (left) "Angle bracket": < html> <head> <title>FF Reader View Test</title> </head> <body> < br /> < br /> Mozilla: <a href= "https://support.mozilla.org/en-US/questions/1110151" target="_blank"> Odd "Reader View" behavior </a> < br /> https://support.mozilla.org/en-US/questions/1110151 < br /> < br /> < br /> < br /> < pre> I was viewing an HTML file that is located on my local hard drive. The page is basically a list of HTML links. <br /> While viewing the page, I noticed the (gray) "Reader View" icon/control in the "Address Bar", and I clicked the "Reader View" icon. <br /> Here's what happened next: 1) The page display went nearly blank. Along the left edge (vertically), the "Exit Reader View" and "Adjust the text size" icons/controls are shown. Along the top of the page, a border/panel is shown, about 1.5 to 2 cm high. About 1.5 to 2 cm below that, a "largish" rectangle icon with a styled circle inside was shown. <br /> I have attached an image of how this looks. <br /> .... <br /> <br /> .... <br /> < /pre> < br /> < br /> < br /> </body> </html>
已附加屏幕截图

由ff2fan于修改

所有回复 (1)

more options

Hi ff2fan, I understand that the reader mode in Firefox is displaying this example html page differently. I am happy to help.

Does it have: < DOCTYPE html/> Did this value reader.parse-on-load.force-enabled change in about:config?

For debugging and filing a bug, see the code here:

The resources for Filing a bug in bugzilla.mozilla.org are listed below:

由guigs于修改