Closed Bug 1054088 Opened 10 years ago Closed 10 years ago

Default search is http

Categories

(Firefox OS Graveyard :: Gaia::Browser, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.0+, b2g-v2.0 verified, b2g-v2.1 verified)

VERIFIED FIXED
2.1 S3 (29aug)
blocking-b2g 2.0+
Tracking Status
b2g-v2.0 --- verified
b2g-v2.1 --- verified

People

(Reporter: ekr, Assigned: benfrancis)

References

Details

(Whiteboard: [systemsfe][p=2])

Attachments

(2 files)

STR: 
1. Do a search in the bar
2. Look at the google URL
3. It starts with http://

Expected behavior:
Should be https://
Hey Eric. Thanks for filing this. I just checked and this issue exists in 2.0 and below. 2.1 uses a new global search bar, and https is the default there. We will be disabling the old browser app in 2.1, and only shipping the new integrated system browser.

Is it ok with you if we marked this fixed since it is fixed in the latest trunk?
Flags: needinfo?(ekr)
(In reply to Kevin Grandon :kgrandon from comment #1)
> Hey Eric. Thanks for filing this. I just checked and this issue exists in
> 2.0 and below. 2.1 uses a new global search bar, and https is the default
> there. We will be disabling the old browser app in 2.1, and only shipping
> the new integrated system browser.
> 
> Is it ok with you if we marked this fixed since it is fixed in the latest
> trunk?

Hmmm... I think we should fix it in 2.0 if possible.

Needinfoing clee and gal for their opinion.
Flags: needinfo?(gal)
Flags: needinfo?(ekr)
Flags: needinfo?(clee)
This is pretty serious.  A fix should be trivial, so the only question I'd have is whether it would have any chance of being included by OEMs.
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → All
(In reply to Martin Thomson [:mt] from comment #3)
> This is pretty serious.  A fix should be trivial, so the only question I'd
> have is whether it would have any chance of being included by OEMs.

That's up to CAF, I think.
(I don't think we have much of an opinion, if this makes it into v2.0 it'll get picked up over here eventually)
Don't Panic!

Search engines are configured at build time, this is just the default search engine if no customizations are applied. No code changes are required to make this change on shipping devices.

Please see MDN for how partners should configure search engines when they create a build for their device https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/Market_customizations_guide#Browser_bookmarks_and_default_search_engine

Note that homescreen search providers are configured separately https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/Market_customizations_guide#Search_provider_customization
(In reply to Ben Francis [:benfrancis] from comment #6)
> Don't Panic!
> 
> Search engines are configured at build time, this is just the default search
> engine if no customizations are applied.

Well, it's not exactly awesome to have our own people getting this when
they do their own builds.


> No code changes are required to
> make this change on shipping devices.
> 
> Please see MDN for how partners should configure search engines when they
> create a build for their device
> https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/
> Market_customizations_guide#Browser_bookmarks_and_default_search_engine

I note that some of these examples have http for Google.

So what do partners in fact do?


> Note that homescreen search providers are configured separately
> https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/
> Market_customizations_guide#Search_provider_customization
(In reply to Eric Rescorla (:ekr) from comment #7)
> I note that some of these examples have http for Google.

That is an easy fix.
(In reply to Eric Rescorla (:ekr) from comment #7)
> Well, it's not exactly awesome to have our own people getting this when
> they do their own builds.

Agreed, HTTPS would be better, pull requests are always welcome.

> I note that some of these examples have http for Google.
> 
> So what do partners in fact do?

Change http to https :)
(In reply to Ben Francis [:benfrancis] from comment #9)
> (In reply to Eric Rescorla (:ekr) from comment #7)
> > Well, it's not exactly awesome to have our own people getting this when
> > they do their own builds.
> 
> Agreed, HTTPS would be better, pull requests are always welcome.

If this is a real defect (and I think it is) it really should be
fixed without requiring the reporter to provide a PR.


> > I note that some of these examples have http for Google.
> > 
> > So what do partners in fact do?
> 
> Change http to https :)

Hmm... I just had Tony reflash a Flame with a standard base image
and it behaves this way. So it seems likely in some cases we are shipping
people phones like this.
(In reply to Michael Vines [:m1] [:evilmachines] from comment #5)
> (I don't think we have much of an opinion, if this makes it into v2.0 it'll
> get picked up over here eventually)

Ok, I must have misunderstood the thread from a few days ago about CAF cherrypicking fixes from Mozilla for 2.0.
[Blocking Requested - why for this release]:

We should set the defaults to the desired behavior, rather than rely on partners or whoever is building the image to take action to get the desired behavior.
blocking-b2g: --- → 2.0?
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #11)
>
> Ok, I must have misunderstood the thread from a few days ago about CAF
> cherrypicking fixes from Mozilla for 2.0.

We're doing that for now, yes, until we reach a stable build.  Then we'd look at picking up this fix and anything else once we know where we stand.
Peter,

Please weigh in here. Should we be blocking on http v/s https Google search?
Flags: needinfo?(pdolanjski)
Flags: needinfo?(ffos-product)
We should probably block on this even though it isn't a regression.  Yes, partners could fix it in their builds, but they probably won't unless we planned followup and outreach with all of them.  

It's probably something that we should have caught earlier.  Does this apply to the other search engines as well?
Flags: needinfo?(pdolanjski)
Flags: needinfo?(ffos-product)
Flags: needinfo?(bfrancis)
(In reply to Peter Dolanjski [:pdol] from comment #15)
> We should probably block on this even though it isn't a regression.  Yes,
> partners could fix it in their builds, but they probably won't unless we
> planned followup and outreach with all of them.  
> 
> It's probably something that we should have caught earlier.  Does this apply
> to the other search engines as well?

It appears to apply to bing.
Here's a patch!
Attachment #8475902 - Flags: review?(dale)
Flags: needinfo?(bfrancis)
Assignee: nobody → bfrancis
Triage discussed and concluded we should make an exception for this patch because risk is low and we should've been doing this by default - secures the Web for all downstream 2.0 consumers who aren't making this configuration change on their own (and upgrades from older branches for those customers). Blocking+.
blocking-b2g: 2.0? → 2.0+
Decision made, no need to bother our CTO :)
Flags: needinfo?(gal)
Flags: needinfo?(clee)
I'm a little disappointed that you didn't take the opportunity to add an 's' to the youtube and facebook links while you were in there.
(In reply to Martin Thomson [:mt] from comment #21)
> I'm a little disappointed that you didn't take the opportunity to add an 's'
> to the youtube and facebook links while you were in there.

Good catch Martin! Each needs independent consideration. Can you file the bugs and link them here?
See Also: → 1056295
I just noticed that we send suggestions requests in the clear to Bing.  And we have to, since they have an invalid certificate on that domain.  We should report the certificate error on https://api.bing.com/ to Microsoft.  I've pinged my contacts at Microsoft, but maybe we have better channels for this.
See Also: → 958874
(In reply to Martin Thomson [:mt] from comment #23)
> I just noticed that we send suggestions requests in the clear to Bing.  And
> we have to, since they have an invalid certificate on that domain.  We
> should report the certificate error on https://api.bing.com/ to Microsoft. 
> I've pinged my contacts at Microsoft, but maybe we have better channels for
> this.

Yes I noticed this too whilst making the change, thank you for filing the bug.

Note that this is not actually currently used because we don't yet support third party search suggestions from any provider other than EverythingMe, the build time configuration of these values was the first step towards that feature.
TBPL was red, rebased and re-pushed to try now the tree is more green.
TBPL still red on unrelated unit test failure. Rebasing and pushing again...
https://github.com/mozilla-b2g/gaia/commit/47c11fc6c21fdb6970b70adc5f12c338d1750d24
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe][p=2]
Target Milestone: --- → 2.1 S3 (29aug)
This issue has been verified successfully on Flame2.0&2.1
Verify video:"verify_1054088.mp4".

Flame2.0 build
Gaia-Rev        8d1e868864c8a8f1e037685f0656d1da70d08c06
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/c756bd8bf3c3
Build-ID        20141130000204
Version         32.0
Device-Name     flame
FW-Release      4.4.2
FW-Incremental  eng.cltbld.20141130.032432
FW-Date         Sun Nov 30 03:24:44 EST 2014
Bootloader      L1TC00011880

Flame2.1 build:
Gaia-Rev        ccb49abe412c978a4045f0c75abff534372716c4
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/18fb67530b22
Build-ID        20141130001203
Version         34.0
Device-Name     flame
FW-Release      4.4.2
FW-Incremental  eng.cltbld.20141130.034738
FW-Date         Sun Nov 30 03:47:49 EST 2014
Bootloader      L1TC00011880
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: