Ember-inspector: window.postMessage(message, transferables, targetOrigin) is deprecated

Created on 12 Jul 2016  路  18Comments  路  Source: emberjs/ember-inspector

Seeing this in Chrome Canary:

'window.postMessage(message, transferables, targetOrigin)' is deprecated and will be removed in M54, around October 2016. Please use 'window.postMessage(message, targetOrigin, transferables)' instead. See https://www.chromestatus.com/features/5719033043222528 for more details.

Most helpful comment

I am seeing the same thing as @felixbuenemann on Chrome 55 dev channel. I am on an an ember 1.10 app. I am not going to be able to upgrade ember for a while.

All 18 comments

Was fixed by https://github.com/emberjs/ember-inspector/pull/555, but needs a release.

FWIW I'm seeing this in 2.0.2 (which was released a few days ago) and Chrome Canary now fail to run Ember Inspector because of this.

image

_(click to enlarge image)_

That's because you keep using Ember Inspector 1.10 for Ember < 2.7 even if you have the latest extension version. We'll need to update the old snapshot...

@sandstrom thanks for looking into that. Yes we can probably close a lot of these issues. Though some are suggestions for possible features/improvements that haven't been developed yet, not sure how we want to handle those. We're probably going to over these tickets soon. cc @locks

This seems to be the reason for the following error I'm getting in 2.0.2 with an Ember 2.6.2 app using Chrome Canary 55:

TypeError: Failed to execute 'postMessage' on 'Window': The 3rd argument is neither an array, nor does it have indexed properties.

After upgrading to Ember 2.8.1 the ember-inspector starts working again.

I am seeing the same thing as @felixbuenemann on Chrome 55 dev channel. I am on an an ember 1.10 app. I am not going to be able to upgrade ember for a while.

I'm currently on Chrome Beta v54, ember v2.8.1, ember inspector v2.0.2, and I'm seeing the same error as @felixbuenemann

This should be fixed now even on old Ember versions. Can someone please confirm?

I still see this message every time I use the ember inspector

@blimmer what is your current inspector version?

I guess I'm on 1.10?

But it looks like the current version is 2.0.3?

It's not clear how to update this in chrome, though... very strange.

@blimmer you will always see the 1.10 version in the "Info" tab because you are on Ember < 2.7. The version I need is the one that shows up in chrome://extensions.

Looks like 2.0.2

Yes you're one patch version behind. I need confirmation that 2.0.3 solves this issue.

Sorry for all the confusion - I thought Chrome would "just work" and always keep me up to date. I figured out how to force update and can confirm that the message is now gone.

Just force-updated to Ember Inspector to 2.0.3, can confirm it works with my Ember 2.5.1 app. Thanks for this fix!

Thanks for the confirmation everyone, and thanks for the fix @teddyzeenny!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidchalifoux picture davidchalifoux  路  3Comments

camskene picture camskene  路  6Comments

izackhub picture izackhub  路  6Comments

danilovaz picture danilovaz  路  8Comments

ansmonjol picture ansmonjol  路  3Comments