David Rosca
53bf6662dc
AdBlock: Fix updating rules when adding/removing subscriptions
...
This also fixes crash on first network request after removing subscription
2016-01-02 17:54:36 +01:00
innermous
a9043f0584
Fix adding Adblock list
2015-12-12 22:33:23 +02:00
David Rosca
4a8d8fde59
Fix build with latest Qt 5.6 snapshot
...
Closes #1797
2015-12-09 19:33:54 +01:00
Jonathan Hooverman
bdd9a0cf02
Update adblockaddsubscriptiondialog.cpp
...
Fixes #1785
2015-11-27 12:51:14 +01:00
David Rosca
af93ecf81e
AdBlock: Show error page when the whole page was blocked
2015-10-14 12:41:42 +02:00
David Rosca
258d78a247
AdBlockRule: Fix handling domain and third-party restrictions
...
Domain and third-party restrictions should be applied on page url,
not url of request.
This requires https://codereview.qt-project.org/#/c/127159/
2015-10-09 13:16:24 +02:00
David Rosca
03399c7b2c
Use acceptNavigationRequest to handle abp: urls
...
QtWebEngine now sends external urls through acceptNavigationRequest
so it is no longer needed to install scheme handler.
2015-10-08 22:39:27 +02:00
David Rosca
de0dd7fb2d
Fix build with latest QtWebEngine 5.6
2015-10-08 22:17:21 +02:00
David Rosca
6b02cd4cab
AdBlockRule: Correctly disable third-party option
2015-10-06 10:13:41 +02:00
David Rosca
db058ff194
Remove use of QNetworkRequest in LoadRequest
2015-10-06 09:46:23 +02:00
David Rosca
88c5b271e2
AdBlockRule: Add support for script, stylesheet and object-subrequest
2015-10-05 20:43:05 +02:00
David Rosca
150252aea9
Don't store blocked entries in WebPage
...
It is not possible in this way with QtWebEngine
2015-10-05 20:23:10 +02:00
David Rosca
e91d6482d1
Bring back AdBlock blocking network requests
2015-10-05 20:16:51 +02:00
David Rosca
32a0db31b3
AutoFill: Initial port to QtWebEngine
...
There are still issues with completing forms in frames
2015-08-31 18:56:52 +02:00
David Rosca
758fd6c687
Fix all build warnings
2015-08-30 17:42:58 +02:00
David Rosca
a672771cef
WebPage: Remove isPointerSafeToUse hack
...
Pointers are no longer stored as void* in network requests
2015-08-28 16:18:05 +02:00
David Rosca
e5ec3cea90
Revert [AdBlock] Add Malware Domain List and Malware domains subscription
...
This reverts commits 7c66b3176c
and
2f2d2850cd
2015-08-01 18:10:09 +02:00
Peter Dave Hello
2f2d2850cd
[AdBlock] Add "Malware domains" subscription
2015-07-11 21:16:10 +08:00
Peter Dave Hello
7c66b3176c
[AdBlock] Add "Malware Domain List" subscription
2015-07-11 21:16:05 +08:00
Peter Dave Hello
cc58aa49f8
[AdBlock] Add "Anti-Adblock Killer" subscription
2015-07-11 21:14:51 +08:00
David Rosca
2d6ba21c03
AdBlockIcon: Set minimum size
...
See #1655
2015-05-28 11:15:51 +02:00
David Rosca
458c131170
AdBlockRule: Disable copy
...
Closes #1654
2015-05-28 11:15:43 +02:00
Jonathan Hooverman
610dd28ae1
Removed outdated AdBlock Fanboy subscription, closes #1637
2015-04-23 20:23:07 +02:00
David Rosca
8d7cfb0e2a
Remove some Qt 4 specific code
2015-02-26 12:17:47 +01:00
David Rosca
60b2386a6e
Initial port to QtWebEngine
...
This is first quick port to QtWebEngine, most of advanced features
are not working yet. Please read README.
For now, it will use separate profile directory as well as browser
session, that means you can use both QtWebEngine and QtWebKit versions
at the same time.
2015-01-27 11:01:52 +01:00
Jonathan Hooverman
fbcb3022ee
ChinaList is deprecated and has been replaced by Easylist China
...
Fixes #1516
2014-11-05 12:53:34 +01:00
David Rosca
2ed002cb2a
Fix build with Qt 4.7
2014-11-03 15:45:11 +01:00
David Rosca
a0dd1ddcb7
AdBlock: Use one cache for all subscriptions
...
Added new class AdBlockMatcher that holds the cache of
all subscriptions with rules.
This moves the matching logic from AdBlockSubscription into
separate class.
It also fixes issue that CSS exception rules weren't able to
affect rules from different subscription.
2014-10-31 15:39:02 +01:00
David Rosca
e5065185fd
AdBlock: Add DuckDuckGo ad whitelist rules to custom list
...
Those rules cannot be deleted, but can be disabled.
Please consider not disabling those rules. Thanks!
2014-10-14 17:05:14 +02:00
David Rosca
a61e3ff0ad
AdBlockTree: Fixed coloring CSS exception rules
...
CSS exception rules are now green (as exceptions) instead of
blue (as CSS rules)
2014-10-13 17:02:12 +02:00
David Rosca
6ae0109115
AdBlockRule: Add copy() method
...
Faster method to copy rule than parse again the filter.
2014-09-16 10:38:28 +02:00
David Rosca
e8cddd16ea
AdBlock: Add support for exception css rules
...
Closes #1446
2014-09-16 09:39:25 +02:00
David Rosca
ed866dc9a4
AdBlock: Add support for parsing CSS Element hiding exceptions
...
Those rules are however not supported at the moment.
2014-09-16 00:37:13 +02:00
David Rosca
6dcf8c598a
AdBlock: Reload global user stylesheet after disabling/enabling AdBlock
...
It was needed to restart the browser to completely disable / enable
AdBlock.
2014-09-15 23:43:47 +02:00
David Rosca
c4e0646915
[AdBlock] Add "Other..." entry in AddSubscription dialog
...
To make it less confusing how to add a subscription that is not
listed in known subscriptions.
2014-07-08 19:08:28 +02:00
S. Razi Alavizadeh
7fc0c8d06d
[RTL] Force AdBlockTreeWidget and treeTags to be as LTR widgets.
2014-05-29 01:08:56 +04:30
David Rosca
9df585a8f8
[AdBlockSubscription] Fix infinite loading of subscription when cannot write to file
2014-04-16 17:15:55 +02:00
David Rosca
8a0b6f0d10
[Build] Fixed building with Qt4
2014-04-13 12:24:37 +02:00
David Rosca
eb8ae20cc1
[AdBlockRule] Improve performance of rule matching with QStringMatcher
...
Use QStringMatcher instead of QString::contains in RegExpFilters.
QStringMatcher internally uses fast Boyer-Moore algorithm.
2014-04-13 11:49:39 +02:00
nowrep
463fa96e04
[Build] Fixed building with Qt5
2014-04-06 13:50:09 +02:00
nowrep
db664184d0
[AdBlock] Improved performance of loading rules
...
Don't use regexps for parsing rules.
Added benchmark for loading subscriptions
Before:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
596.3 msecs per iteration (total: 2,982, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
After:
********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
481.8 msecs per iteration (total: 2,409, iterations: 5)
PASS : AdBlockParseRule::parseEasyList()
PASS : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
2014-04-06 13:36:42 +02:00
nowrep
6874df57d7
[Coding Style] Edited coding style (use linux style brackets)
...
Linux style brackets are now used also for source files.
One line blocks can now be without brackets.
Example:
if (test)
foo();
Multi-line if statements are now written with conditionals (||, &&, ...)
at the end of line. The last line of if body does not ends with closing
bracket, instead the closing bracket is written on separate line.
One line blocks in multi-line if statements should not be without brackets.
Example:
if (test ||
test2 &&
test3
) {
foo();
}
[ci skip]
2014-04-05 14:53:45 +02:00
nowrep
e6baa54179
[Qt5] Fixed QIODevice::not open warning message
2014-03-16 14:30:59 +01:00
nowrep
fe0b03fdb7
Include QDebug in qzcommon.h
...
It's annoying to always include it just to remove a moment after...
2014-03-16 13:22:41 +01:00
nowrep
493edfc655
[AdBlockRule] Save some memory with dynamic allocation and removing member variables
...
m_regExpStrings are now also dynamically allocated only for RegExp rules
m_cssSelector is now merged with m_matchString (m_matchString was empty
for Css Rules)
2014-03-12 13:25:12 +01:00
nowrep
969f262cf8
[DataPaths] Don't add trailing slash to paths
...
Qt API is not adding trailing slashes to dir paths either.
2014-03-09 22:17:13 +01:00
nowrep
214279e3bb
[DataPaths] Added new class DataPaths
...
This class holds all paths now (instead of MainApplication)
Renamed ProfileUpdater -> ProfileManager
ProfileManager is now responsible for all operations with profiles
2014-03-09 21:51:42 +01:00
nowrep
985db8a35d
[AdBlockManager] Use Q_GLOBAL_STATIC for AdBlockManager
2014-03-09 12:54:23 +01:00
nowrep
a3c3dead87
[CodeCleanup] Get rid of Qz::AppMessage enum
2014-03-09 12:54:07 +01:00
nowrep
417da146e5
[QzTools] Make QzTools class and export only the class
...
Also fixed building on Windows
2014-03-07 22:54:50 +01:00