Changes between Version 8 and Version 10 of Ticket #6622


Ignore:
Timestamp:
05/15/2018 09:03:58 PM (16 months ago)
Author:
hfiguiere
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6622 – Description

    v8 v10  
    11=== Background === 
    2 Issue #6592 introduce a new rewrite option to rewrite URL instead of blocking. This is to implement the WebExt side of the rewrite 
     2Issue #6592 introduce a new rewrite option to rewrite URL instead of blocking. This is to implement the WebExt side of the rewrite. 
     3 
     4Rewriting a URL is, instead of blocking the request, modifying the request URL to load that instead. 
    35 
    46=== What to change === 
     
    1921 * TBD 
    2022 
    21 === Hint for tester === 
     23=== Hint for testers === 
    2224* Test that blocking filters without rewrite aren't broken 
     25* Ensure that the rewrites are logged accordingly into the developer tools. 
    2326* Test filters with rewrite option. 
    24   * Rewrite to relative URL. Should succeed. 
    25   * Rewrite to different origin: Should fail the original request let through 
    26 * Ensure that the rewrites are logged accordingly into the developer tools. 
     27  * Basic rewrite: add filter `/(testpages\.adblockplus\.org\/css\/testpages\.css)\?14$/$rewrite=$1?42` and visit https://testpages.adblockplus.org/en/testcases/css/03 . You should notice the rewrite in the Adblock Plus developer tool panel. 
     28  * Rewrite to relative URL. Should succeed. Add filter `/testpages\.adblockplus\.org(\/css\/testpages\.css)\?14$/$rewrite=$1?42` (and make sure the previous filter is removed). You should notice the rewrite in the Adblock Plus developer tool panel. 
     29  * Rewrite to different origin: Should fail and the original request let through. Add filter `/testpages\.adblockplus\.org(\/css\/testpages\.css)\?14$/$rewrite=bogus.adblockplus.org$1?42` (and make sure the previous filter is removed). You should notice the rewrite in the Adblock Plus developer tool panel, showing that the rewritten URL is the same as the original one.