Closed
Bug 1251326
Opened 10 years ago
Closed 10 years ago
PAC: functions for time based conditions don't support date/day/time "wrapping"
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
INVALID
People
(Reporter: dmcdonald999, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20160210153822
Steps to reproduce:
For any PAC time-based function:
1. weekdayRange("SUN", "SAT") versus weekdayRange("SAT", "SUN")
2. dateRange("JAN", "DEC") versus DateRange("DEC", "JAN")
3. timeRange(0, 23) versus timeRange(23, 0)
Actual results:
1. weekdayRange("SUN", "SAT") will always evaluate to true. WeekdayRange("WED", "SUN") will only evaluate true if the current day is Wednesday or Sunday.
2. dateRange("JAN", "DEC") will always evaluate to true. DateRange("DEC", "JAN") will only evaluate true if the current month is December or January.
3. timeRange(0, 23) will always evaluate to true. TimeRange(23, 0) will only evaluate true if the current hour is 23:00 or midnight.
Expected results:
days, dates, and times should "wrap" so that the range WED, SUN should include WED, THURS, FRI, SAT, SUN. See PAC documentation https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Necko/Proxy_Auto-Configuration_%28PAC%29_file
| Reporter | ||
Comment 1•10 years ago
|
||
replaced by 1251332
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•