Project

General

Profile

« Previous | Next » 

Revision 26e4800d

Added by koszko over 1 year ago

more improvements for abrowser&librewolf

View differences:

test/extension_crafting.py
136 136
open_test_page_script = '''(() => {
137 137
const page_url = browser.runtime.getURL("testpage.html");
138 138
const execute_details = {
139
    code: `window.location.href=${JSON.stringify(page_url)};`
139
    code: `window.wrappedJSObject.ext_page_url=${JSON.stringify(page_url)};`
140 140
};
141 141
browser.tabs.query({currentWindow: true, active: true})
142 142
    .then(t => browser.tabs.executeScript(t.id, execute_details));

Also available in: Unified diff