Closed
Bug 918604
Opened 12 years ago
Closed 12 years ago
Remove more enablePrivilege calls
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla27
People
(Reporter: martijn.martijn, Assigned: martijn.martijn)
References
Details
Attachments
(1 file, 3 obsolete files)
29.99 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
This is another bunch of mochitest/chrome mochitests that are relatively easy to remove the enablePrivilege calls from.
There are some files that seem unused:
dom/tests/mochitest/bugs/iframe_bug534362.html
testing/mochitest/tests/test_bug362788.xhtml
testing/mochitest/tests/test_bug366645.xhtml
No idea what to do with those. test_bug362788.xhtml can be made into a workable mochitest, but test_bug366645.xhtml doesn't work anymore.
Attachment #807547 -
Flags: review?(jmaher)
Comment 1•12 years ago
|
||
Comment on attachment 807547 [details] [diff] [review]
enablepriv3.diff
Review of attachment 807547 [details] [diff] [review]:
-----------------------------------------------------------------
thanks, this is a lot of great cleanup!
::: content/media/test/file_access_controls.html
@@ +123,5 @@
> if (gVideo && gVideo.parentNode)
> gVideo.parentNode.removeChild(gVideo);
>
> gVideo = null;
> + SpecialPowers.forceGC();
please remove the trailing whitespace here
::: dom/plugins/test/mochitest/cocoa_focus.html
@@ +92,5 @@
> utils.sendNativeMouseEvent(plugin1X, plugin1Y, NSLeftMouseUp, 0, plugin1);
> expectedEventCount++;
>
> // Blur the window.
> + SpecialPowers.focus(opener);
focus on the opener or the window?
Attachment #807547 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #1)
> > // Blur the window.
> > + SpecialPowers.focus(opener);
>
> focus on the opener or the window?
Yes, this is a little weird, but there is no SpecialPowers way of blurring the window, so that's why I focused the opener window here, to blur the test window.
Anyway, I haven't been able to get this test working on my machine (with or without this patch), I get a weird error, I filed bug 918732 for that.
I'm going to see if this patch works on tryserver.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → martijn.martijn
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #807547 -
Attachment is obsolete: true
Assignee | ||
Comment 4•12 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=90808a5fc93c
Assignee | ||
Comment 5•12 years ago
|
||
I'm still getting these failures on tryserver with dom/plugins/test/mochitest/test_cocoa_focus.html:
79 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/plugins/test/mochitest/test_cocoa_focus.html | Plugin should not have focus. - got true, expected false
80 ERROR TEST-UNEXPECTED-FAIL | /tests/dom/plugins/test/mochitest/test_cocoa_focus.html | Focus event count should be 4 - got 3, expected 4
I wasn't able to exercise that test, because it always fails on my machine with some weird error, see bug 918732.
I tried to fix it blindly, but that turns out badly, so I'll leave it out my following patch.
On the b2g side, dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html and content/media/test/test_access_control.html are timing out, this is happening because the popup window doesn't have a SpecialPowers object installed. I filed bug 918842 for that.
Assignee | ||
Comment 6•12 years ago
|
||
This is with the cocoa files removed, I'll file a new bug for that, to get that working. I left in test_innerWidthHeight_script.html and test_access_control.html.
Those tests should be working with the fix for bug 918842.
Attachment #807685 -
Attachment is obsolete: true
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Martijn Wargers [:mwargers] (QA) from comment #6)
> This is with the cocoa files removed, I'll file a new bug for that, to get
I filed bug 920013 for it.
Depends on: 918842
Assignee | ||
Comment 8•12 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=4d43dfa2164d
Assignee | ||
Comment 9•12 years ago
|
||
Updated patch with what I mentioned in bug 918842, comment 8:
SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false]]}, runTest);
in test_innerWidthHeight_script.html
Attachment #809158 -
Attachment is obsolete: true
Assignee | ||
Comment 10•12 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=84f031582b74
Assignee | ||
Comment 11•12 years ago
|
||
Comment on attachment 810014 [details] [diff] [review]
918604.diff
Review of attachment 810014 [details] [diff] [review]:
-----------------------------------------------------------------
Try server is green (this is with the patch for bug 918842 applied)
Attachment #810014 -
Flags: review?(jmaher)
Comment 12•12 years ago
|
||
Comment on attachment 810014 [details] [diff] [review]
918604.diff
Review of attachment 810014 [details] [diff] [review]:
-----------------------------------------------------------------
looks great.
::: dom/tests/mochitest/general/test_clipboard_events.html
@@ +27,5 @@
> // is used to make sure that leftover clipboard values from a previous
> // test run don't cause a false-positive test.
> var cb_text = "empty_" + Math.random();
> setClipboardText(cb_text);
> +
nit: extra newline here.
Attachment #810014 -
Flags: review?(jmaher) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 13•12 years ago
|
||
Keywords: checkin-needed
Comment 14•12 years ago
|
||
Backed out for frequent OSX timeouts in test_window_bar.html.
https://hg.mozilla.org/integration/mozilla-inbound/rev/9cc67deecdba
https://tbpl.mozilla.org/php/getParsedLog.php?id=28486539&tree=Mozilla-Inbound
Comment 15•12 years ago
|
||
That was a red herring. Re-landed, and sorry for the churn :(
https://hg.mozilla.org/integration/mozilla-inbound/rev/e1914e294152
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•