Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29589646: shouldWrapAPIs in polifills breaks ABP for Edge (Closed)

Created:
Oct. 26, 2017, 4:30 p.m. by Oleksandr
Modified:
Oct. 27, 2017, 1:15 p.m.
Visibility:
Public.

Description

shouldWrapAPIs in polifills breaks ABP for Edge

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M polyfill.js View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 6
Oleksandr
Oct. 26, 2017, 4:31 p.m. (2017-10-26 16:31:26 UTC) #1
Sebastian Noack
https://codereview.adblockplus.org/29589646/diff/29589647/polyfill.js File polyfill.js (right): https://codereview.adblockplus.org/29589646/diff/29589647/polyfill.js#newcode120 polyfill.js:120: return !(browser.storage.local.get([], () => {}) instanceof Promise); This will ...
Oct. 26, 2017, 5:11 p.m. (2017-10-26 17:11:25 UTC) #2
kzar
Nit: Typo in commit message "polifills".
Oct. 27, 2017, 11:20 a.m. (2017-10-27 11:20:36 UTC) #3
Manish Jethani
Also I would add "Issue 4579" to the commit message and change it to whatever ...
Oct. 27, 2017, 11:32 a.m. (2017-10-27 11:32:23 UTC) #4
Manish Jethani
On 2017/10/27 11:32:23, Manish Jethani wrote: > Also I would add "Issue 4579" to the ...
Oct. 27, 2017, 11:45 a.m. (2017-10-27 11:45:34 UTC) #5
Oleksandr
Oct. 27, 2017, 1:15 p.m. (2017-10-27 13:15:29 UTC) #6
https://codereview.adblockplus.org/29589646/diff/29589647/polyfill.js
File polyfill.js (right):

https://codereview.adblockplus.org/29589646/diff/29589647/polyfill.js#newcode120
polyfill.js:120: return !(browser.storage.local.get([], () => {}) instanceof
Promise);
On 2017/10/26 17:11:24, Sebastian Noack wrote:
> This will defeat the purpose of this check, since on Firefox no promise is
> returned if a callback is provided.
> 
> What is the behavior/issue on Microsoft Edge?

I am not sure what happened but as I test again now there is just an exception
which gets caught by the catch as expected. No need for this patch then, so I am
closing this. Sorry for the trouble!

Powered by Google App Engine
This is Rietveld