> On 27 Feb 2015, at 16:22, Anne van Kesteren <[email protected]> wrote: > > On Fri, Feb 27, 2015 at 12:04 PM, Antonio Manuel Amaya Calvo > <[email protected]> wrote: >> Well, we only need to add a magic explained (I did explain it after all, I >> think :P) <iframe> variant to the web because FirefoxOS already has some >> other magic more or less explained <iframes> (mozapp, and mozbrowser). The >> only reason a new iframe is needed is because on FirefoxOS (and I believe >> that's specific for FirefoxOS) we have process separation for apps, ... > > I mean I understand why you want to introduce something like this and > why it looks "webby", but that does not mean it is. The test for that > is whether it would work in Safari without special code paths, were > Safari to implement the same standardized features as us.
Funnily enough I used this same argument with a colleague this morning. Well, I did use Chrome instead of Safari as an example. With this proposal, I could implement a CORS proxy service, host it on https://corsproxy.gaiamobile.org, set that as a trusted hosted origin in FirefoxOS and write it so if systemXHR is available it uses it and if not it uses the server to do the actual requests. Then I could use: <iframe mozservice src="https://corsproxy.gaiamobile.org" id="corsProxy"> corsProxy.postMessage({URL: "http://a.web.com/whatever"}); And it would work on both FirefoxOS and Chrome. Chrome would just ignore the mozservice part since it doesn't mean anything for it. Now, of course, the actual service implementation would differ. And we cannot offer things like dialing or SMS on Chrome. But the semantics and syntax of the communication mechanism is basically the standard way of using postMessage. Best, Antonio > > Everything else is proprietary and we can pack proprietary bits in > whatever way we want, but claiming they're the web is disingenuous and > counter to our mission. > > We do need proprietary features to figure things out and we do need to > ship within reasonable timeframes, but we should also remain true to > ourselves. > > > -- > https://annevankesteren.nl/ ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
