Closed
Bug 1431725
Opened 7 years ago
Closed 7 years ago
Rename "tabHide" permission to "tabs.hide" for consistency
Categories
(WebExtensions :: General, enhancement, P2)
WebExtensions
General
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".
Updated•7 years ago
|
Flags: needinfo?(mixedpuppy)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → mixedpuppy
Assignee | ||
Comment 1•7 years ago
|
||
@wbamberg FYI, I'm going to make this change and get it uplifted. We should reflect that in docs.
Flags: needinfo?(wbamberg)
Assignee | ||
Updated•7 years ago
|
Priority: -- → P2
Assignee | ||
Comment 2•7 years ago
|
||
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.
Reporter | ||
Comment 3•7 years ago
|
||
(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)
Assignee | ||
Comment 4•7 years ago
|
||
(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)
Assignee | ||
Comment 5•7 years ago
|
||
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
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•