Closed
Bug 698873
Opened 13 years ago
Closed 2 years ago
Disable View > Zoom > "Actual size" when the zoom level is already at default.
Categories
(Firefox :: Toolbars and Customization, enhancement, P3)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
103 Branch
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: jay, Assigned: mconley, NeedInfo)
References
(Regressed 1 open bug)
Details
Attachments
(4 files)
Opera and Safari indicate when the user cannot reset the zoom level, Opera has a tick on 100% Safari greys out the reset option in the toolbar. Mozilla could also provide an indicator in the address bar
Reporter | ||
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•13 years ago
|
||
this is not a dupe, that bug request is in respect of showing the zoom level, IE, Safari and Opera all show when the zoom level cannot be reset.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: show zoom level → show when zoom level cannot be reset
Reporter | ||
Comment 3•13 years ago
|
||
to be clear one fix would be View Zoom Reset being greyed out when zoom is 100% and hence cannot be reset. the bug 234309 does not specifically mention this.
Updated•12 years ago
|
Assignee: nobody → rogerio.rag
Updated•12 years ago
|
Assignee: rogerio.rag → markos.silvano
Comment 4•12 years ago
|
||
Marcos Silvano and I worked together in this patch.
Attachment #589456 -
Flags: review?
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Comment on attachment 589456 [details] [diff] [review] Patch to this bug. Disable Zoom in, Zoom out and Reset controls when values are reached Thanks for picking this up, Rogério. This looks good, but there's one problem: this function is called onpopupshowing, and the command elements are used for actions that aren't related to the popup (for example, the shortcut keys). So you can't just set their state in the popupshowing handler and then leave it that way, because it will break the commands in other pages (if you don't open the menu first). So rather than using goSetCommandEnabled to edit the command's disabled state, let's just update the menuitems themselves (using e.g. document.getElementById("key_fullZoomReset") with setAttribute/removeAttribute for "disabled").
Attachment #589456 -
Flags: review? → review-
Comment 7•12 years ago
|
||
Gavin, I've used the function document.getElementById('menu_zoomReset').setAttribute('disabled', true) and nothing happened. The document.getElementById('menu_zoomReset').removeAttribute('disabled') produces no effects too. I've also tried these functions with the element "key_fullZoomReset" and nothing happens. I've tried these methods before and get the same results. That's why I used the goSetCommandEnabled() function. Am I missing something?
Comment 8•12 years ago
|
||
Attachment #596245 -
Flags: review?(gavin.sharp)
Comment 9•12 years ago
|
||
Comment on attachment 596245 [details] [diff] [review] The second version patch to this bug with the suggested modifications by Gavin. We really can't have the poupshowing handler change the "disabled" state of the command elements, at least not without equivalent changes to ensure that the commands get re-enabled appropriately. Setting the disabled attribute directly on the menu item might not work because of it's association with the <command> element. You can test this theory by removing the command="" attribute temporarily and seeing if my suggestion works then.
Attachment #596245 -
Flags: review?(gavin.sharp) → review-
Comment 10•2 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: markos.silvano → nobody
Assignee | ||
Updated•2 years ago
|
Severity: normal → N/A
Priority: -- → P3
Summary: show when zoom level cannot be reset → Disable View > Zoom > "Actual size" when the zoom level is already at default.
Updated•2 years ago
|
Type: defect → enhancement
Assignee | ||
Updated•2 years ago
|
Assignee: nobody → mconley
Assignee | ||
Comment 11•2 years ago
|
||
Updated•2 years ago
|
Attachment #9275059 -
Attachment description: WIP: Bug 698873 - Update Zoom commands when changing zoom level. → Bug 698873 - Update Zoom commands when changing zoom level. r?NeilDeakin!
Comment 12•2 years ago
|
||
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/768a911921b0 Update Zoom commands when changing zoom level. r=NeilDeakin,desktop-theme-reviewers
Comment 13•2 years ago
|
||
Backed out for causing failures on browser_preferences_usage.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/e27f007bc0fdf42e1b2ca39a2797745adcefd561
Link to failure log: https://treeherder.mozilla.org/logviewer?job_id=380932755&repo=autoland&lineNumber=5908
Failure line:
TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_preferences_usage.js | browser.zoom.full should be accessed at most 25 times. - 41 <= 25 - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/browser_preferences_usage.js :: checkPrefGetters :: line 63
Flags: needinfo?(mconley)
Comment 14•2 years ago
|
||
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ced61ad7cf8f Update Zoom commands when changing zoom level. r=NeilDeakin,desktop-theme-reviewers
Comment 15•2 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 13 years ago → 2 years ago
status-firefox103:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•