Closed
Bug 767636
Opened 13 years ago
Closed 13 years ago
Update nsIObjectLoadingContent interface for click-to-play
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: johns, Assigned: keeler)
References
Details
Attachments
(1 file, 4 obsolete files)
14.96 KB,
patch
|
jaws
:
review+
johns
:
checkin+
|
Details | Diff | Splinter Review |
With the addition of click-to-play, adding functions to nsIObjectLoadingContent to let extensions more completely control and inspect c2p behavior is desirable
![]() |
||
Comment 1•13 years ago
|
||
Just watch out: web code can generally call into the methods on this interface.
![]() |
Assignee | |
Comment 2•13 years ago
|
||
One thing that would be extremely useful for the in-browser ui would be to expose a readonly attribute that says what plugin support state nsObjectLoadingContent came up with (essentially make mFallbackReason readable).
Attachment #648420 -
Flags: feedback?(joshmoz)
![]() |
Assignee | |
Updated•13 years ago
|
Blocks: click-to-play
![]() |
Assignee | |
Comment 3•13 years ago
|
||
Attachment #648420 -
Attachment is obsolete: true
Attachment #648420 -
Flags: feedback?(joshmoz)
Attachment #650372 -
Flags: feedback?(joshmoz)
Comment on attachment 650372 [details] [diff] [review]
patch
Review of attachment 650372 [details] [diff] [review]:
-----------------------------------------------------------------
Seems like a reasonable approach for extensions.
::: content/base/src/nsObjectLoadingContent.cpp
@@ +2441,5 @@
> return NS_OK;
> }
>
> +NS_IMETHODIMP
> +nsObjectLoadingContent::GetPluginFallbackType(PRUint32* aPluginFallbackType)
You might want to add a chrome/content check here, and limit this to chrome callers.
Attachment #650372 -
Flags: feedback?(joshmoz) → feedback+
![]() |
Assignee | |
Comment 5•13 years ago
|
||
Added code to limit this to chrome/extensions. I think we're ready to go ahead with this, so asking for review.
Attachment #650372 -
Attachment is obsolete: true
Attachment #652138 -
Flags: review?(joshmoz)
Attachment #652138 -
Flags: review?(joshmoz) → review+
![]() |
Assignee | |
Comment 6•13 years ago
|
||
This ran green: https://tbpl.mozilla.org/?tree=Try&rev=15c4080ea5e1
Marking checkin-needed.
Keywords: checkin-needed
Reporter | ||
Comment 7•13 years ago
|
||
Status: NEW → ASSIGNED
Keywords: checkin-needed
Reporter | ||
Updated•13 years ago
|
Attachment #652138 -
Flags: checkin+
Reporter | ||
Updated•13 years ago
|
Assignee: jschoenick → dkeeler
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Comment 9•13 years ago
|
||
Updated•13 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla17 → ---
Comment 10•13 years ago
|
||
Looks like the |plugin.QueryInterface(Ci.nsIObjectLoadingContent);| interface queries are missed in the tests.
Attachment #653135 -
Flags: feedback?(dkeeler)
![]() |
Assignee | |
Comment 11•13 years ago
|
||
Thanks to Yury for pointing out the QueryInterface issue.
Also, I forgot to rev the uuid, so that was wrong.
Asking for review from Jared in case there's something else wrong he might catch.
Attachment #652138 -
Attachment is obsolete: true
Attachment #653135 -
Attachment is obsolete: true
Attachment #653135 -
Flags: feedback?(dkeeler)
Attachment #653542 -
Flags: review?(jaws)
Comment 12•13 years ago
|
||
Comment on attachment 653542 [details] [diff] [review]
pluginFallbackType v2
Review of attachment 653542 [details] [diff] [review]:
-----------------------------------------------------------------
r=me for the test changes. ship it! :)
Attachment #653542 -
Flags: review?(jaws) → review+
![]() |
Assignee | |
Comment 13•13 years ago
|
||
Let's see if this works better: https://tbpl.mozilla.org/?tree=Try&rev=6985b1f34ab2
Reporter | ||
Comment 14•13 years ago
|
||
(In reply to David Keeler from comment #11)
> Also, I forgot to rev the uuid, so that was wrong.
(I actually rev'd it in the landing, but forgot to mention it):
https://hg.mozilla.org/mozilla-central/rev/2b5b8baa5816#l2.13
![]() |
Assignee | |
Comment 15•13 years ago
|
||
Okay - this ran green on try. If it fails on inbound again, something weird is going on.
Marking checkin-needed.
Keywords: checkin-needed
Comment 16•13 years ago
|
||
(In reply to David Keeler from comment #15)
> something weird is going on.
Or clobber vs non-clobber bustage :-)
Reporter | ||
Comment 17•13 years ago
|
||
pushed:
http://hg.mozilla.org/integration/mozilla-inbound/rev/0ca713e1db47
try:
https://tbpl.mozilla.org/?tree=Try&rev=6985b1f34ab2
Keywords: checkin-needed
Reporter | ||
Updated•13 years ago
|
Attachment #653542 -
Flags: checkin+
Comment 18•13 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
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
•