calling chrome.management.getSelf before geting optional management permissions breaks chrome.management.getAll
Reported by
thors.s...@googlemail.com,
Jun 2 2017
|
|||
Issue description
UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Steps to reproduce the problem:
In an extension:
1. chrome.management.getSelf
2. chrome.permissions.request({ permissions: ['management']...
3. console.log('chrome.management.getAll', chrome.management.getAll);});
What is the expected behavior?
I expect to see the 'getAll' function which should now be available
What went wrong?
The 'getAll' entry in the object is still 'undefined'
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 58.0.3029.110 Channel: stable
OS Version: 58
Flash Version:
The demo is also available here:
https://github.com/Thorsten-Sick/chromium_bug_demo_getSelf
remove the 'getSelf' from the script and it works
It seems to happen at least in 58 and 59 Chromes. Tested on Windows and Linux.
,
Jun 2 2017
,
Jun 5 2017
Tested the issue on windows 7 , Mac os 10.12.5 and ubuntu 14.04 using chrome M58 #58.0.3029.110 and issue is reproduced. Issue is seen from M48 #48.0.2560.0 and issue behavior is different in earlier versions of chrome. This is a Non-regression issue and marking is as untraiged for further inputs on this. Thanks! |
|||
►
Sign in to add a comment |
|||
Comment 1 by woxxom@gmail.com
, Jun 2 2017Also broken in canary 61.0.3117.0. Repro note for the test team: 1. [re]install the extension - this is important to reset its permissions 2. click its icon in the toolbar to show the popup 3. right-click anywhere in the popup, Inspect, switch to console 4. click the "Make it break" button in the popup 4. click "Allow" in the confirmation dialog 5. switch to the opened devtools console and observe the output EXPECTED: chrome.management.getAll ƒ () { ..... + a few lines of code OBSERVED: chrome.management.getAll undefined