Domain exceptions of proxy don't affect video streams

RESOLVED INVALID

Status

()

defect
RESOLVED INVALID
2 years ago
2 years ago

People

(Reporter: just4steam778, Assigned: xeonchen)

Tracking

53 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-active][proxy])

Reporter

Description

2 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Build ID: 20170220084250

Steps to reproduce:

I tried to make Firefox load videos directly while using a proxy for everything else by adding domains to the No Proxy For field and with the following PAC file.

function FindProxyForURL(url, host) {
  if (isPlainHostName(host) ||
     dnsDomainIs(host, ".youtube.com") ||
     dnsDomainIs(host, "youtube.com") ||
     dnsDomainIs(host, ".twitch.tv") ||
     dnsDomainIs(host, "twitch.tv")){
       return "DIRECT";
  } else {
    return "SOCKS5 localhost:4711";
  }
}


Actual results:

Videos still were downloaded via a proxy. This problem also affects the stable version.
Reporter

Comment 1

2 years ago
OS: Arch Linux
Component: Activity Streams: General → General
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

Updated

2 years ago
Component: General → Networking: HTTP
Product: Firefox → Core
Gary, could you take a look at this please?  My first suspicions here is (never looked personally) that the video content files are coming from a cdn with a different host name.  Would be the first thing to check.
Assignee: nobody → xeonchen
Whiteboard: [necko-active]
Assignee

Comment 3

2 years ago
Hi Daniil,

I'm not 100% sure what are the YouTube's and Twitch's CDNs, but maybe you can add:

  googlevideo.com
  googleusercontent.com
  jtvnw.net
  ttvnw.net

to your PAC and see if this fixes your problem?
Flags: needinfo?(just4steam778)

Updated

2 years ago
Whiteboard: [necko-active] → [necko-active][proxy]
Reporter

Comment 4

2 years ago
The YouTube ones work, but the Twitch ones don't.
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Reporter

Updated

2 years ago
Flags: needinfo?(just4steam778)
You need to log in before you can comment on or make changes to this bug.