Closed
Bug 649360
Opened 14 years ago
Closed 13 years ago
Convert some of the EventUtils.js over to SpecialPowers
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 674323
People
(Reporter: dougt, Assigned: jmaher)
References
(Blocks 1 open bug)
Details
(Whiteboard: [specialpowers])
Attachments
(1 file, 2 obsolete files)
9.06 KB,
patch
|
Details | Diff | Splinter Review |
I converted some of the EventUtils over to use SpecialPowers so that I can start gettings some of the mochitests passing.
One question -- how do I tell from the SpecialPowers component if we are doing remote e10s layers or not? maybe the pref: browser.remote.tabs?
Reporter | ||
Comment 1•14 years ago
|
||
Assignee: nobody → doug.turner
Comment 2•14 years ago
|
||
The only thing I could tell you to check would be nsIXULRuntime.processType. However, we've been writing everything to simply assume we're running with a content process, so you might as well continue on that path. Firefox is going to get there at some point, so it doesn't seem worthwhile adding extra complexity to do things differently for IPC vs. non-IPC.
Blocks: 462483
Assignee | ||
Comment 3•14 years ago
|
||
I have a simple check in my ipc.js file:
if (xulRuntime.processType == 2) {
http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/ipc.js#82
this has been working as it runs on all desktop and mobile platforms for the last 9 months or so.
Comment 4•14 years ago
|
||
Technically you want to be testing that against Components.interfaces.nsIXULRuntime.PROCESS_TYPE_CONTENT:
http://mxr.mozilla.org/mozilla-central/source/xpcom/system/nsIXULRuntime.idl#95
but regardless, I'm not sure why we need to test this. Shouldn't we just fix all the tests to assume they're running in a content process, since all the IPC code works fine in current desktop Firefox anyway? Seems silly to write conditional logic for a case that's going to go away within a year (non-IPC).
Assignee | ||
Comment 5•14 years ago
|
||
ted I think this is different because this code is the harness, not the tests themselves.
Comment 6•14 years ago
|
||
Still, I don't think it's worth writing two codepaths, one of which we know is going to be thrown away, unless there's a real compelling reason.
Reporter | ||
Updated•14 years ago
|
Attachment #525403 -
Flags: review?(jmaher)
Assignee | ||
Comment 7•14 years ago
|
||
this patch actually implements and uses the snapshotwindow, comparewindow, synthesizeKey and synthesizeMouse.
The problem is we can't check this in because the chrome tests depend on these utilities and ATM chrome doesn't have access to SpecialPowers.
good news is with this patch on desktop firefox and fennec we are really really close to green for layout/base in mochitest-plain!
Attachment #525403 -
Attachment is obsolete: true
Attachment #525403 -
Flags: review?(jmaher)
Reporter | ||
Updated•13 years ago
|
Assignee: doug.turner → jmaher
Updated•13 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Version: unspecified → Trunk
Assignee | ||
Comment 8•13 years ago
|
||
Attachment #527248 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•