Closed
Bug 971279
Opened 11 years ago
Closed 11 years ago
Add Java Test Plugin
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla30
People
(Reporter: johns, Assigned: johns)
Details
Attachments
(3 files, 7 obsolete files)
9.54 KB,
patch
|
johns
:
review+
|
Details | Diff | Splinter Review |
3.18 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
13.16 KB,
patch
|
johns
:
review+
|
Details | Diff | Splinter Review |
Originally in bug 738396, but needed more work. Being able to test all the special-cased stuff for java is a plus.
Assignee | ||
Comment 1•11 years ago
|
||
Originally I had a hack in nsObjectLoadingContent to check for x-java-test for <applet> in debug builds, but that breaks on OS X which has a default java plugin. And since we store the pref for both addons as "plugin.state.java" or whathaveyou disabling one and not the other is broken (and not worth fixing)
We also have "application/x-java-vm" hardcoded in a ton of spots to specify magic java behavior, it seems saner to just store this as a pref. Which then lets tests flip the pref to the java test plugin!
Attachment #8374463 -
Flags: review?(benjamin)
Assignee | ||
Comment 2•11 years ago
|
||
This was r+'d in 738396 ages ago, but was bit-rotted to hell, and the old hacks that plugin.java.mime obsoletes removed. Feel free to rubber stamp.
Attachment #8374464 -
Flags: review?(benjamin)
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to John Schoenick [:johns] from comment #1)
> Originally I had a hack in nsObjectLoadingContent to check for x-java-test
> for <applet> in debug builds, but that breaks on OS X
It also doesn't allow testing other magic-cases like <object classid="java:">
Updated•11 years ago
|
Attachment #8374464 -
Flags: review?(benjamin) → review+
Updated•11 years ago
|
Attachment #8374463 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 4•11 years ago
|
||
This hit issues on try due to us blacklisting DLLs beginning with "npjava". I don't want to touch that, so s/npjavatest/nptestjava/
I also just made IsJavaMIME() read and recognize java.plugin.mime, rather than the debug-specific application/x-java-test hack.
Uploading these two changes for additional r? due to messing-with-java-plumbing paranoia
Attachment #8377917 -
Flags: review?(benjamin)
Updated•11 years ago
|
Attachment #8377917 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8374464 -
Attachment is obsolete: true
Attachment #8377917 -
Attachment is obsolete: true
Attachment #8379264 -
Flags: review+
Assignee | ||
Comment 6•11 years ago
|
||
Folded for landing
Attachment #8374463 -
Attachment is obsolete: true
Attachment #8379265 -
Flags: review+
Assignee | ||
Comment 7•11 years ago
|
||
I backed this (and everything else from that push to inbound) out in http://hg.mozilla.org/integration/mozilla-inbound/rev/128cbf1edc40 due to various Java/plugin related failures they caused:
Crashtest failure: https://tbpl.mozilla.org/php/getParsedLog.php?id=35003251&tree=Mozilla-Inbound
XPCShell failure: https://tbpl.mozilla.org/php/getParsedLog.php?id=35003355&tree=Mozilla-Inbound
Flags: needinfo?(jschoenick)
Comment 9•11 years ago
|
||
(In reply to Wes Kocher (:KWierso) from comment #8)
> XPCShell failure:
> https://tbpl.mozilla.org/php/getParsedLog.php?id=35003355&tree=Mozilla-
> Inbound
TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/xpcshell/tests/services/healthreport/tests/xpcshell/test_provider_addons.js | 3 == 2 - See following stack:
Ouch, we should just check based on the plugin tag count here.
Comment 10•11 years ago
|
||
Attachment #8379700 -
Flags: review?(gps)
Comment 11•11 years ago
|
||
Attachment #8379700 -
Attachment is obsolete: true
Attachment #8379700 -
Flags: review?(gps)
Attachment #8379702 -
Flags: review?(gps)
Assignee | ||
Comment 12•11 years ago
|
||
So the assertion failure in a random crash test was CnP fail, the second assert should be nsPluginHost::IsJavaMIME(javaMIME)
Attachment #8379265 -
Attachment is obsolete: true
Attachment #8379956 -
Flags: review+
Assignee | ||
Comment 13•11 years ago
|
||
With the fix we move on to failing slightly lower down. Even more fixage!
Attachment #8379702 -
Attachment is obsolete: true
Attachment #8379702 -
Flags: review?(gps)
Attachment #8379964 -
Flags: review?(gps)
Assignee | ||
Comment 14•11 years ago
|
||
Another try push later... test_provider_addons.js still fails. Only on OS X. Because the capitalization in Info.plist didn't match nptest.rc. And this test wants the exact plugin description to match. Just in case.
Attachment #8379264 -
Attachment is obsolete: true
Attachment #8380081 -
Flags: review+
Comment 15•11 years ago
|
||
Comment on attachment 8379964 [details] [diff] [review]
Fix FHR addon provider test for plugin data count.
Review of attachment 8379964 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
Attachment #8379964 -
Flags: review?(gps) → review+
Assignee | ||
Comment 16•11 years ago
|
||
Attempt 2:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b6a4f6e8ef8c
https://hg.mozilla.org/integration/mozilla-inbound/rev/7254cd0a6d75
https://hg.mozilla.org/integration/mozilla-inbound/rev/12b636c82b24
Extensive try run since this push burned the tree before:
https://tbpl.mozilla.org/?tree=Try&rev=b656bdd77ce1
Flags: needinfo?(jschoenick)
https://hg.mozilla.org/mozilla-central/rev/b6a4f6e8ef8c
https://hg.mozilla.org/mozilla-central/rev/7254cd0a6d75
https://hg.mozilla.org/mozilla-central/rev/12b636c82b24
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Assignee | ||
Comment 18•11 years ago
|
||
Followup, this chunk was removed in the comment 4 patch and but dropped when I folded it:
https://hg.mozilla.org/integration/mozilla-inbound/rev/505119ed119e
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•