Problems with chrome.webNavigation.getAllFrames



  • Hi, I hope this is the right place for my question.

    I'm working on adapting a Chrome extension for Vivaldi. There seems to be a problem with the chrome.webNavigation.getAllFrames method (https://developer.chrome.com/extensions/webNavigation#method-getAllFrames). The callback is expected to receive a list of frames in a tab, but I'm getting null. Code to reproduce the problem (must be on a background page):

    chrome.tabs.query({active: true}, function (tabs) {
        console.info('TABS', tabs);
        chrome.webNavigation.getAllFrames({tabId: tabs[0].id}, function (frames) {
            console.info('FRAMES', frames); // logs "FRAMES null"
        });
    });
    

    Any clues/workarounds?


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.