Re: [nw.js] Crashing due to service worker origins not matching

254 views
Skip to first unread message

Roger Wang

unread,
Aug 31, 2018, 8:16:28 AM8/31/18
to nwjs-g...@googlegroups.com, martyno....@gmail.com
Please file an issue with a sample. Thanks.

Roger

On August 31, 2018 6:59:18 PM GMT+08:00, martyno....@gmail.com wrote:
Hello,

I'm having an issue with nw.js process terminating due to a seemingly non-critical error. On Chromium I'm getting this and the tab keeps working without an issues:

    Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The origin of the provided scriptURL ('https://sub1.domain.com') does not match the current origin ('https://sub2.domain.com').

On nw.js I'm loading the same page in an iframe and it's just terminating the process with this output to stdout:

    [27494:27499:0831/133833.842320:ERROR:render_process_host_impl.cc(4450)] Terminating render process for bad Mojo message: Received bad user message: Origins are not matching, or some cannot access service worker.
    [27494:27499:0831/133833.842351:ERROR:bad_message.cc(25)] Terminating renderer for bad IPC message, reason 123

Is this a bug? Either way, any workaround tips would be great.

Thanks,
Martynas


--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Martynas K.

unread,
Sep 7, 2018, 8:24:51 AM9/7/18
to Roger Wang, nwjs-g...@googlegroups.com

The website I was having issues with updated and I no longer have an example. However, I found out that it wasn't crashing with 'nwdisable' (just for the reference if it ever happens again).

Martynas

Reply all
Reply to author
Forward
0 new messages