Commit Graph

1666 Commits

Author SHA1 Message Date
Chris c255f02f0f Way simplify vAPI closePopup for Safari 2015-01-13 13:55:52 -07:00
gorhill de9fad5ec3 this fixes #464 2015-01-13 15:52:15 -05:00
Deathamns 7bf0113db9 Firefox: fix tooltip animation 2015-01-13 21:33:26 +01:00
Deathamns bcc1c0da11 Fix prorblems caused by vAPI.insertHTML 2015-01-13 20:25:10 +01:00
gorhill 35ee7b79f8 this fixes #489 2015-01-13 12:54:13 -05:00
gorhill 31e2b1ac03 Merge branch 'master' of github.com:gorhill/uBlock 2015-01-13 11:55:02 -05:00
gorhill b436f8e829 this fixes #490 2015-01-13 11:54:54 -05:00
Deathamns 7d2fe49eb0 Fix popup tooltips and sizing for Firefox 2015-01-13 17:20:16 +01:00
gorhill 5ec300602a this fixes default tab selection for Firefox 2015-01-13 11:01:33 -05:00
gorhill 580d3a81db build package only if "all" arg specified 2015-01-13 09:28:53 -05:00
gorhill 7e6acb9200 fix script 2015-01-13 08:14:00 -05:00
gorhill da0a2cd206 create package 2015-01-13 07:55:45 -05:00
gorhill 929466b429 chmod u+x 2015-01-13 07:51:14 -05:00
Deathamns b4ea545412 Implement vAPI.insertHTML
The purpose of this API is basically to satisfy AMO reviewers in the
future, since the use of innerHTML with variables (i.e., not plain text) will
be rejected without any questions.

Since this is not a problem for browsers other than Firefox, they will
use simple innerHTML assignment, however safe-parsing could be implemented
for them too.
2015-01-13 07:30:07 +01:00
Deathamns 3522f0414d Firefox: remove unloading from vAPI 2015-01-13 07:30:05 +01:00
Deathamns e0f214961d Miscellaneous changes 2015-01-13 07:30:04 +01:00
Deathamns a71c967613 Firefox: fixed content scripts? 2015-01-13 07:30:03 +01:00
Deathamns 687d226ce9 Firefox: improvements for content scripts 2015-01-13 07:30:01 +01:00
Deathamns d0de3d0d72 Firefox,Safari: implement vAPI.tabs.reload 2015-01-13 07:30:00 +01:00
Deathamns a31c30d55e Firefox: simplify vAPI.app.restart 2015-01-13 07:29:59 +01:00
Deathamns 41ac8ad39f Firefox: workaround for the e10s crash 2015-01-13 07:29:57 +01:00
Deathamns 8a9165daa2 Firefox: blocking improvements / other fixes
- Implement pop-up blocking
- Support blocking redirected requests
- Fix Local mirroring and inline-script blocking
- Block content on data: and about:blank pages
2015-01-13 07:29:56 +01:00
Deathamns 05bcc070a9 Firefox: popup size for menu-panel 2015-01-13 07:29:54 +01:00
Deathamns f0ad21fcf5 Safari: code styling 2015-01-13 07:29:53 +01:00
Deathamns a8e02d4dfa Firefox: fix copy-paste memory leak 2015-01-13 07:29:51 +01:00
Deathamns fbd2f74eb5 Firefox: implement vAPI.app.restart 2015-01-13 07:29:50 +01:00
Deathamns 5e55ba772d Code styling 2015-01-13 07:29:49 +01:00
Deathamns 9169388849 Firefox: ownsWeak=true for observers, +minor mods 2015-01-13 07:29:47 +01:00
Deathamns b8c943d539 Make vAPI.setIcon less Chromium specific 2015-01-13 07:29:46 +01:00
Deathamns b301ac031e Popup related changes 2015-01-13 07:29:44 +01:00
Deathamns dbfacad8a6 Firefox: new method for request handling
Now both nsIContentPolicy and on-http-* observers are used for net request
monitoring.

Reasons:
 - In many cases, nsIContentPolicy.shouldLoad is invoked twice for the same
   resource, because of the speculative parsing.
 - nsIContentPolicy.shouldLoad don't have information about the channel,
   so it can't redirect the request, nor change its headers, however
   on-http-opening-request can.

Also, local mirroring and inline-script blocking has been implemented.
2015-01-13 07:29:43 +01:00
Deathamns 720794357c Safari: get appinfo from tooltip 2015-01-13 07:29:41 +01:00
Deathamns 7815455aca Fix build scipts' shebang, let -> const 2015-01-13 07:29:40 +01:00
Deathamns 7ade0ec7e8 Firefox: better way to get the messageManager 2015-01-13 07:29:39 +01:00
Deathamns 5c2af95c73 Firefox: proper cleanup for context-menu item 2015-01-13 07:29:37 +01:00
Deathamns d4b2b81ae8 Firefox: move callback to last call 2015-01-13 07:29:36 +01:00
Deathamns 1bb074211c Firefox: saved prefs were overwritten by defaults 2015-01-13 07:29:34 +01:00
Deathamns 16a7bcb3d8 Firefox: add missing vAPI.onLoadAllCompleted 2015-01-13 07:29:33 +01:00
Deathamns a07b3a1d3e Python2 compatibility for build scripts 2015-01-13 07:29:32 +01:00
Deathamns 8a19f32373 Remove duplicate 'use strict'; 2015-01-13 07:29:30 +01:00
Deathamns 90c874c2aa Slight update for Python scripts 2015-01-13 07:29:29 +01:00
Deathamns 85ee514ebc Firefox: improve vAPI.tabs.getTabId 2015-01-13 07:29:28 +01:00
Deathamns c45b7c75e2 Firefox: implement vAPI.contextMenu 2015-01-13 07:29:26 +01:00
Deathamns 0d28d19a4e Chrome,Safari: fix typo and quotes 2015-01-13 07:29:25 +01:00
Deathamns aa2dc049a2 Firefox: set "en" as default locale 2015-01-13 07:29:23 +01:00
Deathamns 782f8d441d Firefox: revert previous change
Initializing the extension with AddonManager takes too long (at least for
this extension).
When starting the browser, tabs loaded before the extension could, and
because of that, blocking didn't work.
It works better, if it's initialized when the window's DOM is ready.
2015-01-13 07:29:22 +01:00
Deathamns e61514b9b1 Firefox,Safari: fill vAPI.app in a different way
Pass the extension data (name and version) as the fragment of the URL
for the background script, so vAPI.app can be filled without using XHR
to read the manifest files.
2015-01-13 07:29:21 +01:00
Deathamns 20bd1287cf Firefox: location.host isntead of app.cleanName 2015-01-13 07:29:19 +01:00
Deathamns 4e271aebb3 Include LICENSE.txt into extension packages 2015-01-13 07:29:18 +01:00
Deathamns ecdee65fda Add license headers, plus some code styling 2015-01-13 07:29:16 +01:00