Closed Bug 1601733 Opened 4 years ago Closed 4 years ago

util function to set html into out of process iframe is needed

Categories

(Core :: DOM: Content Processes, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla74
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: nobody → surkov.alexander
Status: NEW → ASSIGNED
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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: