Closed Bug 1071112 Opened 11 years ago Closed 11 years ago

JavaScript error: app://system.gaiamobile.org/js/rocketbar.js, line 325: TypeError: this._port.postMessage is not a function

Categories

(Firefox OS Graveyard :: Gaia::System::Browser Chrome, defect)

x86
macOS
defect
Not set
normal

Tracking

(b2g-v2.1 fixed, b2g-v2.2 fixed)

RESOLVED FIXED
2.1 S5 (26sep)
Tracking Status
b2g-v2.1 --- fixed
b2g-v2.2 --- fixed

People

(Reporter: gwagner, Assigned: kgrandon)

Details

(Whiteboard: [systemsfe])

Attachments

(2 files)

Seen on current trunk with debug gecko build when opening rocket bar.
Whiteboard: [systemsfe]
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Target Milestone: --- → 2.1 S5 (26sep)
Comment on attachment 8493235 [details] [review] Pull request - Part 1 - Change search initialization to be promise based Hey guys - just looking for a review here from whoever has time. Thanks!
Attachment #8493235 - Flags: review?(dale)
Attachment #8493235 - Flags: review?(bfrancis)
Comment on attachment 8493235 [details] [review] Pull request - Part 1 - Change search initialization to be promise based Flagging a system app peer
Attachment #8493235 - Flags: review?(bfrancis) → review?(21)
Component: Gaia::Search → Gaia::System::Browser Chrome
Comment on attachment 8493235 [details] [review] Pull request - Part 1 - Change search initialization to be promise based I think this looks good, needs a typo fixed before landing
Attachment #8493235 - Flags: review?(dale) → review+
Comment on attachment 8493235 [details] [review] Pull request - Part 1 - Change search initialization to be promise based Thanks, I'll fix it up.
Attachment #8493235 - Flags: review?(21)
Attachment #8493235 - Attachment description: Github pull request → Pull request - Part 1 -Change search initialization to be promise based
It turns out that the javascript error was actually masking a problem with the way that we listen to the open search event. If we guard this by only listening when the search window is open, it should resolve the issue. Isolating the patch here for ease of review - Alive, could you take a look? Thanks!
Attachment #8493976 - Flags: review?(alive)
Attachment #8493235 - Attachment description: Pull request - Part 1 -Change search initialization to be promise based → Pull request - Part 1 - Change search initialization to be promise based
Comment on attachment 8493976 [details] [review] Pull Request - Part 2 - Only listen to open-app when the search window is active lgtm
Attachment #8493976 - Flags: review?(alive) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 8493235 [details] [review] Pull request - Part 1 - Change search initialization to be promise based This would be good to uplift to prevent the error being logged, and helping us move faster on blockers in the future. This could also be masking some other issues in rocketbar as we're just blindly throwing errors. This could be a blocker from an engineering standpoint. [Approval Request Comment] [Bug caused by] (feature/regressing bug #): Rocketbar feature work. [User impact] if declined: Not sure, there is potential that this is masking problems though due to the fact that we're just throwing an exception when opening the rocketbar for the first time. [Testing completed]: Manual and unit tests. [Risk to taking this patch] (and alternatives if risky): Only touches Rocketbar code, so not a wide change, and tests are passing. [String changes made]: No.
Attachment #8493235 - Flags: approval-gaia-v2.1?(fabrice)
Attachment #8493235 - Flags: approval-gaia-v2.1?(fabrice) → approval-gaia-v2.1+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: