Closed Bug 581881 Opened 14 years ago Closed 13 years ago

bug 578262 broke return value for some cross process methods.

Categories

(Core :: IPC, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b10

People

(Reporter: romaxa, Assigned: romaxa)

References

Details

(Whiteboard: [e10s])

Attachments

(1 file)

Some changes from bug 578262 make some methods returning NS_ERROR_FAILURE always.
like nsFrameLoader::SendCrossProcessKeyEvent

 NS_IMETHODIMP
 nsFrameLoader::SendCrossProcessKeyEvent(const nsAString& aType,
                                         PRInt32 aKeyCode,
                                         PRInt32 aCharCode,
                                         PRInt32 aModifiers,
                                         PRBool aPreventDefault)
 {
 #ifdef MOZ_IPC
-  if (mChildProcess) {
-    mChildProcess->SendKeyEvent(aType, aKeyCode, aCharCode, aModifiers,
+  if (mRemoteBrowser) {
+    mRemoteBrowser->SendKeyEvent(aType, aKeyCode, aCharCode, aModifiers,
                                 aPreventDefault);
-    return NS_OK;
   }
 #endif
   return NS_ERROR_FAILURE;


After this change method is not returning NS_OK anymore.
Assignee: nobody → romaxa
Attachment #460208 - Flags: review?(benjamin)
Attachment #460208 - Flags: review?(benjamin) → review+
Comment on attachment 460208 [details] [diff] [review]
Return NS_OK, fix test-ipc.xul js errors

The test buttons on test-ipc.xul take these paths and confused me for a while as to the reason they were failing.
Attachment #460208 - Flags: approval2.0?
Attachment #460208 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/c59b5292152e
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [e10s]
Target Milestone: --- → mozilla2.0b10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: