Implement |tabs.toggleReaderMode|
Categories
(GeckoView :: Extensions, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: agi, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [addons-jira])
Attachments
(1 file)
This can just be added to the TabDelegate as onToggleReaderMode.
Feel free to ask questions here or on https://chat.mozilla.org/#/room/#geckoview:mozilla.org if you want to work on this.
| Reporter | ||
Comment 1•6 years ago
|
||
This would be very similar to the implementation of tabs.remove, tracing that implementation is very helpful.
- Add a
onToggleReaderModetoSessionTabDelegatehere - Add a
toggleReaderModemethod toGeckoViewTabBridgethat sends aGeckoView:WebExtension:ToggleReaderModemessage, similar to:CloseMessagehere - Add a
async toggleReaderModemethod to ext-tabs that callsGeckoViewTabBridge.toggleReaderModehere - Handle
GeckoView:WebExtension:ToggleReaderModehere. Basically just do this (without thelegacyDelegatepart). - Add
toggleReaderModeto the tabs schema here, copy it from the desktop implementation - Add a test here that verifies that calling
tabs.toggleReaderModecallsSessionTabDelegate.onToggleReaderMode, this is a good example to follow (just replacetabs.removewithtabs.toggleReaderModeandonCloseTabwithonToggleReaderMode)
Thanks for the details, I'll start looking the issue this weekend :)
Updated•6 years ago
|
| Reporter | ||
Comment 6•5 years ago
|
||
chocos, are you still planning to work on this?
| Reporter | ||
Updated•5 years ago
|
Hey,
What is the status of this bug?
I am new to contributing on mozilla code base, this is marked as good first bug so I hopped in here, if possible I wanna work on this but I have zero idea as to how to work on this and how to get started, it would be helpful if you provide me with some guidance.
Thank you
| Reporter | ||
Comment 8•5 years ago
|
||
(In reply to james from comment #7)
Hey,
What is the status of this bug?
I am new to contributing on mozilla code base, this is marked as good first bug so I hopped in here, if possible I wanna work on this but I have zero idea as to how to work on this and how to get started, it would be helpful if you provide me with some guidance.
Thank you
Hi James! Comment 1 has a rough outline of what it would take to fix this bug, could you expand on what is not clear?
(In reply to Agi Sferro | :agi | ni? for questions | ⏰ PST | he/him from comment #8)
(In reply to james from comment #7)
Hey,
What is the status of this bug?
I am new to contributing on mozilla code base, this is marked as good first bug so I hopped in here, if possible I wanna work on this but I have zero idea as to how to work on this and how to get started, it would be helpful if you provide me with some guidance.
Thank youHi James! Comment 1 has a rough outline of what it would take to fix this bug, could you expand on what is not clear?
Hi,
I went trough Comment 1
I have a couple of questions,
- What is
onToogleReaderMode, How do I add it to the function and what exactly is theSessionTabDelegatefunction doing? - I don't really have an idea as to how to write a
toogleReaderModemethod that sends aGeckoView:WebExtension:ToggleReaderModemessage - How do I write an async toggleReaderMode method to ext-tabs?
It would be quite helpful if you could provide me with some documentation or explanations as I am quite new to all this, Thank you for your patience.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 11•2 years ago
|
||
Resolving as WONTFIX given that our intention is to move Reader Mode out of a WebExtension and built-in into GV.
Comment 12•2 years ago
|
||
The tabs.toggleReaderMode extension API method would enable third party extensions to toggle the reader mode of a tab. The actual underlying implementation of Reader Mode is not relevant. I am therefore re-opening this bug.
Description
•