Closed
Bug 1033168
Opened 11 years ago
Closed 11 years ago
GeckoView needs to use EventDispatcher.sendResponse
Categories
(Core Graveyard :: Embedding: GRE Core, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla33
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
Attachments
(1 file, 1 obsolete file)
|
4.38 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
In bug 946344 we removed GeckoEventResponder and the Prompt:Reply message handling with it. We never updated GeckoView so it's Prompt handling is broken.
The primary way this was found was that the onDebugRequest was failing to allow connections in the GeckoBrowser example project. After getting a patch to convert to EventDispatcher.sendResponse, it's working again.
I'd still like to stop using Prompts for the debugging requests, but that's a different bug.
Attachment #8449187 -
Flags: review?(wjohnston)
Comment 3•11 years ago
|
||
Comment on attachment 8449187 [details] [diff] [review]
eventdispatcher-fix v0.1
Review of attachment 8449187 [details] [diff] [review]:
-----------------------------------------------------------------
This is not using the old response api. We should use the newer stuff here if we're going to update.
i.e. we should make GeckoView a NativeEventListener
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/EventDispatcher.java#108
and then it will get a callback in its handleMessage function, which you can pass to handlePrompt, which will probably then be handed to the PromptResult callback.
::: mobile/android/base/GeckoView.java
@@ +449,5 @@
>
> private JSONObject makeResult(int resultCode) {
> JSONObject result = new JSONObject();
> try {
> result.put("guid", mGUID);
You don't really need any of this guid stuff anymore either. SendResponse will fill it in for you.
Attachment #8449187 -
Flags: review?(wjohnston) → review-
| Assignee | ||
Comment 4•11 years ago
|
||
I talked to Wes on IRC. Converting GeckoView to use NativeEventListener has it's only set of dependenices. This patch removes the "guid" part of the response, but otherwise keeps the same approach.
Assignee: nobody → mark.finkle
Attachment #8449187 -
Attachment is obsolete: true
Attachment #8450447 -
Flags: review?(wjohnston)
Comment 5•11 years ago
|
||
Comment on attachment 8450447 [details] [diff] [review]
eventdispatcher-fix v0.2
Review of attachment 8450447 [details] [diff] [review]:
-----------------------------------------------------------------
Mind filing bugs to move things over to the new setup?
Attachment #8450447 -
Flags: review?(wjohnston) → review+
| Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•