Closed Bug 1280148 Opened 8 years ago Closed 8 years ago

Enable chrome custom tabs in Nightly

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(firefox50 fixed)

RESOLVED FIXED
Firefox 50
Tracking Status
firefox50 --- fixed

People

(Reporter: snorp, Assigned: sebastian)

References

Details

Attachments

(1 file, 1 obsolete file)

Could be a little annoying for Nightly folks since google search bar, twitter, etc, could use it. The defaults get cleared every time you update Nightly, though, so it probably won't actually get used unless you pretty aggressively re-make it the default.
Comment on attachment 8762775 [details] [diff] [review]
Enable Chrome Custom Tabs in Nightly be default

Review of attachment 8762775 [details] [diff] [review]:
-----------------------------------------------------------------

I'm not sure if it's a good idea to enable this at this stage (but I'll r+ and you decide). I used a custom build for some time and I was annoyed by the "white screen" problem pretty fast. It's just happening too often now that a lot of apps use custom tabs. However it will only affect users that use Nightly as their default browser (That's me!).

I was thinking about maybe adding a (user-visible) preference to disable custom tabs: We'd still pretend to support them but instead of opening the custom tab we just open a normal tab in the browser (or queue the tab). This would be helpful here, but it also allows the user to regain control and decide how links should be treated by the browser.
Attachment #8762775 - Flags: review?(s.kaspari) → review+
Assignee: nobody → snorp
Comment on attachment 8762775 [details] [diff] [review]
Enable Chrome Custom Tabs in Nightly be default

I want to land this witch the patch in bug 1285926 - which will introduce a preference (default: off). This way we can have test this in Nightly but it won't affect Nightly users that do not enable it.

@glandium: Can you have a quick look at the patch? I did review it in the past and it seemed to work locally, but I want to make sure that it's following our best practices.
Attachment #8762775 - Flags: review?(mh+mozilla)
Assignee: snorp → s.kaspari
Status: NEW → ASSIGNED
Comment on attachment 8762775 [details] [diff] [review]
Enable Chrome Custom Tabs in Nightly be default

Review of attachment 8762775 [details] [diff] [review]:
-----------------------------------------------------------------

This is how you'd do what you want within the current framework, but this sucks, so I'm going to file a bug so that you can just do the right thing in a simpler manner:

replace default=false with default=delayed_getattr(milestone, 'is_nightly')

::: mobile/android/moz.configure
@@ +36,5 @@
>  project_flag('MOZ_ANDROID_DOWNLOAD_CONTENT_SERVICE',
>               help='Background service for downloading additional content at runtime',
>               default=True)
>  
> +@depends(milestone)

@depends(milestone, '--help')

@@ -40,3 @@
>  project_flag('MOZ_ANDROID_CUSTOM_TABS',
> -             help='Enable support for Android custom tabs',
> -             default=False)

default=are_custom_tabs_enabled)

@@ +44,4 @@
>  project_flag('MOZ_ANDROID_CUSTOM_TABS',
> +             help='Enable support for Android custom tabs')
> +
> +set_config('MOZ_ANDROID_CUSTOM_TABS', are_custom_tabs_enabled)

And please remove this line.
Attachment #8762775 - Flags: review?(mh+mozilla) → review-
Depends on: 1287023
Attachment #8762775 - Attachment is obsolete: true
This is the updated patch. If bug 1287023 will land before this one then feel free to clear the review and I'll update the patch to use the new syntax.
Comment on attachment 8771494 [details]
Bug 1280148 - Enable Chrome Custom Tabs in Nightly be default

https://reviewboard.mozilla.org/r/64618/#review61730

::: mobile/android/moz.configure:46
(Diff revision 1)
> +def are_custom_tabs_enabled(milestone):
> +    return milestone.is_nightly
> +
>  project_flag('MOZ_ANDROID_CUSTOM_TABS',
>               help='Enable support for Android custom tabs',
> -             default=False)
> +             default=are_custom_tabs_enabled)

Bug 1287023 landed on inbound.
Attachment #8771494 - Flags: review?(mh+mozilla)
Argh. I pushed the patch to fx-team instead of reviewboard. Glandium, can you give it a review after it has landed? It's following your advice from the previous reviews so I won't backout for now.
Flags: needinfo?(mh+mozilla)
r+
Flags: needinfo?(mh+mozilla)
https://hg.mozilla.org/mozilla-central/rev/d8a5ea157504
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: