util function to set html into out of process iframe is needed
Categories
(Core :: DOM: Content Processes, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: surkov, Assigned: surkov)
References
Details
Attachments
(1 file)
most tests use <iframe src='http://example.com/local_path'>, which requires to have extra file, and for the small things data urls is a nicer alternative than a separate file.
a11y code has sjs script [1] that allows to return custom data, here's example of usage [2]. It'd good be wrap this script by a handy function and place it where all browser tests can reuse it.
For example,
getOutOfProcessUrl(domain, html)
{
domain = domain || 'example.net';
let url = new URL(
http://example.net/fission_document_builder.sjs
);
url.searchParams.append(html);
return url.href;
}
Not sure, if this is the right component, since the requested until function perhaps makes sense for testing only.
[1] https://searchfox.org/mozilla-central/source/accessible/tests/browser/fission_document_builder.sjs
[2] https://searchfox.org/mozilla-central/source/accessible/tests/browser/fission/browser_nested_iframe.js#12-34
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Pushed by asurkov@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/171648f3e48e add sjs script into test suite that generates a document from code snippet r=mconley
Comment 3•4 years ago
|
||
bugherder |
Description
•