Open Bug 1625237 Opened 6 years ago Updated 2 years ago

Implement |tabs.toggleReaderMode|

Categories

(GeckoView :: Extensions, enhancement, P3)

Unspecified
All
enhancement

Tracking

(Not tracked)

REOPENED

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.

This would be very similar to the implementation of tabs.remove, tracing that implementation is very helpful.

  • Add a onToggleReaderMode to SessionTabDelegate here
  • Add a toggleReaderMode method to GeckoViewTabBridge that sends a GeckoView:WebExtension:ToggleReaderMode message, similar to :CloseMessage here
  • Add a async toggleReaderMode method to ext-tabs that calls GeckoViewTabBridge.toggleReaderMode here
  • Handle GeckoView:WebExtension:ToggleReaderMode here. Basically just do this (without the legacyDelegate part).
  • Add toggleReaderMode to the tabs schema here, copy it from the desktop implementation
  • Add a test here that verifies that calling tabs.toggleReaderMode calls SessionTabDelegate.onToggleReaderMode, this is a good example to follow (just replace tabs.remove with tabs.toggleReaderMode and onCloseTab with onToggleReaderMode)

Thanks for the details, I'll start looking the issue this weekend :)

I'll be looking into this issue.

Assignee: nobody → kandpalnehu
Status: NEW → ASSIGNED

chocos, are you still planning to work on this?

Flags: needinfo?(kandpalnehu)
Assignee: kandpalnehu → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(kandpalnehu)

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

(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 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?

Hi,
I went trough Comment 1
I have a couple of questions,

  1. What is onToogleReaderMode , How do I add it to the function and what exactly is the SessionTabDelegate function doing?
  2. I don't really have an idea as to how to write a toogleReaderMode method that sends a GeckoView:WebExtension:ToggleReaderMode message
  3. 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.
Severity: normal → S3

Tasks and enhancements should have severity N/A.

Severity: S3 → N/A
Whiteboard: [addons-jira]

Resolving as WONTFIX given that our intention is to move Reader Mode out of a WebExtension and built-in into GV.

Mentor: agi
Status: NEW → RESOLVED
Closed: 2 years ago
Keywords: good-first-bug
Resolution: --- → WONTFIX

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.

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

Attachment

General

Creator:
Created:
Updated:
Size: