Android components provides a new reader view feature implemented as a Web extension. The current reader view functionality in Fennec sets document.location to about:reader?url={originalUrl} so that a later navigation to this page still has reader view enabled. It's not possible to set document.location to about:reader* in a web extension content script (Security Error). We'd either need new (Java) API to add a custom history entry or to attach some other history state that will allows us to determine that reader view should be turned on when navigating back/forward. After discussing this with the GeckoView team we're not sure what the right approach is to solving this. We could use pushState and not support about:reader going forward, but this doesn't seem ideal.
Bug 1550144 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Android components provides a new reader view feature implemented as a Web extension. The current reader view functionality in Fennec sets document.location to about:reader?url={originalUrl} so that a later navigation to this page still has reader view enabled. It's not possible to set document.location to about:reader* in a web extension content script (Security Error). We'd either need new (Java) API to add a custom history entry or to attach some other history state that will allow us to determine that reader view should be turned on when navigating back/forward. After discussing this with the GeckoView team we're not sure what the right approach is to solving this. We could use pushState and not support about:reader going forward, but this doesn't seem ideal.