The font panel from Reader View should disappear when clicking the Pocket sidebar button
Categories
(Toolkit :: Reader Mode, defect, P5)
Tracking
()
People
(Reporter: avaida, Assigned: fpberkay, Mentored)
References
Details
(Whiteboard: [about-reader-ui] [bugday-20190327] )
Attachments
(1 file, 2 obsolete files)
Updated•10 years ago
|
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Updated•6 years ago
|
Comment 3•6 years ago
|
||
I would like to work on this issue Gijs.
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to :Gijs (he/him) from comment #1)
The reading list button is gone, renaming.
Thank you for your suggestion Gijs. I reproduced and understand the problem but I couldn't find the exact folder related to reader mode. Could you help me ?
Comment 5•6 years ago
|
||
(In reply to lekhikadugtal from comment #3)
I would like to work on this issue Gijs.
Unfortunately I suggested this bug to Berkay Barlas in bug 1187696 so they should probably have a crack at it first.
(In reply to Berkay Barlas from comment #4)
(In reply to :Gijs (he/him) from comment #1)
The reading list button is gone, renaming.
Thank you for your suggestion Gijs. I reproduced and understand the problem but I couldn't find the exact folder related to reader mode. Could you help me ?
https://searchfox.org/mozilla-central/source/toolkit/components/reader/AboutReader.jsm
Specifically, https://searchfox.org/mozilla-central/rev/92d11a33250a8e368c8ca3e962e15ca67117f765/toolkit/components/reader/AboutReader.jsm#249 is supposed to handle closing the dropdowns. The question will be why the click on the pocket button doesn't trigger this helper method.
Comment 6•6 years ago
|
||
(In reply to lekhikadugtal from comment #3)
Perhaps have a look at bug 1148052 instead, if you're comfortable with CSS.
Assignee | ||
Comment 7•6 years ago
|
||
this._setupButton(message.data.id, button => {
this._mm.sendAsyncMessage("Reader:Clicked-" + button.dataset.buttonid, { article: this._article });
this._closeDropdowns();
});
adding "this._closeDropdowns();" to line 221 solves to problem.
But I also realized that clicking on Pocket sidebar button does not call event handler('click') of AboutReader.
Comment 8•6 years ago
|
||
(In reply to Berkay Barlas from comment #7)
But I also realized that clicking on Pocket sidebar button does not call event handler('click') of AboutReader.
Right. It would probably be better to fix that, instead.
So the reason the handler isn't invoked must be that it's somehow not getting the click event. Have a look at the code in _setupButton and see if you can figure out why that might be the case, and if we can change how we register the "click" handler for AboutReader to work better for this case.
Assignee | ||
Comment 9•6 years ago
|
||
(In reply to :Gijs (he/him) from comment #8)
Right. It would probably be better to fix that, instead.
Okay,if we want to get continue event updates from button, I think we should delete the stopPropagation method at the line 954.
Comment 10•6 years ago
|
||
(In reply to Berkay Barlas from comment #9)
(In reply to :Gijs (he/him) from comment #8)
Right. It would probably be better to fix that, instead.
Okay,if we want to get continue event updates from button, I think we should delete the stopPropagation method at the line 954.
Yep, I think that'd work. Can you submit a patch to phabricator that does that?
Assignee | ||
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
Depends on D22196
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
(In reply to :Gijs (he/him) from comment #10)
Can you submit a patch to phabricator that does that?
I think I finally able to submit a patch to phabricator :D. Thank you for mentorship Gijs!
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 17•6 years ago
|
||
I have reproduced this bug with Nightly 42.0a1 (2015-06-30) on Windows 7, 64 Bit.
The fix of this bug is verified with latest Beta 67.0b6!
Build ID : 20190328152334
User Agent : Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
Updated•5 years ago
|
Description
•