Closed Bug 1016748 Opened 10 years ago Closed 8 years ago

[Gaia] speechSynthesis is undefined

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: kgrandon, Unassigned)

Details

Attachments

(1 file)

Seems like we've recently had a test go perma-red in the last few hours or so. I'm filing this under gaia for now, but my assumption is that something recently landed in gecko that would cause this to break. We may want to close the gaia tree for this.

1) [system-test/unit/accessibility_test.js] system/Accessibility handleEvent toggles screenreader state after button sequence:

TypeError: this.speechSynthesis is undefined

at ar_handleEvent (http://system.gaiamobile.org:8080/js/accessibility.js:163:7)

at (anonymous) (http://system.gaiamobile.org:8080/test/unit/accessibility_test.js:39:9)

at wrapper (http://system.gaiamobile.org:8080/common/test/mocha_generators.js:62:13)

at run (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7)

at runTest (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4081:5)

at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4127:7)

at next (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4007:7)

at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4016:7)

at next (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3964:16)

at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3984:5)

at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4932:28)
Eitan - not really sure who to ask about this. Any ideas as to where we might look?
Flags: needinfo?(eitan)
Disabling the test for now so we don't have to close gaia. We should figure this out quickly though.

https://github.com/mozilla-b2g/gaia/commit/c2a24a1037323879c77f662229b8461eff7ea1dc
Keywords: leave-open
The Gecko range from comment 2 is http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=5cb28a6e5da2&tochange=448f2153d6d3

Looks like the issue is WebIDL window.  In particular, window.speechSynthesis is only exposed in WebIDL if the media.webspeech.synth.enabled pref is set, but used to be exposed unconditionally.  That last seems a bit weird, but we've been shipping it for a while now.  :(
So it appears that even after setting the pref window.speechSynthesis is still not exposed in nightly? I need to go now but will investigate more tomorrow.
> So it appears that even after setting the pref window.speechSynthesis is still not
> exposed in nightly?

Should work, for things that are loaded after the pref is set.
Crap, we really have exposed the property :(

We really need some test_interfaces -like test to ensure we don't expose properties and methods accidentally.
oops :(
Flags: needinfo?(eitan)
I think this bug is no longer valid.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: