Closed
Bug 317633
Opened 19 years ago
Closed 19 years ago
Undo/Redo for Places
Categories
(Firefox :: Bookmarks & History, defect, P1)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 2 alpha1
People
(Reporter: bugs, Assigned: bugs)
References
Details
(Keywords: fixed1.8.1)
Attachments
(3 files, 3 obsolete files)
4.80 KB,
patch
|
brettw
:
review+
|
Details | Diff | Splinter Review |
73.02 KB,
patch
|
annie.sullivan
:
review+
|
Details | Diff | Splinter Review |
2.81 KB,
patch
|
mscott
:
review+
mscott
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
Bring across transaction management from the old Bookmarks system.
Comment 1•19 years ago
|
||
Transaction management is pretty broken in bookmarks, we didn't fix it because we were rewriting bookmarks...
Assignee | ||
Updated•19 years ago
|
Assignee: nobody → bugs
Assignee | ||
Comment 2•19 years ago
|
||
Mike, I wrote a bunch of new transactions :-)
Comment 3•19 years ago
|
||
Most excellent! Dare I hope that we can undo sorting?
Assignee | ||
Comment 4•19 years ago
|
||
Maybe... shouldn't be that hard to write a txn for. Will look at that when we get to implementing sorting.
Assignee | ||
Comment 5•19 years ago
|
||
Attachment #204613 -
Flags: review?(brettw)
Updated•19 years ago
|
Attachment #204613 -
Flags: review?(brettw) → review+
Comment 6•19 years ago
|
||
*** Bug 317805 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•19 years ago
|
Severity: normal → blocker
Priority: -- → P1
Assignee | ||
Comment 7•19 years ago
|
||
This modifies the goDoCommand/etc methods in globalOverlay.js not just to look for controllers on the focused element, but also the containing global window.
Assignee | ||
Comment 8•19 years ago
|
||
*** Bug 320286 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 9•19 years ago
|
||
Attachment #208936 -
Attachment is obsolete: true
Assignee | ||
Comment 10•19 years ago
|
||
Attachment #210014 -
Attachment is obsolete: true
Assignee | ||
Comment 11•19 years ago
|
||
Attachment #210018 -
Attachment is obsolete: true
Assignee | ||
Updated•19 years ago
|
Attachment #210026 -
Flags: review?(annie.sullivan)
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Firefox 2 alpha1
Assignee | ||
Comment 12•19 years ago
|
||
*** Bug 324957 has been marked as a duplicate of this bug. ***
Comment 13•19 years ago
|
||
Comment on attachment 210026 [details] [diff] [review]
more work...
> <method name="saveSelection">
>+ <parameter name="mode"/>
It looks like you changed the parameters to this method in tree.xml but didn't update the parameters in toolbar.xml and menu.xml. I haven't really worked with XBL enough to know if it matters.
Attachment #210026 -
Flags: review?(annie.sullivan) → review+
Assignee | ||
Comment 14•19 years ago
|
||
It shouldn't do, but I've updated my patch to include this anyway, so that no one gets confused when they read this later.
Assignee | ||
Comment 15•19 years ago
|
||
Marking this fixed. I know there are still issues but I'm going to handle those in individual bugs.
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 16•19 years ago
|
||
This patch broke Thunderbird because it removed some toolkit methods that are used by Thunderbird.
I added shim routines for the methods that got removed. I added the implementations for these shims to the CommandUpdater object, let me know if you'd prefer them to not be a part of the CommandUpdater object.
Attachment #210311 -
Flags: review?(bugs)
Comment 17•19 years ago
|
||
Comment on attachment 210311 [details] [diff] [review]
fix thunderbird bustage, add back the rest of the shims
Looks like the globalOverlay.js changes went into the branch as well so we'll need this there too.
Attachment #210311 -
Flags: branch-1.8.1?(bugs)
Comment 18•19 years ago
|
||
Comment on attachment 210311 [details] [diff] [review]
fix thunderbird bustage, add back the rest of the shims
Ben just reviewed this over my shoulder.
Attachment #210311 -
Flags: review?(bugs)
Attachment #210311 -
Flags: review+
Attachment #210311 -
Flags: branch-1.8.1?(bugs)
Attachment #210311 -
Flags: branch-1.8.1+
Comment 20•18 years ago
|
||
Comment on attachment 210026 [details] [diff] [review]
more work...
>+ /**
>+ * Gets a controller that can handle a particular command.
>+ * @param command
>+ * A command to locate a controller for, preferring controllers that
>+ * show the command as enabled.
>+ * @returns In this order of precedence:
>+ * - the first controller supporting the specified command
>+ * associated with the focused element that advertises the
>+ * command as ENABLED
>+ * - the first controller supporting the specified command
>+ * associated with the global window that advertises the
>+ * command as ENABLED
>+ * - the first controller supporting the specified command
>+ * associated with the focused element
>+ * - the first controller supporting the specified command
>+ * associated with the global window
>+ */
>+ _getControllerForCommand: function(command) {
>+ try {
>+ var controller =
>+ top.document.commandDispatcher.getControllerForCommand(command);
>+ if (controller && controller.isCommandEnabled(command))
>+ return controller;
>+ }
>+ catch(e) {
>+ }
>+ var controllerCount = window.controllers.getControllerCount();
>+ for (var i = 0; i < controllerCount; ++i) {
>+ var current = window.controllers.getControllerAt(i);
>+ try {
>+ if (current.supportsCommand(command) && current.isCommandEnabled(command))
>+ return current;
>+ }
>+ catch (e) {
>+ }
>+ }
>+ return controller || window.controllers.getControllerForCommand(command);
>+ },
Unfortunately this is totally bogus. Not only does commandDispatcher.getControllerForCommand already does all the work, but as a bonus it does it almost correctly! In particular, the precedence is:
- the first controller supporting the specified command associated with the
focused element that advertises the command as *SUPPORTED*
- the first controller supporting the specified command associated with the
global window that advertises the command as *SUPPORTED*
- the first controller supporting the specified command associated with the
first ancestor window that advertises the command as *SUPPORTED*
(In case you're wondering, the bug is that it sometimes queries the global commands twice).
Comment 21•15 years ago
|
||
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".
In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body contains places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.
Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.
Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in
before you can comment on or make changes to this bug.
Description
•