Written on Jul 10, 2018
While trying to search how to access the ‘opener’ property from my tests, to ensure it hasn’t been set, I came across this test file dom/tests/browser/browser_noopener.js
. Were my efforts vain? We will find out after I figure out how to run the actual test. So far it has been hanging - the tests run and afterwards the browser window just stays open and no status of the tests is visible. For now I need to move on to a different bug.
testing/web-platform/tests/clipboard-apis
(some of them are manual)mach test toolkit/components/extensions/test/mochitest/test_ext_async_clipboard.html
There was an intern event - we were all to paint Firefox logo on our own canvases.
Looked into the following bug https://bugzilla.mozilla.org/show_bug.cgi?id=1372276 and spoke to a colleague about working on it.
Back to working on Bug 1419960. Useful links
I need to figure out how to access the opener setting on a newly opened tab.
I want to retrieve a contentWindow
but for some reason after I retrieve the tab, the following does not work tab.linkedBrowser.contentWindow
.
I searched for .opener
in the dom/tests/browser/browser_noopener.js
file and realized I can access the window object if I spawn a new content task in the following way
let noopenerTab = gBrowser.tabs[numTabs - 1];
await ContentTask.spawn(noopenerTab.linkedBrowser, null, async () => {
ok(!content.window.opener, "Opener should not have been set");
});