Closed
Bug 181721
Opened 22 years ago
Closed 18 years ago
Disable menus commands when sheets or dialogs are frontmost
Categories
(Camino Graveyard :: Toolbars & Menus, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino1.5
People
(Reporter: stf, Assigned: stuart.morgan+bugzilla)
References
Details
(Keywords: fixed1.8.1.2)
Attachments
(1 file, 2 obsolete files)
14.15 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021122 Chimera/0.6+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021122 Chimera/0.6+
"Sheet Behavior
...
Only one sheet may be open for a window at any one time. A sheet PREVENTS ANY
OTHER OPERATION on that window until the sheet is dismissed. If, when the user
responds to a sheet, another sheet for that document must open, the first sheet
closes before the second one opens."
Reproducible: Always
Steps to Reproduce:
Open a New Window with the Toolbar and Location field.
Reduce its size to the minimum with the Grow icon.
Click on the double arrow in the Toolbar and select Location.
Min/Max-imizes, Resize, Save, Print, Find, Go, Bookmarks commands are available.
Comment 1•22 years ago
|
||
confirmed in 2002111604. Severity to trivial (it was enhancement)... There's no
harm done by this bug AFAICT, although if/when sheets are used for printing
there might be more of an issue.
Severity: enhancement → trivial
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•22 years ago
|
Summary: AAHIG: Page Sheet allows other operations → Disable commands when OpenLocation sheet is up
Blocks: 294129
Comment 3•20 years ago
|
||
This is still present and should definitely be fixed by 1.0. :)
Updated•20 years ago
|
Target Milestone: Camino1.0 → Camino1.1
Comment 4•19 years ago
|
||
I don't see any harm in this; I wasn't able to get into a locked state with the fix for bug 314072 in my tree.
For polish, we should probably grey out some additional menu items that currently just beep (Open File�), but I can't get into a locked state anywhere, either.
Updated•19 years ago
|
Severity: trivial → minor
Priority: -- → P3
Summary: Disable commands when OpenLocation sheet is up → Disable menus commands when sheets or dialogs are frontmost
Comment 6•19 years ago
|
||
*** Bug 187849 has been marked as a duplicate of this bug. ***
Comment 7•19 years ago
|
||
I disabled openFile: and openLocation: when the frontmost window has a sheet up. Loading bookmarks seems harmless, and as we don't block all the other various ways you can change the browser content, I don't see a compelling reason to disable bookmarks.
Comment 8•19 years ago
|
||
Really? You can load bookmarks and change the browser content when a sheet is open on that page? Doesn't that fall under the "ANY OTHER OPERATION" restriction?
Comment 9•19 years ago
|
||
(In reply to comment #8)
> Really? You can load bookmarks and change the browser content when a sheet is
> open on that page? Doesn't that fall under the "ANY OTHER OPERATION"
> restriction?
Yes, but rather than disable all the commands that can possibly change the window ocontent, and risk introducing bugs at this stage in the release (close to 1.0), I just fixed the most obvious issue. That's why this bug is still open.
*** Bug 329331 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Component: General → Toolbars & Menus
QA Contact: winnie → toolbars
*** Bug 333438 has been marked as a duplicate of this bug. ***
*** Bug 347630 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 14•18 years ago
|
||
Taking; I'll fix this after bug 159337 lands.
Assignee: bugzilla → stuart.morgan
Assignee | ||
Comment 15•18 years ago
|
||
This turned into sort of a game of whack-a-mole once I realized that all the context menus needed disabling too. This should cover everything with two exceptions:
- Use as Dock Menu, which works and is harmless, and therefore doesn't seem worth adding a menu validator to the bookmark class or a passthrough in some other class for.
- Show/Hide Toolbar, which Cocoa should be handling for us, and I can't figure out how we're confusing it. It doesn't do any harm, so we can file it as a low-priority follow-up bug.
Attachment #245736 -
Flags: review?
Assignee | ||
Comment 16•18 years ago
|
||
Missed a file.
Attachment #245736 -
Attachment is obsolete: true
Attachment #245743 -
Flags: review?
Attachment #245736 -
Flags: review?
Comment 17•18 years ago
|
||
Comment on attachment 245743 [details] [diff] [review]
full fix
>@@ -1486,19 +1498,34 @@
>
> // >NSLog(@"MainController validateMenuItem for %@ (%s)", [aMenuItem title], action);
>
>+ // disable window-related menu items if a sheet is up
>+ if (browserController && [[browserController window] attachedSheet] &&
Patch looks good, except it fails to account for sheets on non-browser windows.
For example, on the Downloads window, you can Customise Toolbar to get a sheet, and observe that nothing gets disabled.
r=me with that issue addressed.
Attachment #245743 -
Flags: review? → review-
Assignee | ||
Comment 18•18 years ago
|
||
(In reply to comment #17)
> Patch looks good, except it fails to account for sheets on non-browser windows.
>
> For example, on the Downloads window, you can Customise Toolbar to get a sheet,
> and observe that nothing gets disabled.
Erm... what exactly are you looking for to be disabled when there's a sheet on the downloads window? None of the loading sorts of things apply to it.
Comment 19•18 years ago
|
||
(In reply to comment #18)
> Erm... what exactly are you looking for to be disabled when there's a sheet on
> the downloads window? None of the loading sorts of things apply to it.
Yeah, upon looking over the File menu again, I guess none of that stuff really needs to be disabled anyway (although I still think it's weird that stuff like "Search the Web" and "Open Location..." are active when a non-browser window is frontmost).
cl
Assignee | ||
Comment 20•18 years ago
|
||
So is there still a reason this is minused?
Comment 21•18 years ago
|
||
Comment on attachment 245743 [details] [diff] [review]
full fix
No. :)
Attachment #245743 -
Flags: review- → review+
Assignee | ||
Updated•18 years ago
|
Attachment #245743 -
Flags: superreview?(mikepinkerton)
(In reply to comment #19)
> (although I still think it's weird that stuff like
> "Search the Web" and "Open Location..." are active when a non-browser window is
> frontmost).
So you can get focus back to the browser window :P
Comment 23•18 years ago
|
||
Comment on attachment 245743 [details] [diff] [review]
full fix
sr=pink
Attachment #245743 -
Flags: superreview?(mikepinkerton) → superreview+
Assignee | ||
Comment 24•18 years ago
|
||
As checked in on trunk and MOZILLA_1_8_BRANCH.
Attachment #245743 -
Attachment is obsolete: true
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1.2
Resolution: --- → FIXED
Whiteboard: [good first bug]
You need to log in
before you can comment on or make changes to this bug.
Description
•