Commit Graph

248943 Commits

Author SHA1 Message Date
Shu-yu Guo
2a5630871e Bug 1165486 - Restructure function and script cloning in light of PollutingGlobal scope changes. (r=Waldo)
CloneFunctionObject is split into the following:

  - CloneFunctionAndScript, which deep clones the function and its
    script, giving the cloned script a new static scope chain. This is
    used for cloning singleton lambdas and JSAPI cloning. For singleton
    lambdas, the original and the clone script have the same static
    scope chain. For JSAPI cloning, a new static scope is provided
    (either null, for a clean global, or StaticPollutingGlobalObject,
    for a polluted global).

  - CloneFunctionReuseScript, which clones the function but reuses the
    script, and thus keeps the same static scope chain.

CloneScript is split into the following:

  - CloneGlobalScript, which clones a script with and gives it a new
    static scope.

  - CloneScriptIntoFunction, which clones a script into a JSFunction and
    gives it a new static scope. Cloning a script into a new function
    container requires slightly different logic to hook up the static
    scope chain before cloning inner scripts.
2015-06-15 17:38:01 -07:00
Shu-yu Guo
331591ef2a Bug 1165486 - Remove PollutedGlobalScopeOption in favor of using the static scope chain to detect non-syntactic scopes. (r=luke) 2015-06-15 17:38:01 -07:00
Shu-yu Guo
fdea290a47 Bug 1165486 - Detect with scopes at parse time using the static scope chain instead of treating it as a polluted global. (r=luke) 2015-06-15 17:38:01 -07:00
Shu-yu Guo
3c634f08a1 Bug 1165486 - Add StaticNonSyntacticScopeObjects and teach scope iterators about it. (r=luke) 2015-06-15 17:38:01 -07:00
Shu-yu Guo
c27c964ec1 Bug 1165486 - Rename hasPollutedGlobalScope to hasNonSyntacticScope. (r=luke) 2015-06-15 17:38:01 -07:00
Shu-yu Guo
fd27f7a733 Bug 1165486 - Cleanup: use standard object allocation functions when allocating scope objects. (r=terrence) 2015-06-15 17:38:01 -07:00
Shu-yu Guo
c6dec5fc21 Bug 1165486 - Cleanup: rename staticEvalScope to topStaticScope to prepare for the static top-level lexical scope. (r=luke) 2015-06-15 17:38:00 -07:00
Boris Zbarsky
ad66f1f56a Bug 1174487. Stop using JS_ReportPendingException in ThrowAndReport. Just let the AutoJSAPI do the work for us. r=bholley 2015-06-15 20:11:54 -04:00
Boris Zbarsky
0f5c0e6231 Bug 1174486 part 4. Stop reporting exceptions in nsJSUtils::EvaluateString and have its consumers use AutoJSAPIs that take ownership of error reporting instead. r=bholley 2015-06-15 20:11:06 -04:00
Boris Zbarsky
dfefbdf71b Bug 1174486 part 3. Eliminate the unused codepath on which EvaluateOptions::reportUncaught is false. r=bholley 2015-06-15 20:10:50 -04:00
Boris Zbarsky
3d48008d40 Bug 1174486 part 2. Add a way to explicitly report a pending exception on an AutoJSAPI that has taken ownership of error reporting. r=bholley
This is needed for some cases that currently report an exception and then do
some other work on the same cx (specifically, nsXBLProtoImplField::InstallField).
2015-06-15 20:10:38 -04:00
Boris Zbarsky
97d768b895 Bug 1174486 part 1. Make sure that warnings do still get reported even if our AutoJSAPI has taken over error reporting. r=bholley 2015-06-15 20:10:24 -04:00
Boris Zbarsky
0d146ab622 Bug 1173593. Make it possible to throw TypeError (or, in fact, any other Error from the content compartment) from js-implemented webidl. r=bholley 2015-06-15 20:09:36 -04:00
Boris Zbarsky
ba58ba4578 Bug 1173638. Make the constructors for Error and its subtypes get their filenames/linenumbers from the saved stack, not manually. r=fitzgen,bholley
The changes in webgl code are to ensure that we're in a reasonable compartment
while reporting a warning via the JS engine.
2015-06-15 20:05:49 -04:00
Eric Rahm
595caf9606 Bug 1173858 - Part 3 - Reindent blocks that we've converted to use LAYOUT_WARN_IF_FALSE. r=dholbert 2015-06-15 16:36:12 -07:00
Eric Rahm
eef7a772b2 Bug 1173858 - Part 2: Use LAYOUT_WARN_IF_FALSE to silence some verbose layout warnings by default. r=dholbert 2015-06-15 16:36:11 -07:00
Eric Rahm
346bd7fed6 Bug 1173858 - Part 1: Add log module for layout. r=dholbert
Add a log module for use by layout. An analog to NS_WARN_IF_FALSE is provided
that has the same behavior as NS_WARN_IF_FALSE: it's debug only and emits a
message prefixed with '[pid] WARNING', includes the condition being checked,
file name and line number.
2015-06-15 16:36:09 -07:00
Benoit Girard
faa63dacd9 Bug 1171682 - Disable WebGL in safemode. r=jgilbert 2015-06-15 17:05:02 -04:00
Markus Stange
2e98c692ce Bug 1174332 - Correctly compute box-shadow bounds on themed frames with overflow. r=roc 2015-06-15 15:02:01 -04:00
Markus Stange
f92f1597a4 Bug 1169502 - Simplify visible regions to tiles, not to a number of rects. r=jrmuizel, r=roc 2015-06-10 15:54:20 -04:00
Markus Stange
241c4ad249 Bug 1169331 - Always clip rotated buffer quadrant drawing to the fill rect. r=jrmuizel 2015-06-15 16:57:30 -04:00
Ryan VanderMeulen
63f30a7691 Backed out changeset 4d9c70392f0e (bug 1174612) for total mochitest bustage.
CLOSED TREE
2015-06-15 16:47:11 -04:00
Milan Sreckovic
36f6020745 Bug 1159751 - Use a more explicit order of destruction in gfxWindowsPlatform. r=bas 2015-06-10 11:52:00 -04:00
Andrew Comminos
42b33f843d Bug 1171011 - Use only document padding for MOZ_GTK_ENTRY in XUL. r=karlt 2015-06-10 12:38:00 -04:00
Andrew Comminos
2a579c982c Bug 1173971 - Force core Xlib events on GTK3. r=karlt 2015-06-12 06:55:00 -04:00
Maksim Lebedev
40bcadd463 Bug 1171712 - Implement separated InkColletor and InkCollectorEvent classes. r=smaug, r=jimm 2015-06-12 08:35:00 -04:00
Andrew Comminos
46a83c3b7e Bug 1174212 - Skip pointerlock tests on GTK3. r=karlt 2015-06-15 07:15:00 -04:00
Joel Maher
d46954b0e4 Bug 1174693 - Remove old robocop talos tests which we don't run anymore. r=gbrown 2015-06-15 09:35:00 -04:00
Ryan VanderMeulen
a8413ea695 Merge m-c to inbound. a=merge 2015-06-15 15:56:20 -04:00
Ryan VanderMeulen
877320e93e Merge inbound to m-c. a=merge 2015-06-15 15:55:28 -04:00
Ryan VanderMeulen
a50cab804a Merge fx-team to m-c. a=merge 2015-06-15 15:49:24 -04:00
Birunthan Mohanathas
57eca8fb7a Bug 1174612 - Consolidate MEMORY STAT messages into a single line. r=chmanchester 2015-06-15 12:27:35 -07:00
Ehsan Akhgari
846765062e Bug 1174307 - Add some internal content policy types for the purpose of reflecting them on RequestContext; r=sicking
These new content policy types will be internal ones that we will map
to external nsContentPolicyTypes before passing them to content policy
implementations.
2015-06-15 15:40:26 -04:00
Andrew McCreight
11a6356253 Bug 861449 - Incremental css::Rule destroyer. r=dbaron
Destroying large arrays of css::Rules during page teardown can take
multiple milliseconds in incremental CC. To reduce CC pauses, this
patch introduces a new class nsIncrementalClearCOMRuleArray that uses
the deferred finalizer to incrementally destroy these rule arrays.
2015-06-15 12:34:23 -07:00
Ryan VanderMeulen
36854cb900 Backed out changeset 068df0223a6c (bug 1125961) for e10s crashes.
CLOSED TREE
2015-06-15 15:27:53 -04:00
Kartikaya Gupta
7699230ac7 Bug 1163572 - Modify UpdateSubFrame to automatically figure out the nsIContent from the scrollId. r=botond 2015-06-15 14:39:06 -04:00
Kartikaya Gupta
8cd41536e9 Bug 1163572 - Have ChromeProcessController also handle root-frame repaint requests. r=botond
Original patch by Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>.
2015-06-15 14:39:06 -04:00
Kartikaya Gupta
e2e33e1957 Bug 1163572 - Modify UpdateRootFrame to automatically compute the nsIContent* and nsIPresShell* from the metrics. r=botond
Original patch by Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>.
2015-06-15 14:39:06 -04:00
Josh Matthews
c630379743 Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks; r=dragana 2015-06-15 14:35:06 -04:00
Ehsan Akhgari
ed25606ef3 Bug 1075758 - Do not look at the ICU version number when whitelisting the ICU namespace in the clang plugin; r=Waldo 2015-06-15 14:29:28 -04:00
Ryan VanderMeulen
c2d0806581 Backed out changeset 1d67d747b3eb (bug 911972) for frequent linux64 debug e10s test_post_message_advanced.html timeouts.
CLOSED TREE
2015-06-15 13:06:23 -04:00
Ryan VanderMeulen
5393f426d3 Backed out changesets 465dfc26cccb and bd11384b3241 (bug 952139) because it depends on bug 911972. 2015-06-15 13:04:02 -04:00
Andrea Marchesini
fa7909d33f Bug 952139 - patch 2 - Expose MessageChannel to workers in mochitests, r=smaug CLOSED TREE 2015-06-15 17:44:08 +01:00
B2G Bumper Bot
41975f8c05 Bumping manifests a=b2g-bump 2015-06-15 09:28:20 -07:00
B2G Bumper Bot
a33dcc1db6 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/43b90c580707
Author: Tzu-Lin Huang <dwi019@gmail.com>
Desc: Merge pull request #30438 from dwi2/bug1169535

Bug 1169535 - [Stingray] Collapse folder when focus move to filter

========

https://hg.mozilla.org/integration/gaia-central/rev/1e072506be56
Author: Tzu-Lin Huang <tzhuang@mozilla.com>
Desc: Bug 1169535 - [Stingray] Collapse folder when focus move to filter
2015-06-15 09:26:24 -07:00
B2G Bumper Bot
55743280dc Bumping manifests a=b2g-bump 2015-06-15 09:02:22 -07:00
B2G Bumper Bot
b91c7c8450 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/2f13e4d5c4e7
Author: Marshall Culpepper <marshall.law@gmail.com>
Desc: Merge pull request #30574 from marshall/bug1169349_ftuImei

Bug 1169349 - Use IMEI as the FTU ping device ID for dogfooders.

========

https://hg.mozilla.org/integration/gaia-central/rev/92107405b6b0
Author: Marshall Culpepper <marshall@mozilla.com>
Desc: Bug 1169349 - Use IMEI as the FTU ping device ID for dogfooders. r=thills
2015-06-15 09:00:27 -07:00
Jocelyn Liu
9766618d47 Bug 1174717 - Passing fallible when calling AppendElement method for Sequence types in bluetooth2. r=shuang 2015-06-15 08:41:00 -04:00
B2G Bumper Bot
e2a8f35a28 Bumping manifests a=b2g-bump 2015-06-15 07:47:11 -07:00
B2G Bumper Bot
8973a2d253 Bumping gaia.json for 6 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/ce7512d1e4c4
Author: Ryan VanderMeulen <ryanvm@gmail.com>
Desc: Merge pull request #30540 from chenpighead/Bug1173706

Bug 1173706 - Let system bootup and fake app launch use the same marionette client.

========

https://hg.mozilla.org/integration/gaia-central/rev/22bd58bae3cc
Author: Jeremy Chen <jichen@mozilla.com>
Desc: Bug 1173706 - Let system bootup and fake app launch use the same marionette client.

========

https://hg.mozilla.org/integration/gaia-central/rev/30eaaf9ca680
Author: Ryan VanderMeulen <ryanvm@gmail.com>
Desc: Merge pull request #30565 from aosmond/bug1166619

Bug 1166619 - Prevent capture when battery status is shutdown, even from hardware buttons.

========

https://hg.mozilla.org/integration/gaia-central/rev/823e05a04c96
Author: Andrew Osmond <aosmond@mozilla.com>
Desc: Bug 1166619 - Prevent capture when battery status is shutdown, even from hardware buttons.

========

https://hg.mozilla.org/integration/gaia-central/rev/fad462d07fc4
Author: Borja Salguero <borjasalguero@users.noreply.github.com>
Desc: Merge pull request #30541 from borjasalguero/bug_1173278

Bug 1173278 - [Contacts][NGA] 'extServices' should not be tied to 'co…

========

https://hg.mozilla.org/integration/gaia-central/rev/cdaba8b62d8b
Author: borjasalguero <fbsc@tid.es>
Desc: Bug 1173278 - [Contacts][NGA] 'extServices' should not be tied to 'contact.js' r=arcturus
2015-06-15 07:45:14 -07:00