Commit Graph

544317 Commits

Author SHA1 Message Date
Andreas Tolfsen
32d341c354 Bug 1376128 - Remove unused getNavigator_ function from event module; r=automatedtester
MozReview-Commit-ID: 3RPaSq41Y9f

--HG--
extra : rebase_source : 29ed6d1d7101b620c944d923c7dfbe829b8029cc
2017-06-28 11:27:35 -07:00
Andreas Tolfsen
ee51d983c0 Bug 1376128 - Use named options for JavaScriptError; r=automatedtester
Using the {foo = null} = {} shorthand to generate default values exposed
as function scope variables is more readable, and arguably somewhat safer,
than the current approach.

MozReview-Commit-ID: Lxn0fpBSR3a

--HG--
extra : rebase_source : 63fa829657d726e8987a77b5add817a3b7d0b7d3
2017-06-28 11:24:58 -07:00
Andreas Tolfsen
ed364ef1d6 Bug 1376128 - Avoid use of proprietary catch-if statement; r=automatedtester
Whilst try...catch (e if foo) { ... } is a very nice construct, it has
not been standardised and we should avoid using non-web platform features.

MozReview-Commit-ID: 9qzHtBdlPfw

--HG--
extra : rebase_source : be27a3d647eba2d48721c77dabe12ca13278bda9
2017-06-28 11:22:29 -07:00
Andreas Tolfsen
b8fed800ba Bug 1376128 - Ensure consistent return types from findElement; r=automatedtester
MozReview-Commit-ID: LnzsAHCMAxW

--HG--
extra : rebase_source : c9c44c07df3c29b3c5b80c507ab875278d597c90
2017-06-28 11:16:34 -07:00
Andreas Tolfsen
98e70a93d3 Bug 1376128 - Fix undefined id variable; r=automatedtester
We try to delete the element entry by "id", which is not defined.

MozReview-Commit-ID: DXAOJAV1z9Q

--HG--
extra : rebase_source : 103209d203f64bb354e46fb4fb98225b8e7165a0
2017-06-28 11:15:00 -07:00
Andreas Tolfsen
8f8617afe9 Bug 1376128 - Remove duplicated command entries; r=automatedtester
getContext and setContext are duplicated further up under the Marionette
serivce entries.

MozReview-Commit-ID: 2V5S2XG6wDw

--HG--
extra : rebase_source : 1f22adc294c063f014e3a0e884a01ed6a7fbe43e
2017-06-28 11:14:16 -07:00
Andreas Tolfsen
1b59155d85 Bug 1376128 - Throw RangeError if Window is not found; r=automatedtester
To ensure a consistent return type from browser.Context#get, this patch
introduces a RangeError to be thrown if the weak reference to the window
is empty.

MozReview-Commit-ID: 2aNOG9Uht3I

--HG--
extra : rebase_source : e57f288544b011444c26f0d0ecd68979aa0caced
2017-06-28 11:12:33 -07:00
Andreas Tolfsen
41af3d0aae Bug 1376128 - Use consistent return types for accessibility.service; r=automatedtester
accessibility.service is allowed to return undefined, but we should
be explicit that this condition is allowed instead of relying on the
default value of the service variable assigned on the first line.

MozReview-Commit-ID: LrlnIba56v5

--HG--
extra : rebase_source : 1b66b6aa4393cb14b41bc67036d5d7296195be32
2017-06-28 11:09:40 -07:00
Andreas Tolfsen
ef0966c800 Bug 1376128 - Fix inconsistent return type for hasHiddenAttribute; r=automatedtester
Returning a value from a finally-block will mask any errors thrown in
the try-block.

MozReview-Commit-ID: JBouChGmXYo

--HG--
extra : rebase_source : 9df23dc0ca8325384fb37c09141d330ab88927c3
2017-06-28 11:08:18 -07:00
Andreas Tolfsen
b8ac152de5 Bug 1376128 - Allow duplicated dictionary keys in action module; r=automatedtester
We duplicate many keys in the PUA key lookup tables.

MozReview-Commit-ID: 9X7mZh3A0Qb

--HG--
extra : rebase_source : 3d1a41488ea3a813d2880be332545f854695bb23
2017-06-28 11:06:42 -07:00
Andreas Tolfsen
b86d19c98a Bug 1376128 - Expose unrecognised eslint globals; r=automatedtester
In particular, XPCNativeWrapper should probably be made available
by default.

MozReview-Commit-ID: E1oYFyApbLi

--HG--
extra : rebase_source : 4e27ad6882bd4e43dadc97d4fd2a186e01510dfd
2017-06-28 11:04:14 -07:00
Andreas Tolfsen
54c2f296a7 Bug 1376128 - Use selective imports from error module; r=automatedtester
Instead of importing everything from the testing/marionette/error.js
module into the global scope, we need to be selective about what symbols
we want.

MozReview-Commit-ID: HZDAS0bs0GD

--HG--
extra : rebase_source : 14a300bb2cedc0716168d50846755a6faed83012
2017-06-28 11:01:49 -07:00
Andreas Tolfsen
065a59f64f Bug 1376128 - Update lint ignore patterns for testing/marionette; r=automatedtester,standard8
We want to ignore a certain subset of generated and legacy code
in testing/marionette, most notably testing/marionette/atom.js and
testing/marionette/legacyaction.js.  Since the latter is scheduled for
removal, there is no need to spend extra time linting it.

MozReview-Commit-ID: OyRoM2uigG

--HG--
extra : rebase_source : 3ff2d45772358a12b526007910d980cfe6984a02
2017-06-24 19:01:48 +01:00
Andreas Tolfsen
ee355d1fd3 Bug 1376128 - Add eslint rules for testing/marionette; r=automatedtester,standard8
The eslint rules are based on the default, non-opinionated eslint rules
used throughout mozilla-central.  The testing/marionette eslint rules
are a specialisation of these based on the current coding style used.
These should not be contradictory to the overall JS code style that can
be inferred from the existing code base.

MozReview-Commit-ID: 2rKabgXXnu4

--HG--
extra : rebase_source : 724544b60b71db7c7b093a1ed51ebc77bc66482d
2017-06-24 19:01:04 +01:00
Cameron McCormack
45493796b5 Bug 1343701 - Mark view-source-image.html random in styloVsGecko. r=me
MozReview-Commit-ID: L27WYmWTOxA
2017-06-29 16:38:21 -07:00
KuoE0
fc3488ce48 Bug 1373159 - Add a bunch of test cases for 'context-fill-opacity' and 'context-stroke-opacity'. r=heycam
MozReview-Commit-ID: AkSep6phtm8

--HG--
extra : rebase_source : 0dbb1f7e2811a39e8e9aa23bf6dd7bcecc2c8f76
2017-06-20 11:51:56 +08:00
Shih-Chiang Chien
0f8c26e1d3 Bug 1338493 - Part 2, move HttpBackgroundChannelChild to socket transport thread. r=mayhemer
Move HttpBackgroundChannelChild from main thread to socket transport thread.
Allow HttpChannelChild.mBgChild to be used on both main thread and STS thread under mutex protection.

MozReview-Commit-ID: 9WAXmJLr8HT

--HG--
extra : rebase_source : 774c71cec9d36412e2101719f5ca930a214f6472
2017-06-28 22:04:17 +08:00
Shih-Chiang Chien
69d4008264 Bug 1338493 - Part 1, make webReqeust test to fiddle the main event loop after loading CSS/JS. r=kmag
Making ODA completely off-main-thread will make the order webRequest.onCompleted and CSS/JS execution unpredictable.
|window.requestIdleCallback| is used to fiddle the main thread event queue.

MozReview-Commit-ID: LIk0T96K6p1

--HG--
extra : rebase_source : 6a49660515d6b9fdb22a14174fb789e738d89f15
2017-05-22 11:41:08 +08:00
Boris Zbarsky
38f787eaa5 Bug 1377056. Ensure that the objectMoved hook, if any, is called when tenuring a nursery-allocated proxy. r=jonco
MozReview-Commit-ID: E2YTrQh4XGU
2017-06-29 16:02:42 -07:00
Boris Zbarsky
5bd9b06ca0 Bug 1376640. Fix dynamic updates when an inline that sits between a first-letter and its block changes style. r=heycam
MozReview-Commit-ID: 8osMUpYVRvR
2017-06-28 22:19:35 -07:00
Sebastian Hengst
6d1aee1b24 Backed out changeset 26fd6d0a1254 (bug 1369577) for failing xpcshell's test_ext_simple.js and test_ext_startup_cache.js on Android. r=backout 2017-06-30 01:01:13 +02:00
Sebastian Hengst
61fb850321 Backed out changeset dfb376de5c23 (bug 1369577) 2017-06-30 00:59:59 +02:00
Sebastian Hengst
2cfb02f19d Backed out changeset c0fd6c0590be (bug 1360872) for unused parentId at toolkit/components/places/Bookmarks.jsm:461. r=backout 2017-06-30 00:16:35 +02:00
Gabriele Svelto
f71d6d9b09 Bug 1376922 - Make mach's '--enable-crash-reporter' option work on debug builds; r=glandium
MozReview-Commit-ID: Et8452Rfh1F

--HG--
extra : rebase_source : cbfa349cbe0d7763cae8987da4e18fd4c848def4
2017-06-28 22:46:03 +02:00
Andrew Swan
f512794b1a Bug 1369577 Part 2 Propagate isHandlingUserInput for browserAction, pageAction, and menus r=kmag
The implementations of browserAction, pageAction, and menu onClick
handlers now stash the current <browser> until we get a reply from
the extension process indicating that the handler has finished running.
We also have to take care to keep that <browser> around even if the
permissions api has to be loaded asynchronously.

MozReview-Commit-ID: BYJaiwdj40u

--HG--
extra : rebase_source : f0eb9522e532071a11c3424f8fffddf12300504f
2017-06-15 12:48:40 -07:00
Andrew Swan
c60b71854e Bug 1369577 Part 1 Rename SingletonEventManager to EventManager r=kmag
MozReview-Commit-ID: 7nsYWdSTJCG

--HG--
extra : rebase_source : 22cf5ee36dfa27e121a5c577bce2fd0189ccb164
2017-06-09 13:49:07 -07:00
Chris H-C
2fffc9a94e bug 1373728 - Count how many pinned tabs are restored in a session r=bsmedberg,Dexter
Pinned tabs, when restored, load. This can have startup impact.
We should probably measure this.

To avoid impacting startup ourselves, do this when idle or after 60s from
session restore, whichever comes first.

MozReview-Commit-ID: EQzqqcz4IdL

--HG--
extra : rebase_source : 85158b6731862933027e90b1fe607a6794b68f52
2017-06-28 15:14:22 -07:00
Evan Tseng
04d1ec362b Bug 1365133 - Update tests - Part 2. r=jaws
MozReview-Commit-ID: GoOXdJ4RfY9

--HG--
rename : browser/components/preferences/in-content-new/tests/browser_security.js => browser/components/preferences/in-content-new/tests/browser_security-1.js
rename : browser/components/preferences/in-content-new/tests/browser_security.js => browser/components/preferences/in-content-new/tests/browser_security-2.js
extra : rebase_source : 30e8b1b27e081424e6a64415bec1736eab3cb397
2017-06-20 15:11:46 +08:00
Evan Tseng
aa6956f464 Bug 1365133 - Reorganize Preferences sections and regroup <xul:groupbox> elements by new categories - Part 1. r=jaws
MozReview-Commit-ID: Lh8iduzVoad

--HG--
rename : browser/components/preferences/in-content/search.js => browser/components/preferences/in-content-new/search.js
rename : browser/components/preferences/in-content/search.xul => browser/components/preferences/in-content-new/search.xul
extra : rebase_source : 6494de731166965de6816453e81006cc741f4330
2017-06-16 16:24:33 +08:00
Kit Cambridge
e80441db92 Bug 1360872 - Return empty strings for null bookmark titles. r=mak
MozReview-Commit-ID: Dd2sEfYvnBt

--HG--
extra : rebase_source : bea2d2589b2a09ba70a5c8e2b50ceee21acf3f0b
2017-06-06 14:37:22 -07:00
Alastor Wu
4122fb100d Bug 1347791 - part5 : only enable on desktop. r=bwu
This feature would onlt be enable on desktop.

MozReview-Commit-ID: GUBDP9CGoou

--HG--
extra : rebase_source : 209a543df5a5014465cf61ceb8f45d57ef428459
2017-06-29 05:46:30 -07:00
Alastor Wu
b58f62a199 Bug 1347791 - part4 : keep tab's block state consistent after session restore. r=dao,mikedeboer
If the tab was resumed before, it could start playing any autoplay media without user's
permission after session restore.

MozReview-Commit-ID: C3DHIIsLtJA

--HG--
extra : rebase_source : d415d26d9ddcc9cb2949eb3215aee74f4c85912c
2017-06-29 05:46:28 -07:00
Alastor Wu
a3c591450b Bug 1347791 - part3 : update block stauts to front-end side. r=baku,dao,mikedeboer
When the block stauts of the window was changed, we would notify front-end side
to update the vaule, so that we can save it for session restore.

MozReview-Commit-ID: FyclKmAxZHf

--HG--
extra : rebase_source : 5ac8bb9d82279074939caed53dd79c072a5097bc
2017-06-29 05:46:20 -07:00
Alastor Wu
5ea418e1fe Bug 1347791 - part2 : the tab would always be resumed when it goes to foreground first time. r=baku
Since now we move the block/resume logic to front-end side, we can remove
the changing from bug1319771 and other related bugs which are used to ensure the
pinned tab should be blocked successfully after session restore.

MozReview-Commit-ID: Ixe7tOvCEhv

--HG--
extra : rebase_source : 4214c68b4c95df5c33bf1a68c9ffb84ee4c4d5aa
2017-06-29 04:52:02 -07:00
Alastor Wu
ade6cb9314 Bug 1347791 - part1 : rename the attribute for the tab which has blocked the autoplay audio and would show the play-tab icon. r=mikedeboer
The "blocked" attribute is too general to indicate the real usage, so rename it
to "activemedia-blocked".

This attribute indicates that whether the tab has blocked the autoplay media.

MozReview-Commit-ID: 58U7DJSMtss

--HG--
extra : rebase_source : 762bfd2be06e21a964fd93076867b4f72a085adc
2017-06-29 04:48:38 -07:00
peter chang
6010728f95 Bug 1373836 - Generate fixed animation id per layer if animations exist, r=kats
In gecko, it's possible to generate lots of animation ids per layer if animations are changed.
It also introduces lots of memory allocation/deallocation in CompositorAnimationStorage(HashTable).
Generate fixed animations id per layer should help the memory usage and reduce CPU time for memory allocation.
MozReview-Commit-ID: 1hWUD5gNBJH

--HG--
extra : rebase_source : bd3fcfed5caab5d8edfbd29a8e505daf9e8ff95f
2017-06-28 09:31:10 -07:00
Blake Kaplan
34b92644fe Bug 1377001 - Tweak e10srollout for Beta 55 (see bug for details). r=Felipe
MozReview-Commit-ID: 7vyaBNkFdc5

--HG--
extra : rebase_source : f421e8965385b663ae9c447592f986194bf775c5
2017-06-28 17:10:47 -07:00
Mike Hommey
2160b355d0 Bug 1375859 - Build fennec with in-tree zlib. r=snorp
--HG--
extra : rebase_source : dc43403e5778a88897670475ace4832837cf9a6f
2017-06-28 04:00:41 +09:00
Mike Hommey
df3ab76c5a Bug 1375859 - Build zlib in libmozglue when the linker in enabled. r=mshal
The linker uses zlib. The linker is in mozglue, zlib is in libxul by
default. As a consequence, we made --with-system-zlib a requirement for
builds enabling the linker.

In the meanwhile, we added an option that makes zlib built in mozglue
for different needs, which, in fact, also allows to do that when the
linker is enabled.

So, allow to build without system zlib when the linker is enabled.

--HG--
extra : rebase_source : 873a87b17b306fc392018049e01cf794b63a6206
2017-06-28 03:57:36 +09:00
Mike Hommey
8022e9e91e Bug 1376704 - Remove szip support in the linker. r=snorp
Since bug 1307886, we don't actually use szip anymore, and don't even
have the option to package Fennec using it. We can thus remove the
support for loading them, as well as on demand linkage.

The latter might mean we can remove the segfault handler, but it's
unclear whether this is currently working around other issues with
registering signal handlers, so we'll leave that to a followup.

--HG--
extra : rebase_source : ec23cd4e78f259a70f6690adc8dfabb557e8f304
2017-06-28 15:47:31 +09:00
Mark Hammond
96c5fd77ca Bug 1363997 - Add support for tombstones to profileStorage. r=lchang,MattN
MozReview-Commit-ID: ladknQNOMb

--HG--
extra : rebase_source : 9eb9a498f5199972af267e5e7a105a4b846c13d4
2017-05-09 14:18:40 +10:00
Jan Beich
3fc9fd3377 Bug 1377093 - Enable mediapipeline tests on BSDs as well. r=dminor
MozReview-Commit-ID: GFE13Wlxl4z

--HG--
extra : rebase_source : 26960eff59621a466ea28655787585d8d442c308
2017-06-29 12:04:25 +00:00
Ryan VanderMeulen
62c4be7318 Merge m-c to autoland on a CLOSED TREE. a=merge
--HG--
extra : amend_source : 9ee3a51c51cf16e84b820518089b29c970d19695
2017-06-29 16:30:10 -04:00
Sebastian Hengst
ac92a71016 Backed out changeset 90036d4d378e (bug 17564) because gecko-side patch caused bustage on Windows. r=backout on a CLOSED TREE 2017-06-29 22:27:32 +02:00
Sebastian Hengst
6ff9f4b79d Backed out changeset 5487628d6625 (bug 1348489) for Windows bustage: no 'object' file generated at mozilla/ServoBindings.h(169). r=backout on a CLOSED TREE 2017-06-29 22:25:27 +02:00
Sebastian Hengst
2e57712bc8 Backed out changeset bbd783f7fd35 (bug 1373159) for failing own tests on Windows 8 x64. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 7c5cf101e45a4d8e1eb089df9c7bf720272ebbfe
2017-06-29 22:17:11 +02:00
Mark Banner
cd84e4a9db Bug 1377181 - PlacesUtils.getFolderContents should throw if a non-id is passed. r=mak
MozReview-Commit-ID: KknK4wTYBAc

--HG--
extra : rebase_source : f375a8c6fb3fae21515623ac2fcbc8b36b3fcc30
2017-06-29 11:28:11 -07:00
ffxbld
17ebac6811 No bug, Automated HPKP preload list update from host bld-linux64-spot-308 - a=hpkp-update 2017-06-29 08:52:25 -07:00
ffxbld
296804ce45 No bug, Automated HSTS preload list update from host bld-linux64-spot-308 - a=hsts-update 2017-06-29 08:52:22 -07:00
Carsten "Tomcat" Book
5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00