Closed
Bug 621913
Opened 12 years ago
Closed 12 years ago
Re-enable the 'click' test for browser_forms.js
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
Details
Attachments
(1 file)
1.86 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #500205 -
Flags: review?(mbrubeck)
Comment 1•12 years ago
|
||
Comment on attachment 500205 [details] [diff] [review] Patch > AsyncTests.add("Test:Click", function(aMessage, aJson) { >+ // since sendMouseEvent from EventUtils try to request privilege we don't >+ // need here, and this fire a dialog box we don't want just disabled them >+ // for the moment >+ eval(sendMouseEvent.toString().replace("netscape.security.PrivilegeManager.enablePrivilege(\"UniversalBrowserWrite\");", "")); > sendMouseEvent({type: "click"}, "root", content); >+ > return assistant._open; > }); This seems a bit fragile. It'll break if that line changes at all in EventUtils.js (but at least it will break in an obvious way). Maybe instead we should just just createEvent/initMouseEvent/dispatchEvent directly, instead of sendMouseEvent? Or we could modify EventUtils to add an argument? I'll let you decide if you want to change this or keep it.
Attachment #500205 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 2•12 years ago
|
||
http://hg.mozilla.org/mobile-browser/rev/b76f1542e2bb I've pushed with a copied version of sendMouseEvent, using eval/replace to rewrite function on the fly is fun but probably a bad idea after all.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 3•12 years ago
|
||
Marking bug as verified fixed?
You need to log in
before you can comment on or make changes to this bug.
Description
•