Closed Bug 1164353 Opened 9 years ago Closed 9 years ago

migrate browser context menu to use smart-modal-dialog

Categories

(Firefox OS Graveyard :: Gaia::TV::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: johnhu, Assigned: johnhu)

References

Details

Attachments

(1 file, 1 obsolete file)

migrate browser context menu to use smart-modal-dialog
Assignee: nobody → im
Depends on: 1165801
Comment on attachment 8607307 [details] [review]
[gaia] huchengtw-moz:bug-1164353-browser-context-menu-smart-modal-dialog > mozilla-b2g:master

Please review this patch. I had done the following changes:
1. use smart-modal-dialog to show the context menu
2. move/remove css rules to browser_context_menu.css
Attachment #8607307 - Flags: review?(suchiu)
Attachment #8607307 - Flags: review?(rexboy)
Comment on attachment 8607307 [details] [review]
[gaia] huchengtw-moz:bug-1164353-browser-context-menu-smart-modal-dialog > mozilla-b2g:master

Looks good to me with one comment on Github.
Attachment #8607307 - Flags: review?(rexboy) → review+
Comment on attachment 8607307 [details] [review]
[gaia] huchengtw-moz:bug-1164353-browser-context-menu-smart-modal-dialog > mozilla-b2g:master

Looks good to me!
Attachment #8607307 - Flags: review?(suchiu) → review+
backed out because this patch breaks context menu functionality in app-deck
https://github.com/mozilla-b2g/gaia/commit/fc14041b61966b630d129c89075f4b6d0357765d
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 8607933 [details] [review]
[gaia] huchengtw-moz:bug-1164353-v2 > mozilla-b2g:master

Sorry for the regression. I had changed the patch as following:
1. change the wrong CSS rules. This is the root cause of this issue. The default visibility should be hidden. Once we show the context menu, we created the context menu UI which is always visible and blocks all events.

2. remove useless code at hide().
Attachment #8607933 - Flags: review?(suchiu)
Attachment #8607307 - Attachment is obsolete: true
Depends on: 1166673
Comment on attachment 8607933 [details] [review]
[gaia] huchengtw-moz:bug-1164353-v2 > mozilla-b2g:master

We found a missing animation issue with this and previous patch. It is caused by lacking reflow. Once bug 1166673 landed, I will put review flag again. Thanks.
Attachment #8607933 - Flags: review?(suchiu)
Comment on attachment 8607933 [details] [review]
[gaia] huchengtw-moz:bug-1164353-v2 > mozilla-b2g:master

Sung,

I had revised the patch to include the latest version of smart-modal-dialog. Please review it again.
Attachment #8607933 - Flags: review?(suchiu)
Comment on attachment 8607933 [details] [review]
[gaia] huchengtw-moz:bug-1164353-v2 > mozilla-b2g:master

Looks good to me!
Attachment #8607933 - Flags: review?(suchiu) → review+
https://github.com/mozilla-b2g/gaia/pull/30143

The pull request could not be applied to the integration branch. Please try again after current integration is complete. You may need to rebase your branch against the target branch.
Tree closure causing is causing some weird issues. Let's land this manually for now, sorry for the inconvenience: https://github.com/mozilla-b2g/gaia/commit/f968fd179b51624c19021cb816b2e16d660abcdb
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Depends on: 1167517
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: