Closed Bug 1432907 Opened 6 years ago Closed 6 years ago

Add build flag to disable network tickler

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox60 fixed)

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: arthur, Assigned: arthur)

References

(Blocks 1 open bug)

Details

(Whiteboard: [tor 18799][tor-mobile])

Attachments

(1 file)

In Tor Browser, a patch disables the network tickler. We would like to propose adding a build flag in Firefox that disables the network tickler, so we can add it to Tor Browser's mozconfig.

The existing patch is at
https://torpat.ch/18799
The original ticket as at
https://trac.torproject.org/18799
Since it touches C++, over to the Necko module.

This doesn't seem too bad from the build system side. If you need help with the patch, ping a build peer.
Component: Build Config → Networking
I think this is more about changes to our build scripts.
Component: Networking → Build Config
The simplest thing to do here would be something like (probably in toolkit/moz.configure):
```
@depends(target)
def wifi_tickler_default(target):
    return target.os == 'Android'

@option('--disable-wifi-tickler', default=wifi_tickler_default, help='Disable WiFi tickler, which is used on mobile to mitigate Power Save Polling mode')

@depends('--disable-wifi-tickler')
def wifi_tickler(value):
  if value:
     return True

set_define('MOZ_USE_WIFI_TICKLER', wifi_tickler)
```
Then simply remove the `#if defined(ANDROID) ...` bits from Tickler.h.
Whiteboard: [tor 18799] → [tor 18799][tor-mobile]
Blocks: ProxyBypass
Here's an approach that uses the --enable-proxy-bypass-protection flag.
Attachment #8948893 - Flags: review?(honzab.moz)
Attachment #8948893 - Flags: review?(honzab.moz) → review+
Thanks!
Keywords: checkin-needed
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/84075ce9cbe8
Disable network tickler with proxy bypass protection r=mayhemer
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/84075ce9cbe8
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Product: Core → Firefox Build System
Assignee: nobody → arthuredelstein
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: