Changes between Initial Version and Version 1 of Ticket #3477


Ignore:
Timestamp:
01/07/2016 03:01:46 PM (4 years ago)
Author:
mario
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3477

    • Property Cc mario added
    • Property Keywords salsita added
    • Property Ready set
    • Property Priority changed from Unknown to P3
  • Ticket #3477 – Description

    initial v1  
    11=== Environment === 
    2 A webpage with following JS script 
     2iPhone 6 
     3iOS 9.2 
     4ABB 1.2.1 
    35 
     6=== How to reproduce === 
     7Open a website in Adblock Browser containing the following Java Script: 
     8 
     9{{{ 
    410function magic () { 
    511  window.close(); 
     
    713} 
    814window.setTimeout(magic, 1000); 
    9  
    10 === How to reproduce === 
    11 Open the webpage in Adblock Browser.  
     15}}} 
     16  
    1217 
    1318=== Observed behaviour === 
    14 Webpage adblockplus.org is not opened 
     19{{{window.open}}} is not executed and thus "adblockplus.org" is not opened. 
    1520 
    1621=== Expected behaviour === 
    17 Webpage adblockplus.org is opened. window.close does not mean that the current JS context immediately disappears, it continues execution but window.open is ignored. While, from certain point of view, it makes sense, the behavior of all other browsers is imperative. The commands keep being executed normally until the current event loop finishes. 
     22{{{window.open}}} is executed and thus "adblockplus.org" is opened. 
     23 
     24=== Background === 
     25window.close does not mean that the current JS context immediately disappears, it continues execution. But in the example above window.open is ignored. 
     26While, from a certain point of view the original behaviour makes sense, the behavior of all other browsers is imperative. The commands keep being executed normally until the current event loop finishes.