Closed Bug 1417272 Opened 7 years ago Closed 7 years ago

The "Send Tab to Device" page action can be disabled in the page action menu but enabled in the urlbar

Categories

(Firefox :: Address Bar, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 59
Tracking Status
firefox59 --- fixed

People

(Reporter: adw, Assigned: adw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

If you open a page that's not sendable via Sync (about:about for example), the Send Tab to Device menu item in the page action menu will be disabled. But if you also add that action to the urlbar, its button there will not be disabled. The menu item is disabled here: https://dxr.mozilla.org/mozilla-central/rev/fc194660762d1b92e1679d860a8bf41116d0f54f/browser/base/content/browser-pageActions.js#962 Only the node in the menu is disabled, not the one in the urlbar (if present). But what should actually happen now (probably) is to call PageActions.actionForID("sendToDevice").setDisabled(window), now that we have that ability. That will automatically disable both nodes for that window.
This replaces the manual setting of the disabled attribute on the panel button (and only the panel button, not the urlbar button) with an onLocationChange handler and action.setDisabled().
Comment on attachment 8928681 [details] Bug 1417272 - The "Send Tab to Device" page action can be disabled in the page action menu but enabled in the urlbar. https://reviewboard.mozilla.org/r/199924/#review205408 Great, thanks!
Attachment #8928681 - Flags: review?(gijskruitbosch+bugs) → review+
Assignee: nobody → adw
Mentor: adw
Status: NEW → ASSIGNED
Priority: -- → P1
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6bf259a96c49 The "Send Tab to Device" page action can be disabled in the page action menu but enabled in the urlbar. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: