Commit Graph

491948 Commits

Author SHA1 Message Date
Manish Goregaokar
fe560e754d Bug 1303920 - Update stylo reftest list; r=heycam
MozReview-Commit-ID: 6fKFLbTL2gW

--HG--
extra : rebase_source : bf87e02799dc530b7d26b2040071ecd8213d36df
2016-09-19 20:20:03 +05:30
Andrew McCreight
51db16e7f5 Bug 1288909, part 4 - Use a strong reference to the set in ClassInfo2NativeSetMap. r=billm
Entries should end up getting cleared out from this table before the
value dies, so let's just make the reference strong so that any
mistakes will result in leaks and not use-after-frees.

Using smart pointer classes with PLDHashtable is a little
questionable, and I don't want to convert this one hash table to
nsTHashtable, so I use manual addref and release.

MozReview-Commit-ID: Kfg9veS6r11

--HG--
extra : rebase_source : 865ab48c2cf67546dd705cf79f8873efe695ac5c
2016-09-06 12:58:27 -07:00
Andrew McCreight
946ffa2384 Bug 1288909, part 3 - XPCWrappedNative:: and XPCWrappedNativeProto::Mark() don't do anything any more. r=billm
Also clean up some random comments for code that was deleted earlier.

MozReview-Commit-ID: 8JQx0FAH8wA

--HG--
extra : rebase_source : 614bda8caf0647ff0220986904ac6fb5fd4573a8
2016-08-05 13:56:14 -07:00
Andrew McCreight
93c15e825f Bug 1288909, part 2 - Remove a bunch of now-useless XPCNativeSet marking-related things. r=billm
MozReview-Commit-ID: 4YRn9Wx64a4

--HG--
extra : rebase_source : 7298dfd78142a1d544922fb5f78f7ca4a5562a6c
2016-07-27 16:38:42 -07:00
Andrew McCreight
bbaa5c3f54 Bug 1288909, part 1 - Implement refcounting of XPCNativeSet. r=billm
This patch is similar to bug 1288870.

Strong references:

- XPCCallContext::mSet: Like XPCNativeInterface, this only roots it
when |mState >= HAVE_NAME|, and again this only requires changing
SystemIsBeingShutDown().

- XPCWrappedNativeProto::mSet and XPCWrappedNative::mSet. These become
RefPtrs.

- stack: AutoMarkingNativeSetPtr become RefPtr<XPCNativeSet>. This
lets me eliminate some uses of AutoJSContext. This is the bulk of the
patch.

Weak references:

- mNativeSetMap. This reference gets cleared in the dtor. This
requires bug 1290239 to actually find the entry for removal.

- mClassInfo2NativeSetMap. The reference is in the value for this hash
table, and we don't have the key in the set dtor. Fortunately, the
only code that adds to this table is
XPCNativeSet::GetNewOrUsed(nsIClassInfo* classInfo), which in turn is
only called by GetNewOrUsed(nsIClassInfo* classInfo). This code
creates a new XPCWrappedNativeProto, which (with my patch) holds a
strong reference to the set that has been added to the table. This set
is never changed or released until the dtor for the proto, which calls
ClearCacheEntryForClassInfo(), removing the entry from the
hashtable. Thus, the lifetime of the set is always going to be longer
than the lifetime of the entry.

Other notes:

- Like XPCNativeInterface, this class uses placement |new| that
requires a special destruction function, which with my patch is hidden
away in the refcounting code.

- This patch delete a bunch of marking/sweeping code from
XPCJSRuntime::FinalizeCallback(), because the lifetimes are managed by
the refcounting now. Some of the marking code is left behind to be
cleaned up in a later patch.

- I didn't see any methods that had XPCNativeSet** outparams.

- MOZ_COUNT_{CTOR,DTOR}(XPCNativeSet) is not needed because it is now
refcounted.

MozReview-Commit-ID: 7oTorCwda1n

--HG--
extra : rebase_source : 0c477e18c405e4ea88393279cf8bea62c5b0f4c7
2016-07-27 16:38:30 -07:00
Xidorn Quan
bd57d227da Bug 888781 part 2 - Scale cursor with the window scale on Windows. r=jimm
MozReview-Commit-ID: C9LZpJF98mQ

--HG--
extra : rebase_source : 34791db2d6f511e07070ae5391106eb66d0ef2cd
2016-09-19 10:35:48 +10:00
Xidorn Quan
f9678375c6 Bug 888781 part 1 - Use cached default scale in GetDefaultScaleInternal of Windows. r=jimm
MozReview-Commit-ID: Ebm7h3h2mrg

--HG--
extra : rebase_source : e37ddbfca0eee4a7ba04121709f93048b0aab899
2016-09-19 10:35:12 +10:00
Wes Kocher
27ea60709c Merge m-c to autoland, a=merge 2016-09-19 15:57:12 -07:00
Wes Kocher
dbbbafc979 Merge fx-team to central, a=merge 2016-09-19 15:53:05 -07:00
Wes Kocher
da7b1c61a1 Merge inbound to central, a=merge 2016-09-19 15:51:39 -07:00
Wes Kocher
3034405e55 Merge autoland to central, a=merge 2016-09-19 15:34:31 -07:00
Bryce Van Dyk
00c9132cb6 Bug 1303646 - Escape backslashes when processing flake8 output. r=ahal
During process_line each line is loaded into JSON. As it stands it is possible
to attempt loads on lines containing single backslashes. This will fail the
load as these characters are invalid in JSON. This is particularly noticeable on
Windows, where all paths will contain these characters.

This changeset escapes any back slashes in the lines. It also adds logging to
the error case for the JSON loading, so failures aren't silently swallowed.

***
Fix issues brought up in review, silly mistakes in last changeset.

- Update log message upon encountering non JSON linter output that cannot be
  handled by json.loads.
- Correct typo: formate -> format.
- Correct replace string. Was using r'\\\\', which will evaluate to 3 slashes,
  now using '\\\\', which evaluates to 2. Opting not to use a raw string here
  because of the confusion over the final backslash interaction (final one still
  needs to be escaped even in a raw string).

MozReview-Commit-ID: Hfa0jSdnege

--HG--
extra : rebase_source : bd29d2437cf61f01df6d01a70ed651b49e33656e
2016-09-20 08:41:09 +12:00
Jared Wein
37f76f170c Bug 1303380 - Wrap the telemetry code in _firstWindowLoaded with a try/catch to allow startup and migration code to run to completion if there is an exception writing to Telemetry. r=Gijs
MozReview-Commit-ID: DPfq6lZ4fM3

--HG--
extra : rebase_source : 072713f1bf4dc30b681e57660b740a137e8ee7aa
2016-09-19 15:40:28 -04:00
Alexandre Poirot
cd8a9d4257 Bug 1303268 - Package acorn lib with same path as sources to fix hot reload. r=pbro
MozReview-Commit-ID: 32WuvqluuiU
2016-09-19 10:27:31 -07:00
Valentin Gosu
c0e2f75813 Bug 1239686 - Add method to set logging file at runtime r=nfroyd
* Only allows setting the log file at runtime if not set by an Env Var
* LogModulePrefWatcher will watch logging.config. prefs and call into Logging.cpp to set the log file, sync or timestamp
* Log files set by pref will have a -main.PID or -child.PID suffix
* If the logging.config.clear_on_startup pref is true, prefs will be reset upon restart.
MozReview-Commit-ID: CWJujX4jm2A
2016-09-19 17:39:47 +02:00
ffxbld
857d1ac980 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-09-19 09:45:57 -04:00
ffxbld
c746686fd1 No bug - Tagging mozilla-central fc69febcbf6c0dcc4b3dfc7a346d8d348798a65f with FIREFOX_AURORA_51_BASE a=release DONTBUILD CLOSED TREE 2016-09-19 09:43:48 -04:00
Carsten "Tomcat" Book
026552c22f merge mozilla-inbound to mozilla-central a=merge 2016-09-19 12:14:36 +02:00
Carsten "Tomcat" Book
f2e591caf1 merge fx-team to mozilla-central a=merge 2016-09-19 12:12:27 +02:00
David Anderson
842b64bbd1 Fix incorrect assert in VsyncBridgeChild. (bug 1303452, r=gwright) 2016-09-18 22:13:53 -07:00
Kershaw Chang
6c373070a1 Bug 1228474 - Support sending blob/arraybuffer for data channel. r=smaug 2016-09-17 19:42:00 -04:00
Thomas Wisniewski
e2d5d5425f Bug 1302937 - Remove -moz-mac-lion-theme. r=mstange 2016-09-16 14:42:19 -04:00
Julian Descottes
c1ba9ca20a Bug 1303043 - followup: add aHTMLTooltip in toolbox-window-process.xul;r=honza
MozReview-Commit-ID: q4Xz2IHzqE

--HG--
extra : rebase_source : 1bece069bffce82cb63acc0a6f94baa8a21a705e
2016-09-16 14:48:32 +02:00
Benjamin Bouvier
b56f71f878 Bug 1303122: Don't re-add an already seen bounds check if it's not redundant; r=luke
MozReview-Commit-ID: 4pthpbRTmpD

--HG--
extra : rebase_source : 97aba7dd3331da2b61524cf118c5e1933230e098
2016-09-15 21:35:13 +02:00
Benjamin Bouvier
8bcffcf0f7 Bug 1303122: Handle stack in codegen of LCompareAndBranchI on x64; r=luke
MozReview-Commit-ID: EV5JUmcNYeh

--HG--
extra : rebase_source : 85b3d15920ad2dc85bff70d4f94b9569c393ef47
2016-09-15 21:34:36 +02:00
Sebastian Hengst
e183b1ce5d Backed out changeset 6036b8acdab5 (bug 1284395) for asserting in ChromeUtils::IsOriginAttributesEqualIgnoringAddonId at nsDocShell.cpp:8007 for Windows debug builds. r=backout 2016-09-19 17:10:09 +02:00
Jeff Muizelaar
8abbf66ced Bug 1298403. Reorder fields to avoid clang-cl warning. 2016-09-19 10:04:54 -04:00
Andrea Marchesini
34c6a13c4c Bug 1303517 - File CTOR for chrome must be fully thread-safe, r=bz 2016-09-19 16:02:40 +02:00
Andrea Marchesini
5994c71158 Bug 1301251 - Handle GetSpec() failure in nsContentUtils::GetWrapperSafeScriptFilename(), r=smaug 2016-09-19 15:50:22 +02:00
Andi-Bogdan Postelnicu
cbfe4ec772 Bug 1282408 - Add ignore-initialization-check annotation to mCurrPi from CCGraphBuilder. r=mccr8
MozReview-Commit-ID: FFgmluIyvbs
2016-09-19 16:23:40 +03:00
MDTsai
f6383735e1 Bug 1301619 - Update Firefox android User Agent override. r=miket
Remove following domains from ua-update.json.in:
 auctions.yahoo.co.jp
 news.yahoo.co.jp
 shopping.yahoo.co.jp
 travel.yahoo.co.jp
 sports.yahoo.co.jp
 mixi.jp

Update bug number inline
2016-09-12 20:57:00 -04:00
Ryan VanderMeulen
237d452b75 Bug 1303651 - Update pdf.js to version 1.5.476. r=bdahl 2016-09-18 22:54:08 -04:00
Phil Ringnalda
96156f6fde Merge m-c to f-t 2016-09-18 18:45:52 -07:00
Phil Ringnalda
b588bc52de Backed out changeset 5643f6aebe25 (bug 1297549) for talos bustage 2016-09-18 11:19:00 -07:00
Phil Ringnalda
99be2eef50 Backed out changeset d1cfae63f790 (bug 1297549) for talos bustage 2016-09-18 11:18:17 -07:00
Phil Ringnalda
55e826a7d2 Backed out changeset 1970274b8890 (bug 1297549) for talos bustage 2016-09-18 11:12:59 -07:00
Phil Ringnalda
c58d0d6900 Merge m-i to m-c, a=merge 2016-09-17 13:44:34 -07:00
Phil Ringnalda
bb21cb513f Merge f-t to m-c, a=merge 2016-09-17 13:43:55 -07:00
Phil Ringnalda
b291eb22d1 Merge m-c to f-t 2016-09-17 12:04:09 -07:00
Phil Ringnalda
7405ef6df8 Merge m-c to autoland 2016-09-17 12:03:25 -07:00
Sebastian Hengst
d38f4f80e6 Backed out changeset e7da6eac37d3 (bug 1260552) for failing devtools tests on Linuxe 32 bit debug, e.g. browser_rules_completion-existing-property_01.js. r=backout a=backout
MozReview-Commit-ID: 2esBSWcAZeq
2016-09-17 20:09:00 +02:00
Sebastian Hengst
fc6186b0a6 Backed out changeset e8de82ab570d (bug 1260552)
MozReview-Commit-ID: B8xetPlNaN2
2016-09-17 20:07:57 +02:00
Sebastian Hengst
66668365c3 Backed out changeset c6564e0c0491 (bug 1260552)
MozReview-Commit-ID: LTRcVPywpho
2016-09-17 20:07:53 +02:00
Phil Ringnalda
ac5e0632ed Backed out changeset c0021d576b3a (bug 1120279) for multiple reftest failures 2016-09-17 09:54:25 -07:00
Rail Aliiev
a6b1bc61c2 Bug 1297519 - Generate multilocale Firefox snaps r=Callek, a=release DONTBUILD
MozReview-Commit-ID: AKkUK91s0Qo

--HG--
extra : rebase_source : 3c46abe5b36f8cecc06a5a198536a49b9d8fb370
2016-09-17 10:53:41 -04:00
ffxbld
653cac986e No bug, Automated HPKP preload list update from host bld-linux64-spot-593 - a=hpkp-update 2016-09-17 05:55:01 -07:00
ffxbld
873ec403ea No bug, Automated HSTS preload list update from host bld-linux64-spot-593 - a=hsts-update 2016-09-17 05:54:58 -07:00
Sebastian Hengst
05c340d60c Backed out changeset 752f33561e8f (bug 1302950) for failing browser-chrome test browser_ext_popup_background.js. r=backout 2016-09-17 14:49:50 +02:00
Kanika Narang
89af03b5df Bug 1302950 - Rename --panel-arrowcontent* CSS variables to --arrowpanel*. r=dao
--HG--
extra : rebase_source : d8dccc1fb8131ba27b2f2e22a5439d1a841ebdc4
2016-09-17 12:17:04 +02:00
Randell Jesup
94c164b386 Bug 1303419: Audio gUM allocate/free improvements and nullptr crash fix r=drno 2016-09-17 04:13:00 -04:00