Commit Graph

176 Commits

Author SHA1 Message Date
Boris Zbarsky
9641f8e3ec Bug 1364816 part 5. Make getting window names a bit faster by avoiding various intermediate strings. r=qdot,jandem 2017-06-06 21:21:45 -04:00
Peter Van der Beken
7002bb3bff Bug 558184 - Part 9 - Optionally load a script in a sandbox in the content process for every plugin instance. r=bz. 2016-09-27 18:28:36 +08:00
Peter Van der Beken
d697b27ee6 Bug 558184 - Part 8 - Load js plugins in a separate process. r=billm.
Every JS plugin is assigned a unique ID. When an instance of a JS plugin is created the
frame loader that we use to load the plugin's handler URI will create a special
TabContext. This TabContext causes the ContentParent to use the process for this specific
JS plugin (creating one if it hasn't already) when it creates the PBrowser actors.
This causes the iframes for all the instances of a specific JS plugin to be grouped in the
same process.
2017-05-29 12:38:46 +02:00
John Schoenick
56fdf7a699 Bug 558184 - Part 4.3 - Load fake plugin handlers as eType_FakePlugin in nsObjectLoadingContent. r=peterv. 2015-05-20 15:30:05 +02:00
Felipe Gomes
aad5d87589 Bug 1364505 - Add a rule to favor plugin fallback content when no srcURI has been specified. r=qDot
MozReview-Commit-ID: 18VcbxHmi0c
2017-05-16 22:56:22 -03:00
Carsten "Tomcat" Book
c807d58426 merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
Bill McCloskey
c402a046c2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Tom Tung
9669ece30c Bug 1348050 - Part 5: Mark channel as urgent-start for embed element. r=baku
This patch is mainly for ObjectLoadingContent. Since there is no any runnable
between setting src and creating channel, I check urgent-start just after
creating channel.

MozReview-Commit-ID: IoishRqENBM
2017-05-05 13:59:42 +08:00
Emilio Cobos Álvarez
6bd910c684 Bug 1357142: Kill PresShell::RecreateFramesFor. r=bz
It's not only inefficient, but also prone to buggyness. Since styles may not be
up-to-date when it happens.

Post a reconstruct instead, which ensures a style flush happens before running
frame construction.

MozReview-Commit-ID: DrakHsJv5fY
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-17 18:01:37 +02:00
Chris Peterson
7b0c896702 Bug 1354778 - Remove expired telemetry probes YOUTUBE_REWRITABLE_EMBED_SEEN and YOUTUBE_NONREWRITABLE_EMBED_SEEN. r=qdot
We know these rewritable YouTube Flash embeds are out there. We don't need to track that we're rewriting them. While only about 0.4% of browser sessions saw rewritable embeds in April 2017, compared to almost 2% in April 2016, is there any reason we would decide to stop rewriting these embeds?

If YouTube ever stops serving Flash video entirely, then we should remove the enablejsapi check (YOUTUBE_NONREWRITABLE_EMBED_SEEN) so users at least see a non-scriptable video instead of nothing.

MozReview-Commit-ID: IixKc6myvs6
2017-04-11 20:41:43 -07:00
Chris Peterson
2331db1b0e Bug 1354778 - Remove expired telemetry probe PLUGIN_BLOCKED_FOR_STABILITY. r=bsmedberg
Firefox 51 users with telemetry enabled blocked about 4.35M SWFs for stability. The block count has been in the single-digit millions for the last few releases. We don't expect these SWFs to go away, so we can stop tracking this telemetry and later replace this plugin blocklist with a more general solution.

MozReview-Commit-ID: KF1jIBTG5m4
2017-04-05 15:26:52 -07:00
Kirk Steuber
fada0072b5 Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot
Previously, we operated under the understanding that with Flash blocking activated, non-whitelisted documents would be set to CTA. We are changing that such that now, documents will only be CTA'ed if Flash is set to "Ask to Activate".

Flash blocking will now behave according to the following chart:

User Setting   Flash block   Whitelisted sites   Blacklisted sites    Unlisted sites
"Never ..."    Off           Deny                Deny                 Deny
"Ask ..."      Off           Ask                 Ask                  Ask
"Always ..."   Off           Allow               Allow                Allow
"Never ..."    On            Deny                Deny                 Deny
"Ask ..."      On            Allow               Deny                 Ask
"Always ..."   On            Allow               Deny                 Allow

This patch also completely reworks the flash blocking testing. Test data and most code remains consolidated, but will be run in multiple different tests. This avoids having to extend the timeout for Flash block testing to an extremely long length. The new Flash block testing additionally tests each of the six cases (rows) in the table above.

MozReview-Commit-ID: 5aPGUEiUiCv
2017-03-24 14:15:02 -07:00
Kyle Machulis
8b370d8b96 Bug 1351477 - Remove IsSWFPlayerEnabled function; r=bsmedberg
Since the Shumway project is dead, we no longer register a stream converter for flash files. We can remove this check, as it will always return false.

MozReview-Commit-ID: CzC7wYmWEFp
2017-03-28 14:56:20 -07:00
Michael Layzell
9b7d3c85aa Bug 1337056 - Part 8: Add nsIRequest::LOAD_HTML_OBJECT_DATA flag to identify requests loaded by nsObjectLoadingContent, r=mcmanus
MozReview-Commit-ID: 3hgLRCeuiyD
2017-03-21 11:08:03 -04:00
Michael Layzell
cb6f6964a5 Bug 1337056 - Part 7: Refactor nsObjectLoadingContent::GetTypeOfContent logic out into nsContentUtils, r=qdot
MozReview-Commit-ID: IJQNhQZzx3y
2017-03-21 11:08:03 -04:00
Wei-Cheng Pan
7a678cdad2 Bug 1310127 - Part 17: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug
MozReview-Commit-ID: 5gvVZtsa3yS
2016-12-20 11:49:32 +08:00
Tom Tromey
a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Wes Kocher
0e7757aeda Merge m-c to inbound a=merge
MozReview-Commit-ID: BemR756HJnR
2017-02-15 16:33:03 -08:00
Bill McCloskey
f79edeabc9 Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Kirk Steuber
bdcea14c4d Bug 1338287 - Make nsIDocument::DocumentFlashClassification accessible from privileged JS r=bz
MozReview-Commit-ID: 1II2puZMub5
2017-02-13 13:39:40 -08:00
Sylvestre Ledru
e3d60e5b2e Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/base/ r=Ehsan
MozReview-Commit-ID: 5sCNbqC4ew3
2017-02-09 15:44:02 +01:00
Boris Zbarsky
e5460d8ba1 Bug 1332956 part 3. Implement the same behavior for <object>-inside-<object> and <object>-inside-mediaelement as we do for <embed> already. r=qdot 2017-02-08 18:19:01 -05:00
Tim Huang
b3fb2c8458 Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug 2017-02-07 11:49:34 +08:00
Jet Villegas
683a6ee473 Bug 1311368 - Fix ShouldBlockContent logic when content blocking is enabled. r=tobytailor 2017-02-06 16:40:00 -05:00
Wes Kocher
5a055d83d9 Merge inbound to central, a=merge
MozReview-Commit-ID: 9bhCPrArK3P
2017-02-02 16:39:24 -08:00
Boris Zbarsky
e7ae250672 Bug 1332812. Remove some more unused or nearly-unused nsIDOMElement bits. r=froydnj 2017-02-02 10:32:58 -05:00
Sebastian Hengst
7e11a9fec6 Backed out changeset c724fbd9c326 (bug 1332812) for build bustage. r=backout on a CLOSED TREE 2017-02-02 16:58:52 +01:00
Boris Zbarsky
391a68c2da Bug 1332812. Remove some more unused or nearly-unused nsIDOMElement bits. r=froydnj 2017-02-02 10:32:58 -05:00
Boris Zbarsky
60fc8278ff Bug 1335368 part 7. Mostly stop using IsCallerChrome in nsObjectLoadingContent. r=bholley 2017-02-01 15:43:36 -05:00
Felipe Gomes
6b68c44612 Bug 1282484 - Write structure for pref-configurable fallback rules list, and include initial set of rules. r=qDot
* * *
Bug 1282485 - Plugin fallback rule - don't use fallback when the descendant has an embed element
* * *
Bug 1316102 - Plugin fallback rule - use fallback when it contains a <video> element
* * *
Bug 1282487 - Plugin fallback rule - don't use fallback when it contains links to adobe.com
* * *
Bug 1282486 - Plugin fallback rule - don't use fallback when it contains 'install Flash' instructions

MozReview-Commit-ID: DexVBrAfaTb
2017-01-24 03:08:04 -02:00
Felipe Gomes
dd10cc5143 Bug 1282484 - Cache the value of PreferFallback() because ShouldPlay() is called several times during the load process. r=qDot
MozReview-Commit-ID: DqjCHssaJde
2017-01-24 03:07:51 -02:00
Felipe Gomes
dc0744ff64 Bug 1282484 - Add a mechanism to control plugin fallback content. r=qDot
MozReview-Commit-ID: Lt4tOdFdQzN
2017-01-24 03:07:41 -02:00
Kirk Steuber
5c396352c6 Bug 1307604 - Add allow and deny lists for Flash Blocking r=bsmedberg,bz,francois
MozReview-Commit-ID: H2dgJX6Hsz7
2016-11-22 15:01:04 -08:00
Cameron McCormack
5f9911da79 Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Kyle Machulis
62f0bb59ca Bug 1318303 - Fallback without exception when trying to load object in non-active document; r=bz
MozReview-Commit-ID: 6GEH8Iglngt
2017-01-05 10:41:11 -08:00
Kyle Machulis
5f449659c0 Backout 3985fbac8369 and 563468e72885 (bug 1318303) due to crashtest failures 2017-01-04 15:54:24 -08:00
Kyle Machulis
764ce7df9b Bug 1318303 - Fallback without exception when trying to load object in non-active document; r=bz
MozReview-Commit-ID: 6GEH8Iglngt
2017-01-04 14:35:28 -08:00
Benjamin Smedberg
af47e0db63 Bug 1317032 - If a page uses or removes many <object> elements which are not actually plugins, loading the page goes to a crawl because we recalculate the plugin UI every time. Don't do that by only dispatching a PluginRemoved event for actual plugins, not images/unknown/iframe-type <objects>, r=qdot
MozReview-Commit-ID: I84UcPLObCA
2016-12-15 10:42:10 -05:00
Boris Zbarsky
8f83545477 Bug 909656. Remove the legacycaller from HTMLObjectElement/HTMLEmbedElement, since it's not used in the wild, other browsers don't seem to support it, and we're dropping non-Flash plugins anyway. r=bsmedberg 2016-11-18 16:13:06 -05:00
Chris Peterson
efd3e4ebdc Bug 1317111 - Remove RealPlayer plugin quirk handling. r=mats 2016-11-16 13:44:24 -08:00
Ehsan Akhgari
917a5e63fc Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Carsten "Tomcat" Book
b2903208c2 Merge mozilla-central to inbound 2016-11-16 14:53:15 +01:00
Carsten "Tomcat" Book
84568d0bc2 Backed out changeset 7d1f7dd996f7 (bug 1310845) 2016-11-16 14:50:44 +01:00
Carsten "Tomcat" Book
e8b977693f Backed out changeset af3eb6a8e0ae (bug 1317111) 2016-11-16 14:50:42 +01:00
Andi-Bogdan Postelnicu
efac806caa Bug 1317241 - Use C++11's override and remove virtual where applicable in dom/ r=baku
MozReview-Commit-ID: 8jUAehd1odv
2016-11-15 13:09:07 +02:00
Andi-Bogdan Postelnicu
c47b0b7b15 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO
2016-11-14 11:40:37 +02:00
Chris Peterson
bac206e3d0 Bug 1317111 - Remove RealPlayer plugin quirk handling. r=mats
Delayed stop was only used for RealPlayer and forced reentry was only used by delayed stop (nsStopPluginRunnable).
2016-11-14 22:06:53 -08:00
Ehsan Akhgari
2d792bd2ad Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-15 18:31:46 -05:00
Boris Zbarsky
0ace43ab83 Bug 1317597. Stop using LegacyIsCallerChromeOrNativeCode use in nsObjectLoadingContent. r=qdot
These checks date back to when we didn't have webidl bindings and could end up
exposing random XPCOM methods to the web.  That doesn't happen anymore.
2016-11-15 12:46:32 -05:00
Boris Zbarsky
7f7aebb966 Bug 1316661 part 6. Get rid of nsIObjectLoadingContent.hasRunningPlugin, since it's unused. r=smaug 2016-11-15 12:46:31 -05:00