View > Page Style menu doesn't work for file:// pages
Categories
(Firefox :: Menus, defect, P5)
Tracking
()
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.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Assignee | ||
Comment 3•4 years ago
|
||
I imagine this is courtesy of https://searchfox.org/mozilla-central/rev/91d82d7cbf05a71954dfa49d0e43824c7c973e62/browser/components/BrowserGlue.jsm#454-456 not matching file: URIs or something.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
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
Comment 6•4 years ago
|
||
bugherder |
Comment 9•2 years ago
|
||
As requested on duplicate bug 1553695: Fix work as expected, closed as resolved is right, thanks a lot.
Updated•2 years ago
|
Description
•