Closed
Bug 903965
Opened 11 years ago
Closed 11 years ago
nsWebNavigationInfo loads plugins for docShells with allowPlugins=false
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla26
People
(Reporter: markh, Assigned: markh)
References
Details
Attachments
(1 file)
1.70 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
nsWebNavigationInfo::IsTypeSupported() loads plugins (and thus the blocklist) even if the request is for a docShell with allowPlugins=false. While later code avoids using the plugin, we should skip the load in this case.
Normally this shouldn't cause any problems, but currently this causes warnings when done in a child process - see bug 901294. The attached patch fixes this.
(The evidence of this is the following message printed to the console in debug builds:
***********************************************************
*
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/FileUtils.jsm :: FileUtils_getDir :: line 63" data: no]
************************************************************
and further instrumentation shows this is being called by the plugin manager)
Assignee | ||
Comment 1•11 years ago
|
||
Comment on attachment 788827 [details] [diff] [review]
Skip loading plugins if the docShell isn't going to use them
Georg,
You were suggested to me as good reviewer of this given Ben's away - I hope that's OK!
Attachment #788827 -
Flags: review?(georg.fritzsche)
Comment 2•11 years ago
|
||
Comment on attachment 788827 [details] [diff] [review]
Skip loading plugins if the docShell isn't going to use them
Sorry, i've no insight into docshell.
I see that bz is also on PTO, maybe try jst or smaug as docshell peers?
Attachment #788827 -
Flags: review?(georg.fritzsche) → review?
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 788827 [details] [diff] [review]
Skip loading plugins if the docShell isn't going to use them
Olli, any chance you could take a look at this or pass it on?
Attachment #788827 -
Flags: review? → review?(bugs)
Comment 4•11 years ago
|
||
Comment on attachment 788827 [details] [diff] [review]
Skip loading plugins if the docShell isn't going to use them
The code should be above IsTypeSupportedInternal.
Attachment #788827 -
Flags: review?(bugs) → review-
Comment 5•11 years ago
|
||
er, let me look again.
Updated•11 years ago
|
Attachment #788827 -
Flags: review- → review?(bugs)
Updated•11 years ago
|
Attachment #788827 -
Flags: review?(bugs) → review+
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Updated•11 years ago
|
Assignee: nobody → mhammond
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
•