Open
Bug 798137
Opened 12 years ago
Updated 2 years ago
Make @-moz-document trace reload-less URL changes (pushstate, hashchange)
Categories
(Core :: CSS Parsing and Computation, defect, P5)
Tracking
()
REOPENED
People
(Reporter: myf, Unassigned)
References
Details
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/18.0 Firefox/18.0 Build ID: 20121004030525 Steps to reproduce: Userstyle (either native chrome/userContent.css or Stylish) using @-moz-document block matching certain URL(s). Actual results: Getting said URL in locationbar via pushState / replaceState methods does not trigger userstyle document location matching mechanism. Ie visiting "real" page triggers userstyle but having the same location from pushState does not. Expected results: Supposedly, location matching mechanism should catch even this kind of URL. Testcase included. Based on report at http://forum.userstyles.org/discussion/32675/regexp-bug-or-facebook-mess
Reporter | ||
Updated•12 years ago
|
Attachment #668230 -
Attachment mime type: text/plain → application/zip
Reporter | ||
Updated•12 years ago
|
Updated•12 years ago
|
Component: Untriaged → Style System (CSS)
Product: Firefox → Core
Comment 1•12 years ago
|
||
We don't really want to force a full restyle on every pushstate... :( Need to think of a way to avoid that.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•12 years ago
|
||
Also, it should be possible to put together a standalone testcase, since web pages can use @-moz-document rules....
Summary: Document URI altered by HTML5 history api (pushstate) is not recognized by userstyle → Document URI altered by HTML5 history api (pushstate) is not recognized by @-moz-document
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Maybe we could only rebuild rule cascades for rule processors that were affected by @document rules?
Reporter | ||
Updated•11 years ago
|
Severity: minor → normal
Summary: Document URI altered by HTML5 history api (pushstate) is not recognized by @-moz-document → Make @-moz-document trace reload-less URL changes (pushstate, hashchange)
Reporter | ||
Comment 5•11 years ago
|
||
Changing location.hash via plain old anchor link does obviously the same. Increasing number of webapps using either old 'hashbang' or new pushsate mechanism raises demand for this esp. in userstyles community. --- Haven't thought before that @-moz-document is available outside user styles, thanks for letting me know :]
Attachment #668230 -
Attachment is obsolete: true
Reporter | ||
Updated•11 years ago
|
Attachment #731378 -
Attachment mime type: text/plain → text/html
Comment 6•9 years ago
|
||
Bug 77999 should let us avoid refreshing rule cascades if the set of matching @-moz-document rules haven't changed. Then we can call nsPresContext::PostMediaFeatureValuesChangedEvent (assuming @-moz-document rules and media queries end up using the same mechanism in bug 77999) from nsHistory::PushOrReplaceState and other places.
Depends on: 77999
Comment 7•6 years ago
|
||
@-moz-document is being neutered, and just supported via the hack in bug 1446470, so I think this is WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 8•6 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #7) > @-moz-document is being neutered, and just supported via the hack in bug > 1446470, so I think this is WONTFIX. (tl;dr: does it mean @-moz-document is being nuked completely in all levels of the cascade?) Skimmed trough provided references and although not been able to find it explicitly stated, I understand the intention is to remove @-moz-document support in the **author** level style sheets, leaving it exclusive for user styles -- just as I thought it has been working all the time (as it turned out in bug 1035091 it probably should have) and as seen above Boris enlightened me back then, but it is not the main point of this issue. Could you please point me to the relevant decision? Nuking this would mean making userContent.css quite useless.
Comment 9•6 years ago
|
||
Yes, sorry, I think I misinterpreted the current plan. @-moz-document is still available in userContent.css, and the neutering is indeed only for content pages. Which means this bug is still valid (although not a high priority one).
Status: RESOLVED → REOPENED
Priority: -- → P5
Resolution: WONTFIX → ---
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•