Closed
Bug 1254574
Opened 8 years ago
Closed 8 years ago
Create an Action for Open New Tab
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: fluffyemily, Assigned: fluffyemily)
References
Details
Attachments
(1 file, 1 obsolete file)
Actions will be discrete bits of code that encompass a frequently performed action that can be called from anywhere in the code. It accepts as arguments everything it needs to perform its task. * Create an Action for New Tab * Ensure New Tab Action can be called from Menu * Call New Tab Action from everywhere we open a new tab in the app
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•8 years ago
|
||
First stab at Actions concept. We have a MenuActions enum that enumerates the menu actions. We have a MenuActionDelegate that handle menu actions We have ActionHandlers that implement the Actionable protocol. We have an Action enum that enumerates the actions that can be handled by ActionHandlers. Each enum case requires all the things that the action needs in order to perform the action. The MenuHandler takes the MenuAction and translates it into an Action, and then passes that action to the most appropriate ActionHandler to handle. Here I have created a TabAction handler, listed all the tab actions and implemented those actions across the entire app, including from the appropriate menu items. N.B. - The first two commits were my first thoughts on the matter, and then I changed my mind when I realised that it just wouldn't work. Let this PR be a basis for discussion for the right way to handle Actions across the app.
Attachment #8738594 -
Flags: review?(sleroux)
Attachment #8738594 -
Flags: review?(jhugman)
Attachment #8738594 -
Flags: review?(bnicholson)
Comment 2•8 years ago
|
||
Comment on attachment 8738594 [details] [review] Pull request Left some feedback on the PR!
Attachment #8738594 -
Flags: feedback+
Assignee | ||
Comment 3•8 years ago
|
||
Nothing fancy here, no major refactoring work - just getting the menu options working for Browser menu actions only (tab tray menu actions not available yet). Also covers the following bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=1254575 https://bugzilla.mozilla.org/show_bug.cgi?id=1254586 https://bugzilla.mozilla.org/show_bug.cgi?id=1254587 https://bugzilla.mozilla.org/show_bug.cgi?id=1254577 https://bugzilla.mozilla.org/show_bug.cgi?id=1254576 https://bugzilla.mozilla.org/show_bug.cgi?id=1254599 https://bugzilla.mozilla.org/show_bug.cgi?id=1263178
Attachment #8738594 -
Attachment is obsolete: true
Attachment #8738594 -
Flags: review?(sleroux)
Attachment #8738594 -
Flags: review?(jhugman)
Attachment #8738594 -
Flags: review?(bnicholson)
Attachment #8739924 -
Flags: review?(sleroux)
Attachment #8739924 -
Flags: review?(jhugman)
Comment 4•8 years ago
|
||
Comment on attachment 8739924 [details] [review] Pull request Comments in the PR (historical).
Attachment #8739924 -
Flags: review?(jhugman) → review+
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•8 years ago
|
Attachment #8739924 -
Flags: review?(sleroux)
You need to log in
before you can comment on or make changes to this bug.
Description
•