Closed
Bug 1375002
Opened 8 years ago
Closed 8 years ago
Nightly: omnibox.onInputChanged.addListener fails
Categories
(WebExtensions :: Frontend, defect, P2)
Tracking
(firefox-esr52 unaffected, firefox54 unaffected, firefox55 verified, firefox56 verified)
VERIFIED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox54 | --- | unaffected |
firefox55 | --- | verified |
firefox56 | --- | verified |
People
(Reporter: horridimpfoobarbaz, Assigned: kmag)
References
Details
(Keywords: regression, Whiteboard: [triaged])
Attachments
(3 files)
219 bytes,
application/x-javascript
|
Details | |
174 bytes,
application/json
|
Details | |
5.07 KB,
patch
|
jcristau
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux i686; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20170620100236
Steps to reproduce:
Open the addon debugger and load the attached WebExtension. Try using it: type 'example foo' in the location bar, and you should get a dummy suggestion.
Actual results:
No suggestions are provided. in the addon debugger, the error is 'TypeError: handler is undefined', in ExtensionParent.jsm, line 681.
Reporter | ||
Comment 1•8 years ago
|
||
Component: Untriaged → WebExtensions: Frontend
Product: Firefox → Toolkit
I ran into this the other day. I found that if I call setDefaultSuggestion before adding the listener, then everything works fine.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•8 years ago
|
Assignee: nobody → mwein
Priority: -- → P2
Whiteboard: [triaged]
Updated•8 years ago
|
Keywords: regressionwindow-wanted
Comment 3•8 years ago
|
||
Daniela is looking into getting the regression window…
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Looks like bug 1350522 was the culprit, perhaps because the API isn't loaded until we call setDefaultSuggestion? :)
Has Regression Range: --- → yes
Flags: needinfo?(kmaglione+bmo)
Keywords: regressionwindow-wanted → regression
Assignee | ||
Comment 7•8 years ago
|
||
This is happening because, for some reason, the parent side of this API has an "omnibox_internal" namespace that the child-side onInputChanged event uses, and it isn't setup for lazy loading.
Assignee: mwein → kmaglione+bmo
Flags: needinfo?(kmaglione+bmo)
Assignee | ||
Comment 8•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2cb8b8e9d1e978c4824c4daa5ca44d533e2eac4f
Bug 1375002: Get rid of the omnibox_internal namespace. r=me
Comment 9•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Assignee | ||
Comment 10•8 years ago
|
||
This namespace has schema definitions which spuriously expose it to extension
callers, and does not support lazy loading correctly, which breaks certain
usage patterns.
Assignee | ||
Comment 11•8 years ago
|
||
Comment on attachment 8883668 [details] [diff] [review]
Get rid of the omnibox_internal namespace
Approval Request Comment
[Feature/Bug causing the regression]: Bug 1350522
[User impact if declined]: This causes certain add-ons which use the omnibox API to fail.
[Is this code covered by automated tests?]: Yes, though the specific bug is not, since it depends on the ordering of API calls during the entire length of the browsers session, and we can't reasonably test variations on that.
[Has the fix been verified in Nightly?]: No
[Needs manual test from QE? If yes, steps to reproduce]: Described in comment 0
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: No
[Why is the change risky/not risky?]: It's a trivial change to merge an unnecessary internal namespace into the normal namespace for this API.
[String changes made/needed]: None
Attachment #8883668 -
Flags: approval-mozilla-beta?
Updated•8 years ago
|
status-firefox55:
--- → affected
Comment 12•8 years ago
|
||
Comment on attachment 8883668 [details] [diff] [review]
Get rid of the omnibox_internal namespace
fix regression affecting webextensions in beta55
Attachment #8883668 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Assignee | ||
Comment 14•8 years ago
|
||
uplift |
Flags: needinfo?(kmaglione+bmo)
Updated•8 years ago
|
Flags: qe-verify+
Updated•8 years ago
|
Comment 15•8 years ago
|
||
I was able to reproduce the initial error on Firefox 56.0a1 (2017-06-21) under Windows 10 64-bit.
Verified fixed on Firefox 56.0a1 (2017-07-25) under Windows 10 64-bit and Ubuntu 16.04 32-bit. 'TypeError: handler is undefined' error is no longer thrown in Browser Console. See screenshot: https://www.screencast.com/t/0zgQhgUMFg
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•