Commit Graph

284557 Commits

Author SHA1 Message Date
Dave Townsend
aba4ac788b Bug 1245916: Import more head files for xpcshell tests. r=pbrosset
xpcshell tests used to use head_*.js files so this adds those for global
discovery.

MozReview-Commit-ID: BOsoGIpwdgu
2016-02-05 13:23:40 -08:00
Dave Townsend
88e90d7767 Bug 1245916: Add additional default globals. r=felipe
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.

MozReview-Commit-ID: BdWouZGK6d
2016-02-05 12:12:30 -08:00
Dave Townsend
39095f0ee1 Bug 1245916: Add additional browser window scripts to eslint globals. r=felipe
This adds more of the scripts that browser.js relies on and also makes
browser-chrome head files import the browser.js globals.

The MOZ_JSDOWNLOADS block in contentAreaUtils only seems to hide a single
function, I don't see any need to keep hiding that now we're on by default.

MozReview-Commit-ID: 5zvF3JtJrZG
2016-02-05 12:16:39 -08:00
Dave Townsend
e10f46b2fb Bug 1245916: XBL bindings should support global declarations in comments. r=miker
To properly lint XBL files we need to support things like import-globals-from
and other ESlint comment directives so we have to pass comments through to the
code blocks that ESlint parses. Unfortunately the way the XBL processor works
now is by passing a separate code block for every method/property/etc. in the
XBL and ESlint doesn't retain state across the blocks so we would have to prefix
every block with every comment. Instead this change makes us output just a
single block that roughly looks like this:

<comments>
var bindings = {
  "<binding-id>": {
    <binding-part-name>: function() { ... }
  }
}

This has some interesting bonuses. Defining the same ID twice will cause a lint
failure. Same for the same field in a binding. The line mapping is a little
harder and there are still a few lines that won't map directly back to the
original file but they should be rare cases. The only downside is that since
some bindings have the same binding declared differently for different platforms
we have to exclude those from linting for now.

MozReview-Commit-ID: CAsPt5dtf6T
2016-02-05 12:13:34 -08:00
Dave Townsend
4c45c258f1 Bug 1245916: Unify eslint global discovery rules. r=pbrosset
While working on turning on no-undef I discovered that the various rules we
have for defining globals are a little inconsistent in whether the files they
load recurse through import-globals-from directives and none of them imported
eslint globals directives.

I think we're better off putting all this global parsing code in a single place
rather than spread across multiple rules. Have one rule to turn it on for
parsed files and one function to load globals from other files and make them
share most of the code so we won't get inconsistent. If we find us needing to
turn on/off individual features we can figure out a way to do that in the
future.

This patch does that, the globals.js file does all global parsing with a shared
object that receives events from the AST, either through from an ESlint rule
or from a simple AST walker using estraverse.

MozReview-Commit-ID: 9KQZwsNNOUl
2016-02-05 11:37:50 -08:00
Chris Peterson
0719eb45af Bug 1233297 - Part 1: Consolidate MOZ_C*_SUPPORTS_WARNING configure checks in compiler-opts.m4. r=glandium 2016-02-02 00:04:26 -08:00
Xidorn Quan
37775e9663 Bug 1218706 followup 2 - Mark some dir-isolation web-platform tests expected-fail on Win7.
MozReview-Commit-ID: 5pAMJPAYGNl
2016-02-17 13:14:59 +08:00
Jean-Yves Avenard
175bf1926e Revert "Bug 1248570: Allow WAV into media element. r=lchristie"
This reverts commit b3f7abd15a
2016-02-17 16:09:51 +11:00
Jean-Yves Avenard
23022c0bf7 Bug 1248570: Allow WAV into media element. r=lchristie
MozReview-Commit-ID: AKIQq9EyCC6
2016-02-17 15:47:43 +11:00
Brian Birtles
43d395844b Bug 1244414 - Create iframe element from script to avoid racing with the load event; r=bz 2016-02-17 13:38:31 +09:00
Kartikaya Gupta
e83409aee0 Bug 1246056 - Ensure that the MockContentController's timestamp is always >= GetStartupTime(). r=botond
MozReview-Commit-ID: KfkX1ixpKaI
2016-02-16 17:25:54 -05:00
Xidorn Quan
744ed836a3 Bug 1248757 followup - Release blob after assignment in DoGetBlobAsString on CLOSED TREE.
MozReview-Commit-ID: HOsMvsjBJKF
2016-02-17 11:57:59 +08:00
Ting-Yu Lin
2752bcb7fd Bug 1246918 - Handle PresShell gone after FlushLayout(). r=roc
After calling FlushLayout(), PresShell::Destroy() might be called and we
should consider PresShell and other resources will be no longer valid.

Before this patch, AccessibleCaretManager and AccessibleCaret(s) are
deallocated in PresShell::Destroy(). However FlushLayout() are all
invoked in AccessibleCaretManager, we need to keep manager alive to
clean up after PresShell::Destroy().

This patch makes AccessibleCaretManager live after PresShell::Destroy(),
and use IsTerminated() to check whether PreShell is vaild after each
FlushLayout() calls.

Note that event though AccessibleCaretEventHub will be unref in
PresShell::Destroy(), all the callers to AccessibleCaretEventHub's
public methods already add a ref to AccessibleCaretEventHub. So we don't
need to worry about AccessibleCaretEventHub and AccessibleCaretManager
die immediately after PresShell::Destroy().

MozReview-Commit-ID: DDpXZ7v3zyo
2016-02-15 15:12:35 +08:00
Ting-Yu Lin
0cded77e54 Bug 1246918 - Fix carets missing after scrolling down in selection mode on Fennec. r=roc
Fennec enables sCaretsExtendedVisibility which uses
Appearance::NormalNotShown instead of Appearance::None to keep actionbar
shown during scrolling. This breaks selection mode update when the
positions of the carets are not changed after scrolling.

To fix this, we need to implement appearance recovering for selection
mode scrolling like we did for cursor mode in bug 1212732, and make
UpdateCaretsForSelectionMode() respects UpdateCaretsHint.

MozReview-Commit-ID: LkfUIGKHL0h
2016-02-11 16:22:57 +08:00
JW Wang
de266ee46b Bug 1248543 - release decoder resources when finishing tests to avoid OOM and failing to open cubeb streams. r=kinetik.
MozReview-Commit-ID: 1LmRNzVFYX9
2016-02-17 10:47:03 +08:00
Shih-Chiang Chien
bc0f7bd48d Bug 1231416 - fix Mulet UA string generation rule. r=fabrice.
MozReview-Commit-ID: 69fIxw0FO9l
2016-02-16 18:54:12 +08:00
Xidorn Quan
9127b0d28a Bug 1218706 followup - Mark some dir-isolation web-platform test expected pass.
MozReview-Commit-ID: IABqEq2wFYi
2016-02-17 10:33:12 +08:00
Jonathan Watt
7a5edafda6 Bug 1245414, part 10 - Apply the Mozilla patches via mfbt/decimal/update.sh. r=Waldo 2016-02-11 19:43:14 +00:00
Jonathan Watt
82f1876b51 Bug 1245414, part 9 - Disable mfbt/decimal/fix-wshadow-warnings.patch. r=cpeterson 2016-02-11 19:07:42 +00:00
Jonathan Watt
9c566fe3ef Bug 1245414, part 8 - Remove mfbt/decimal/floor-ceiling.patch now that the issue is fixed upstream. r=Waldo 2016-02-11 19:07:42 +00:00
Jonathan Watt
88c1e66f99 Bug 1245414, part 7 - Update mfbt/decimal/to-moz-dependencies.patch. r=Waldo 2016-02-11 19:07:42 +00:00
Jonathan Watt
e8c377c44a Bug 1245414, part 6 - Update mfbt/decimal/mfbt-abi-markers.patch. r=Waldo 2016-02-11 19:07:42 +00:00
Jonathan Watt
d43bf2b405 Bug 1245414, part 5 - Update mfbt/decimal/comparison-with-nan.patch. r=Waldo 2016-02-11 19:07:41 +00:00
Jonathan Watt
9a93ca8911 Bug 1245414, part 4 - Update mfbt/decimal/zero-serialization.patch. r=Waldo 2016-02-11 19:07:41 +00:00
Jonathan Watt
1dfe3b8cb7 Bug 1245414, part 3 - Overwrite mfbt/decimal/Decimal.* with vanilla upstream copies. r=Waldo 2016-02-11 19:07:41 +00:00
Jonathan Watt
4b0fe2fb73 Bug 1245414, part 2 - Update mfbt/decimal/update.sh to reflect Blink's switch from svn to git, and the different files we now pull. r=Waldo 2016-02-11 19:07:41 +00:00
Jonathan Watt
4061fd51d6 Bug 1245414, part 1 - Delete the mfbt/decimal/LICENSE* files since upstream now just uses inline comments. r=Waldo 2016-02-11 19:07:40 +00:00
Jonathan Griffin
3f2a2e8714 Bug 1240825 - s/asserts/asserts-if, a=test-only 2016-02-16 17:00:49 -08:00
Xidorn Quan
b9315a0e0a Bug 743198 part 11 - Update locales string to the new spelling as well as unprefixed API. r=smaug
The main motivation of this patch is to fix the prefixed function name
used in one string. But updated string should have different a different
identifier, otherwise it might be ignored. Since we should eventually
prefer using word "fullscreen" over "full-screen", it is easier to just
change all of them together.
2016-02-17 08:47:11 +08:00
Xidorn Quan
6961d34c6f Bug 743198 part 10 - Add test for prefixed Fullscreen API. rs=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
624da19ffb Bug 743198 part 9 - Use unprefixed Fullscreen API in tests. r=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
7cada478d1 Bug 743198 part 8 - Use unprefixed Fullscreen API in chrome code. r=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
2f4b14ff27 Bug 743198 part 7 - Add :fullscreen pseudo class. r=heycam 2016-02-17 08:47:11 +08:00
Xidorn Quan
e717e0d7b7 Bug 743198 part 6 - Add unprefixed fullscreen events. r=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
ef896f886c Bug 743198 part 5 - Check legacy event listener only if listener is found in the current group. r=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
542ad9bac9 Bug 743198 part 4 - Rename LogFullScreenDenied to nsIDocument::DispatchFullscreenError, and reuse it in Element::RequestFullscreen. r=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
6c40e9925c Bug 743198 part 3 - Refactor nsDocument::IsFullScreenEnabled to be static local function GetFullscreenError. r=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
6536557784 Bug 743198 part 2 - Add unprefixed Fullscreen API to Document and Element. r=smaug 2016-02-17 08:47:11 +08:00
Xidorn Quan
d8dd8f560b Bug 743198 part 1 - Drop [Throws] of document.mozFullScreenElement. r=smaug
This method actually never throws. IsFullScreenDoc() simply checks
whether GetFullScreenElement() returns nullptr, which means if that
method returns true, the "!el" check would never fail.
2016-02-17 08:47:11 +08:00
Wes Kocher
c38635597b Backed out changeset 9d5fa6d7558a (bug 1247432) for being a possible cause of the spike in ASAN test_browserElement_oop_getWebManifest.html failures 2016-02-16 16:40:43 -08:00
Wes Kocher
4f33922c99 Backed out changeset d2cb189066ea (bug 1247656) for being a possible cause of the spike in ASAN test_browserElement_oop_getWebManifest.html failures 2016-02-16 16:40:38 -08:00
Xidorn Quan
ad3d3d3712 Bug 1218706 - Make 'unicode-bidi: isolate' the default for elements with a dir attribute. r=dbaron,jfkthame 2016-02-17 08:39:54 +08:00
Chris Cooper
a6b66b0d36 Bug 1236954 - partner repack script changes to read properties from buildprops.json (NPOTB, DONTBUILD); r=jlund
Adds --require-buildprops option used by the standalone builder. When this option is
specified, a partner property must be present in the buildprops.json file. This limits
the repack operation to that single partner.
2016-01-25 15:20:41 -05:00
Luke Wagner
bab83d8895 Bug 1248625 - Change 'return false' to 'return nullptr' (r=me)
MozReview-Commit-ID: 75AW4GpR8hd
2016-02-16 17:11:05 -06:00
Jordan Lund
d0e6894479 Bug 1246074 - add partials template config for mozharness beetmover, DONTBUILD r=rail 2016-02-06 13:46:13 -08:00
Louis Christie
1c89333a27 Bug 1231793: Part 8 - Added checks for various metadata errors. r=jya 2016-02-17 09:57:52 +11:00
Luke Wagner
504f7e331d Bug 1248625 - Baldr: make string labels more regular (r=sunfish)
MozReview-Commit-ID: BD6fAWfP7Fn
2016-02-16 16:48:23 -06:00
Luke Wagner
4a58f95566 Bug 1248488 - Odin: switch more integer immediates to variable-length u32s (r=sunfish)
MozReview-Commit-ID: r3Ie4fsLGZ
2016-02-16 16:48:23 -06:00
Luke Wagner
80b719b64e Bug 1247846 - Baldr: add indirect function table and call_indirect (r=sunfish)
MozReview-Commit-ID: HFq8Nh0XCkB
2016-02-16 16:48:23 -06:00
Luke Wagner
447d281429 Bug 1247846 - Baldr: add type declaration to text language (r=sunfish)
MozReview-Commit-ID: IoPFObBpMxT
2016-02-16 16:48:23 -06:00