<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">29 jan. 2020 kl. 09:04 skrev Daniel Veditz <<a href="mailto:dveditz@mozilla.com" class="">dveditz@mozilla.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">The extension mechanism Dave linked to can also resolve to a page internal to your extension which I would expect to be a blank shell that loads your JS libraries and generates the web content in-place--you don't necessarily have to just translate it to an HTTPS request to a server you have to keep running</div></div></div></blockquote><div><br class=""></div><div>the only example for its use looks like this:</div><div><br class=""></div><div><pre class="language-js js brush: line-numbers" style="margin-top: 0px; margin-bottom: 20px; padding: 15px 15px 15px 3.8em; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 5px; border-style: solid; border-color: rgb(61, 126, 154); font-size: 16px; background-color: rgb(238, 238, 238); color: rgb(51, 51, 51); position: relative; font-family: consolas, monaco, "Andale Mono", monospace; line-height: 1.5; overflow: auto; tab-size: 4; -webkit-hyphens: none; box-sizing: border-box; width: 1014px; max-width: 100%; text-shadow: none; word-break: normal; word-wrap: normal; counter-reset: linenumber 0; caret-color: rgb(51, 51, 51); letter-spacing: -0.04447999969124794px; border-right-width: 0px !important; direction: ltr !important;"><code class=" language-js" style="margin: 0px; padding: 0px; border: 0px; background-color: transparent; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; word-wrap: normal; text-shadow: none; font-size: 1em; white-space: inherit; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; -webkit-hyphens: none; position: relative; background-position: 0px 0px;">navigator<span class="token punctuation" style="margin: 0px; padding: 0px; border: 0px; color: rgb(153, 153, 153);">.</span><span class="token function" style="margin: 0px; padding: 0px; border: 0px; color: rgb(221, 74, 104);">registerProtocolHandler</span><span class="token punctuation" style="margin: 0px; padding: 0px; border: 0px; color: rgb(153, 153, 153);">(</span><span class="token string" style="margin: 0px; padding: 0px; border: 0px; color: rgb(102, 153, 0);">"web+burger"</span><span class="token punctuation" style="margin: 0px; padding: 0px; border: 0px; color: rgb(153, 153, 153);">,</span>
                                  <span class="token string" style="margin: 0px; padding: 0px; border: 0px; color: rgb(102, 153, 0);">"<a href="https://burgers.example.com/?burger=%s" class="">https://burgers.example.com/?burger=%s</a>"</span><span class="token punctuation" style="margin: 0px; padding: 0px; border: 0px; color: rgb(153, 153, 153);">,</span>
                                  <span class="token string" style="margin: 0px; padding: 0px; border: 0px; color: rgb(102, 153, 0);">"Burger handler"</span><span class="token punctuation" style="margin: 0px; padding: 0px; border: 0px; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="margin: 0px; padding: 0px; border: 0px; color: rgb(153, 153, 153);">;</span></code></pre><div class="">that second parameter looks to me like a url… how would it resolve to a page internal to my extension? and how/where would I create that page?</div></div><br class=""></div><br class=""></body></html>