Closed Bug 1431725 Opened 7 years ago Closed 7 years ago

Rename "tabHide" permission to "tabs.hide" for consistency

Categories

(WebExtensions :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ntim, Assigned: mixedpuppy)

References

(Blocks 1 open bug)

Details

The permission for downloads.open() is "downloads.open", hence "tabHide" should also be consistent and become "tabs.hide".
Flags: needinfo?(mixedpuppy)
Blocks: 1410548
Flags: needinfo?(mixedpuppy)
Assignee: nobody → mixedpuppy
@wbamberg FYI, I'm going to make this change and get it uplifted. We should reflect that in docs.
Flags: needinfo?(wbamberg)
Priority: -- → P2
I'm actually on the fence about this. downloads.open is the only permission we have that isn't camelCased. An older example is webRequest and webRequestBlocking. We also have tabs and activeTab (rather than tabs.active), clipboardRead and clipboardWrite, rather than clipboard.read/write. If anything, we probably should have used tabsHide. I'll ping the team on irc for input.
(In reply to Shane Caraveo (:mixedpuppy) from comment #2) > I'm actually on the fence about this. downloads.open is the only permission > we have that isn't camelCased. An older example is webRequest and > webRequestBlocking. We also have tabs and activeTab (rather than > tabs.active), clipboardRead and clipboardWrite, rather than > clipboard.read/write. If anything, we probably should have used tabsHide. > I'll ping the team on irc for input. That's because there are no methods called webRequest.blocking/clipboard.read/clipboard.write/tabs.active. There is a method called downloads.open, and one called tabs.hide, so I think "tabs.hide" makes sense here.
Flags: needinfo?(mixedpuppy)
(In reply to Tim Nguyen :ntim from comment #3) > (In reply to Shane Caraveo (:mixedpuppy) from comment #2) > > I'm actually on the fence about this. downloads.open is the only permission > There is a method called downloads.open, and one called tabs.hide, so I > think "tabs.hide" makes sense here. tabHide covers both tabs.hide and tabs.show, so it's not a 1:1 match to the api. Maybe it should be tabVisibility.
Flags: needinfo?(mixedpuppy)
Thought on this more & talked with mconca. We're just going to stick with tabHide on this. If tabstrip hiding becomes a thing, it may also be covered under this permission.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(wbamberg)
Resolution: --- → WONTFIX
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.