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

Issue 29570575: Issue 5587- Use dedicated mobile options page in Firefox Mobile (Closed)

Created:
Oct. 9, 2017, 11:51 a.m. by Oleksandr
Modified:
Oct. 9, 2017, 8:42 p.m.
Visibility:
Public.

Description

Fix for Edge not supporting 'chrome' namespace introduced in 3c76db9d2029

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move to the top of file. Change the commit message #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M options.js View 1 1 chunk +5 lines, -0 lines 1 comment Download

Messages

Total messages: 9
Oleksandr
Oct. 9, 2017, 11:52 a.m. (2017-10-09 11:52:42 UTC) #1
Manish Jethani
https://codereview.adblockplus.org/29570575/diff/29570576/options.js File options.js (right): https://codereview.adblockplus.org/29570575/diff/29570576/options.js#newcode29 options.js:29: if (typeof chrome == "undefined" || typeof chrome.runtime == ...
Oct. 9, 2017, 12:03 p.m. (2017-10-09 12:03:52 UTC) #2
Manish Jethani
You could also CC Dave on this one.
Oct. 9, 2017, 12:04 p.m. (2017-10-09 12:04:54 UTC) #3
kzar
(Yes, please Cc me on Platform (and core) issues, thanks Manish.) Nice catch, but as ...
Oct. 9, 2017, 2:02 p.m. (2017-10-09 14:02:42 UTC) #4
Oleksandr
Oct. 9, 2017, 3:18 p.m. (2017-10-09 15:18:32 UTC) #5
Manish Jethani
I think the commit message should reference issue #5587 but it should say what the ...
Oct. 9, 2017, 3:23 p.m. (2017-10-09 15:23:39 UTC) #6
Sebastian Noack
https://codereview.adblockplus.org/29570575/diff/29570646/options.js File options.js (right): https://codereview.adblockplus.org/29570575/diff/29570646/options.js#newcode23 options.js:23: window.chrome = window.browser; This fallback is duplicated in ext/common.js. ...
Oct. 9, 2017, 3:29 p.m. (2017-10-09 15:29:28 UTC) #7
Sebastian Noack
On 2017/10/09 14:02:42, kzar wrote: > Nice catch, but as mentioned in IRC please could ...
Oct. 9, 2017, 3:36 p.m. (2017-10-09 15:36:21 UTC) #8
Manish Jethani
Oct. 9, 2017, 4:18 p.m. (2017-10-09 16:18:43 UTC) #9
On 2017/10/09 15:36:21, Sebastian Noack wrote:
> On 2017/10/09 14:02:42, kzar wrote:
> > Nice catch, but as mentioned in IRC please could you open an issue for this?
I
> > think it warrants one, so the QA guys know what to test and to provide some
> more
> > context about why the change was necessary.
> 
> To be fair, since this a regression introduced by #5587, that was never
visible
> in any development builds, QA should be covered by that issue. So I'm fine
with
> relating this change to #5587 (as Ollie did now). But please use a more
distinct
> commit message / review title.

Ollie, I'm making a bigger change here:

https://codereview.adblockplus.org/29570614/

I found myself writing similar code to cover this case, but in the opposite
direction (browser points to chrome on non-Edge platforms). Since Sebastian has
suggestion that we put this in a separate file called polyfill.js, I think I can
do all of this as part of that big change. We can close this issue then.

Powered by Google App Engine
This is Rietveld