Closed Bug 1650603 Opened 4 years ago Closed 4 years ago

View > Page Style menu doesn't work for file:// pages

Categories

(Firefox :: Menus, defect, P5)

78 Branch
defect

Tracking

()

VERIFIED FIXED
Firefox 80
Tracking Status
firefox80 --- fixed

People

(Reporter: dantegd, Assigned: Gijs)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

Possibly related to CLOSED bug 1645789 ... View > Page Style menu seems to ignore alternate stylesheets when displaying a local HTML file://

See discussion here:
https://support.mozilla.org/en-US/questions/1293681

For example, this simple HTML file saved on Win10 as %TEMP%\alternate_stylesheets.html

<!DOCTYPE html>
<!-- See for example: https://www.w3.org/Style/Examples/007/alternatives -->
<html>
<head>
<link rel="stylesheet"
href="https://www.w3.org/Style/CSS/w3c-2010/main.css" title=Main>
<link rel="alternate stylesheet"
href="http://www.w3.org/StyleSheets/Core/Steely" title=Steely>
<link rel="alternate stylesheet"
href="http://dbaron.org/style/forest" title="Forest (by David Baron)">
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>

Actual results:

View > Page Style menu remains default, although the Web Develop > Style Editor tool does recognize the alternate stylesheets.

Expected results:

The View > Page Style menu should let me switch between the default stylesheet and the alternate stylesheets.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Menus

test file version of the page, above

Severity: -- → S3
Priority: -- → P5
Summary: View > Page Style menu is wrong for file:// pages → View > Page Style menu doesn't work for file:// pages
Assignee: nobody → gijskruitbosch+bugs
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c2fc1b20deb6
enable view > page style menu (alternate stylesheets) for local files, r=mconley
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80

As requested on duplicate bug 1553695: Fix work as expected, closed as resolved is right, thanks a lot.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: