Commit Graph

117 Commits

Author SHA1 Message Date
FelisCatus
8618b405a6 Fix potential race condition for proxyScriptLoaded event. 2017-08-11 22:25:14 -04:00
FelisCatus
9978279d00 Move more stuff into src/ for target-chromium. 2017-08-02 22:46:08 -04:00
FelisCatus
7a46271487 Use new brower.proxy.register/unregister API when possible. 2017-07-31 16:33:44 -04:00
FelisCatus
4dca36a45f Fix SOCKS5 servers. 2017-06-01 01:10:35 -04:00
FelisCatus
f421810959 Implement proxy script for WebExtensions. #102. 2017-06-01 01:10:35 -04:00
FelisCatus
d65c29f34d Ignore about: and moz- URLs in a few places. 2017-06-01 01:10:35 -04:00
FelisCatus
8d040f9402 Adapt to browser.storage if available. Disable proxy for now.
Added feature detection for some other chrome.* APIs.
2017-06-01 01:10:35 -04:00
FelisCatus
f68c54fbae Fix getPageInfo error when request monitor is disabled. 2017-03-18 10:10:33 -07:00
FelisCatus
9d71c91634 Add a mini-popup page with the menu only.
This allows the popup to load faster for most cases. If advanced
features are used, the user will be redirected to the full popup page.
2017-03-15 19:01:06 -07:00
FelisCatus
80b668a47e Do not modify the update URL if it contains a query string. Fix #1000. 2017-03-01 01:26:21 -05:00
FelisCatus
0f61f18c91 Retry setting icon with legacy sizes if it fails. Fix #1003. 2017-03-01 00:45:42 -05:00
FelisCatus
e0d400cc8f Do not setIcon if icon cannot be drawn. Fix #715. 2017-02-26 20:40:25 -05:00
FelisCatus
bf3df2b707 Handle IPv6 address brackets correctly in bypass list. Fix #998. 2017-02-26 00:57:43 -05:00
FelisCatus
9b8de4c582 Add URL reference back to options class. Fix #908. 2016-10-26 10:50:30 -04:00
FelisCatus
fcb063a464 Check profile update content and improve error messages. Fix #159, #903. 2016-10-25 01:09:24 -04:00
FelisCatus
f658ef9e6c Trim profile name when upgrading from SwitchySharp. Fix #778 2016-05-26 13:58:54 +08:00
FelisCatus
45a8ad2f15 Convert proxy.host to lowercase for ProxyAuth matching. Fix #727. 2016-03-17 16:31:23 +08:00
FelisCatus
b67790eb83 Pass <local> to target browser as-is. Avoid <local> in default config.
See the added comments as well as #443 for discussion.

Newly created proxy profiles will have 127.0.0.1, ::1 and localhost in
bypass list by default, instead of <local> in hope that fewer users
will be trapped in the IPv6 literals gotcha.
2016-03-17 16:18:25 +08:00
FelisCatus
a7fa690e94 Change <local> to OmegaPac.Conditions.localHosts in Chromium. Fix #443.
This works around the issue where Chromium incorrectly bypasses all IPv6
address literals when given <local> in bypass list. See #443.
2015-05-28 17:34:15 +08:00
FelisCatus
97de45e892 Move report issue and error log to browserAction context menu.
Also adds context menu item for toggling Quick Switch. Fix #464.
The context menu can be opened by right-clicking the browserAction icon.
2015-05-28 16:56:23 +08:00
FelisCatus
8f71270f1d Fix a bug where failed resources cannot be added as rules in some cases.
currentProfileCanAddRule is now correctly set regardless of page info.

Parse URLs like `chrome://errorpage/?lasturl=` in some browsers. Fix #365.
2015-05-28 14:48:50 +08:00
FelisCatus
622fd2a4d4 Ignore 127.0.0.1 in web request monitor. Fix #474. 2015-05-22 22:00:23 +08:00
FelisCatus
50df9452ef Copy proxy settings for different schemes instead of reusing. Fix #468. 2015-05-22 21:36:29 +08:00
FelisCatus
eb8c0b99d8 Handle cases where sync storage is not available. Fix #406. 2015-04-19 19:21:29 +08:00
FelisCatus
53aba6b0ea Handle error when getting a tab that no longer exists. Fix #382. 2015-04-04 17:05:07 +08:00
FelisCatus
974ef69912 Fix memory leak with extension messaging Port. Fix #383. 2015-04-04 16:59:50 +08:00
FelisCatus
16012e355a Remove debugging console.log from web request monitor. Sorry. 2015-02-28 01:00:14 +08:00
FelisCatus
b650ab31b6 Don't count timeoutAbort in obsolete main_frame as errors. 2015-02-28 00:59:37 +08:00
FelisCatus
61856d5eae Refactor WebRequestMonitor#summarizeError, improving efficiency. 2015-02-28 00:59:37 +08:00
FelisCatus
5a7e365896 Add a hard limit on the number of requests tracked per tab. Fix #296. 2015-02-28 00:59:37 +08:00
FelisCatus
2793d5efca Ignore incomplete chunked encoding error in request monitor. Fix #312. 2015-02-28 00:59:37 +08:00
FelisCatus
9b18d3194a Fix redirect detection of data: and about: URLs. Fix #293. 2015-02-18 20:05:57 +08:00
FelisCatus
11749c28fc Improve web request error detection and set badge for updated tabs. 2015-02-18 11:30:00 +08:00
FelisCatus
806f3215e8 Try to use base domain names when adding conditions. Fix #276. 2015-02-17 22:43:08 +08:00
FelisCatus
62133c2d7c Add web request monitor and network error based conditions. Fix #6. 2015-02-17 22:42:33 +08:00
FelisCatus
2f6e9dc280 Disable profile syncing if quota exceeded in sync storage. Fix #272. 2015-02-11 15:29:47 +08:00
FelisCatus
674f501ada Ignore empty data in profile update. 2015-02-09 11:43:41 +08:00
FelisCatus
6e7b5150c1 Fix a null error for _defaultAction in ChromeTabs. 2015-02-04 12:17:58 +08:00
FelisCatus
a496d991ba Support proxy username/password for PacProfile. Fix #190. 2015-01-30 21:30:48 +08:00
FelisCatus
29bebd458c Refactor Options constructor into loadOptions and init methods. 2015-01-22 23:33:26 +08:00
FelisCatus
a145d4f6a5 Add options syncing (using chrome.storage.sync). 2015-01-22 19:25:49 +08:00
FelisCatus
54eaf96634 Change npm dev script to use two-step npm link. 2015-01-14 18:28:28 +08:00
FelisCatus
8e56c4f883 Implement rule list exporting. Fix #99. 2015-01-01 21:25:08 +08:00
FelisCatus
73886642bf Add option to enable/disable inspection in context menu. Fix #83. 2014-12-22 19:34:45 +08:00
FelisCatus
a3df567b4d Disable inspectPage for now. 2014-12-20 13:00:59 +08:00
FelisCatus
bcce56320c Fix a few compatibility issue with upgrade. Fix #81, #80 2014-12-20 12:52:22 +08:00
FelisCatus
6d02c442fd Add context menu for inspecting elements. Fix #11. 2014-12-19 23:37:47 +08:00
FelisCatus
1ccdff1d7b ASCII-encode pacScript for PAC profiles. 2014-12-18 19:44:35 +08:00
FelisCatus
6918abb5b2 Initialize revision of the rulelist profile on upgrade. 2014-12-16 19:51:16 +08:00
FelisCatus
bae39a247c Add Proxy Authentication. Fix #2. 2014-12-11 18:52:09 +08:00
FelisCatus
34f18891ef Use pacScript if possible to avoid downloading pacUrl again. 2014-12-06 20:39:19 +08:00
FelisCatus
7fb69c7cda Add externalApi (cross-extension messaging) support. 2014-12-06 20:34:49 +08:00
FelisCatus
d16f4a0266 Update SwitchySharp extension id to the one used in CWS. 2014-11-28 22:52:12 +08:00
FelisCatus
e2133b3962 Show options page on first run. 2014-11-28 20:45:20 +08:00
FelisCatus
17427ae13f Fix a few issues related to upgrading. 2014-11-27 19:59:03 +08:00
FelisCatus
d8d54f4b43 Add a first-run guide which covers basic usage for options. 2014-11-27 19:36:51 +08:00
FelisCatus
dd2aff93bc Fix infinite loop in cross-extension messaging. Fix #58. 2014-11-13 12:10:32 +08:00
FelisCatus
f890993ad6 Fetch options from SwitchySharp if supported. 2014-11-12 23:40:00 +08:00
FelisCatus
a1cb3a9b37 Remove the download failed warning for now. 2014-11-07 16:08:13 +08:00
FelisCatus
144b213348 Migrate UrlWildcard to HostWildcard if possible on upgrade. 2014-11-07 16:06:03 +08:00
FelisCatus
e988fa7c1c Show profile details tooltip for popup menu and browserAction. 2014-11-07 15:38:34 +08:00
FelisCatus
658764db10 Improve UI for reserved and hidden profiles. Fix #43.
Prevent users from creating reserved profiles.
Show help on hidden profiles.

Also, avoid creating profile beginning with underscore on upgrade.
2014-10-12 14:47:47 +08:00
FelisCatus
9a628a3452 Honor config.ruleListEnabled options on upgrade.
These commits should Fix #32.
2014-10-04 17:27:53 +08:00
FelisCatus
ee144e20a7 Attach rule list to auto on upgrade. 2014-10-04 15:55:03 +08:00
FelisCatus
3b9ddfc6c5 Support PAC profiles with file: URLs. Fix #29. 2014-09-25 21:18:17 +08:00
FelisCatus
a008e492b0 Escape all non-ascii chars in generated PAC script. 2014-09-24 11:33:09 +08:00
FelisCatus
f67fe00aef Initial commit. 2014-09-21 00:01:16 +08:00