Closed
Bug 1392176
Opened 7 years ago
Closed 7 years ago
Implement optional permission prompts
Categories
(WebExtensions :: Android, defect, P3)
Tracking
(firefox57 verified, firefox58 verified)
VERIFIED
FIXED
mozilla58
People
(Reporter: aswan, Assigned: aswan)
References
Details
Attachments
(2 files)
59 bytes,
text/x-review-board-request
|
kmag
:
review+
sebastian
:
review+
Sylvestre
:
approval-mozilla-beta+
|
Details |
3.94 MB,
image/gif
|
Details |
No description provided.
Updated•7 years ago
|
Priority: -- → P3
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8908723 -
Flags: review?(s.kaspari)
Attachment #8908723 -
Flags: review?(kmaglione+bmo)
Assignee | ||
Comment 3•7 years ago
|
||
Kris, you're welcome to comment on the rest if you like but mostly I flagged you to r+ the ext-tabs.js change.
Updated•7 years ago
|
status-firefox57:
--- → fix-optional
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8908723 [details]
Bug 1392176 Implement prompts for browser.permissions.request() on Android
https://reviewboard.mozilla.org/r/180358/#review186300
::: mobile/android/components/extensions/ext-tabs.js
(Diff revision 2)
> -XPCOMUtils.defineLazyModuleGetter(this, "MatchPattern",
> - "resource://gre/modules/MatchPattern.jsm");
Thank you.
Attachment #8908723 -
Flags: review?(kmaglione+bmo) → review+
Comment 6•7 years ago
|
||
Would you have chance to look Sebastian, hoping to land before 57 merge?
Flags: needinfo?(s.kaspari)
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8908723 [details]
Bug 1392176 Implement prompts for browser.permissions.request() on Android
https://reviewboard.mozilla.org/r/180358/#review187466
LGTM.
Attachment #8908723 -
Flags: review?(s.kaspari) → review+
Pushed by aswan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/38bd8b9bf3d8
Implement prompts for browser.permissions.request() on Android r=kmag,sebastian
Comment 9•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Assignee | ||
Comment 10•7 years ago
|
||
Comment on attachment 8908723 [details]
Bug 1392176 Implement prompts for browser.permissions.request() on Android
Approval Request Comment
[Feature/Bug causing the regression]:
none, not a regression
[User impact if declined]:
Users will get install-time prompts for WebExtension permissions, but extensions will be able to add additional permissions at runtime without any prompts. The install-time and run-time prompts complement each other and the former all landed in Fennec 57 but the run-time prompts in this patch landed shortly after the merge, it would be good to have them all together in the same release.
[Is this code covered by automated tests?]:
no
[Has the fix been verified in Nightly?]:
It has been verified by the author, further verification from QE would be good though.
[Needs manual test from QE? If yes, steps to reproduce]:
yes, see above
[List of other uplifts needed for the feature/fix]:
none
[Is the change risky?]:
no
[Why is the change risky/not risky?]:
The new code only runs when extensions use the WebExtensions api to request additional permissions at runtime. Changes to existing code that could introduce regressions are minimal.
[String changes made/needed]:
There are new strings in the patch. For what its worth, they match existing strings on desktop and the existing desktop translations could be re-used if necessary.
Attachment #8908723 -
Flags: approval-mozilla-beta?
Comment 11•7 years ago
|
||
can we let it ride the train? Thanks
Ni to flod to sign off on the new strings.
Flags: needinfo?(francesco.lodolo)
Comment 12•7 years ago
|
||
It's OK to uplift this to beta.
For the record, there's no such thing as reusing existing desktop translations on Fennec.
Flags: needinfo?(francesco.lodolo)
Comment 13•7 years ago
|
||
Comment on attachment 8908723 [details]
Bug 1392176 Implement prompts for browser.permissions.request() on Android
This can be a pretty bad UX if a webextension requests new permissions without any validation from the user, taking it
should be in 57b3
Attachment #8908723 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 14•7 years ago
|
||
bugherder uplift |
Comment 15•7 years ago
|
||
This issue is verified as fixed on Fennec 58.0a1 (2017-09-25) and Fennec 57.0b3 under Android 7.1.2
The optional permissions are displayed when they are prompted.
Please see the attached video.
Updated•7 years ago
|
Flags: needinfo?(s.kaspari)
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•