function cancelIsNotBlocked() {
    var targetUrl = getResURL('res/a.html');
    var expectUrl = getStrippedURL('res/a.html');
    expect(
      [  // events
        { label: 'onBeforeRequest',
          event: 'onBeforeRequest',
          details: {
            type: 'main_frame',
            url: expectUrl,
            frameUrl: expectUrl
          },
          retval: {cancel: true}
        },
        // Cancelling is considered an error.
        { label: 'onErrorOccurred',
          event: 'onErrorOccurred',
          details: {
            url: expectUrl,
            fromCache: false,
            error: 'net::ERR_BLOCKED_BY_CLIENT'
          }
        },
      ],
      [['onBeforeRequest', 'onErrorOccurred']], // event order
      {urls: ['<all_urls>']},  // filter
      ['blocking']);
    navigateAndWait(targetUrl);
  }
//   URL, this test will timeout.
URL, this test will timeout.
URL this test will timeout .
function cancelIsNotBlocked() {
    var targetUrl = getResURL('res/a.html');
    var expectUrl = getStrippedURL('res/a.html');
    expect(
      [  
        { label: 'onBeforeRequest',
          event: 'onBeforeRequest',
          details: {
            type: 'main_frame',
            url: expectUrl,
            frameUrl: expectUrl
          },
          retval: {cancel: true}
        },
        { label: 'onErrorOccurred',
          event: 'onErrorOccurred',
          details: {
            url: expectUrl,
            fromCache: false,
            error: 'net::ERR_BLOCKED_BY_CLIENT'
          }
        },
      ],
      [['onBeforeRequest', 'onErrorOccurred']], 
      {urls: ['<all_urls>']},  
      ['blocking']);
    navigateAndWait(targetUrl);
  }
function cancelIsNotBlocked ( ) { var targetUrl = getResURL ( 'res/a.html' ) ; var expectUrl = getStrippedURL ( 'res/a.html' ) ; expect ( [ { label : 'onBeforeRequest' , event : 'onBeforeRequest' , details : { type : 'main_frame' , url : expectUrl , frameUrl : expectUrl } , retval : { cancel : true } } , { label : 'onErrorOccurred' , event : 'onErrorOccurred' , details : { url : expectUrl , fromCache : false , error : 'net::ERR_BLOCKED_BY_CLIENT' } } , ] , [ [ 'onBeforeRequest' , 'onErrorOccurred' ] ] , { urls : [ '<all_urls>' ] } , [ 'blocking' ] ) ; navigateAndWait ( targetUrl ) ; }
URL, this test will timeout.
URL this test will timeout .
// events // Cancelling is considered an error. // event order // filter