Commit Graph

598744 Commits

Author SHA1 Message Date
Xidorn Quan
75e55a5d66 Bug 1465628 part 1 - Use a static table for property preferences. r=emilio
MozReview-Commit-ID: 7tCdZyAlZc0

--HG--
extra : rebase_source : 826eb91e0abecd02e89860b5ca6533b8b1463260
2018-05-31 13:49:25 +10:00
Dorel Luca
aa3639e57e Backed out changeset eadf17764c12 (bug 1454970) for XPCShell Failure on services/settings/test/unit/test_remote_settings_poll.js. CLOSED TREE 2018-06-05 02:32:32 +03:00
Edouard Oger
578b669682 Bug 1465638 - Do not send capabilities in FxA device registration. r=rfkelly
MozReview-Commit-ID: Cf5yk7nSDQE

--HG--
extra : rebase_source : a325f5ee260ec97b31873dda1d62bd668fc6c9a8
2018-05-31 11:38:06 -04:00
Nick Alexander
8bf87f6f0e Bug 1465836 - Make MOZ_AUTOMATION artifact builds pull host binaries (mar,mbsdiff). r=chmanchester
This populates $OBJDIR/dist/host/bin as part of |mach artifact install|.

Conceptually, the mar and mbsdiff utilities should be grouped (in the
same way that the test-related binaries are grouped).  However, it's
difficult to achieve that with the current structure of the code, so
this fetches mar and mbsdiff and produces $HASH-mar.processed.jar and
$HASH-mbsdiff.processed.jar files.

MozReview-Commit-ID: 3ks5xsUEKp5

--HG--
extra : rebase_source : 5fcf186decc95537cbaa90ffedb86774eab050d2
2018-05-31 11:12:26 -07:00
Xidorn Quan
718caa9bc0 Bug 1452204 part 2 - Use RtlCaptureContext to capture context for current thread. r=glandium
GetThreadContext() returns a context pointing to its own frame when it
gets called with the current thread handle. That frame can go away after
it returns. This patch instead uses RtlCaptureContext(), which captures
the context of its caller, when walking the current thread.

MozReview-Commit-ID: 3TAatDc9BLh

--HG--
extra : rebase_source : d5d88f0a9fa07da5b31f27c51c78ee2bfb527a8e
2018-06-04 19:23:27 +10:00
Xidorn Quan
7025ae7cbc Bug 1452204 part 1 - Correctly set walkCallingThread. r=glandium
GetCurrentThread() returns a pseudo handle, so comparing it against
the passed in argument doesn't make sense in most cases. This patch
changes it to using the thread id for comparison, which is guaranteed
to be unique in the whole lifetime of a thread.

MozReview-Commit-ID: 5TNAgLkcS6m

--HG--
extra : rebase_source : 0e72e8f6196c8079086ca697b9a121c6987ef43e
2018-06-04 19:17:32 +10:00
Tim Nguyen
7e7387d0a3 Bug 1457078 - Package default theme icon on Android. r=mcomella
MozReview-Commit-ID: 5ewrG6aszUj

--HG--
extra : rebase_source : 658e4bfa162061b5f85dfc654d22d30d840905d7
2018-06-04 22:33:25 +01:00
Carol Ng
0f895bd54e Bug 1417577 - Support locale direction changes in sync sidebar r=eoger,gandalf
MozReview-Commit-ID: 2pHSjoOhW9o

--HG--
extra : rebase_source : bf6c483413994c279fbcb762c3305f4dcf8f703a
2018-05-30 14:12:24 -04:00
Dorel Luca
39a52ad23c Backed out changeset fc040acc00af (bug 1457078) for build bustage. CLOSED TREE 2018-06-05 00:42:58 +03:00
Tim Nguyen
0bebd0bce3 Bug 1457078 - Package default theme icon on Android. r=mcomella
MozReview-Commit-ID: I2ojxjgMzk1

--HG--
extra : rebase_source : 3a9bc9de6b2417f576699a447771fbf768430184
2018-06-04 21:37:54 +01:00
Mathieu Leplatre
da2ef1eb06 Bug 1454970 - Decouple Remote Settings synchronization from initialization order r=glasserc,mgoodwin
MozReview-Commit-ID: LSwFflrFBMn

--HG--
extra : rebase_source : 2d761d915ce55432f073dcae59483826ce139ce1
2018-05-24 23:55:23 +02:00
Andrew McCreight
04611281f8 Bug 1351690, part 4 - Only load the stream converter when we try to view a pdf. r=bdahl
This inlines and simplifies the call to XPCOMUtils._getFactory,
because otherwise passing PdfStreamConverter appears to resolve it
immediately, loading the JSM. (The stream converter prototype does not
have a property _xpcom_factory, so there's no need for the check.)

Once that is done, we can just lazily load the stream converter JSM to
keep it from being loaded on startup.

This patch also checks that the stream converter is not loaded at
startup in the main process or the content process, and that PdfJs.jsm
is not loaded at startup in the content process. It needs to be loaded
in the main process to watch for some prefs.

MozReview-Commit-ID: EA0pSgs4AWH

--HG--
extra : rebase_source : ebc99d6dc5c00cd45192ec0580f887d8970d9dd0
2018-05-22 16:13:47 -07:00
Andrew McCreight
eba0033c3c Bug 1351690, part 3 - Move stream converter XPCOM registration constants into the registration file. r=bdahl
As with the last patch, the factory is only used for a single class,
so move the constants closer to where they are used. This will allow
us to register the stream converter without loading the stream
converter JSM.

MozReview-Commit-ID: DRKVtYQOs2J

--HG--
extra : rebase_source : 09b84838ee31e18db1c70d75d091d3c9f6d95297
2018-05-22 15:37:58 -07:00
Andrew McCreight
8e118c63ef Bug 1351690, part 2 - Specialize Factory into StreamConverterFactory. r=bdahl
Factory is only ever passed PdfStreamConverter, so specialize the
registration method and rename the class.  Also, classID2 is always
non-null for PdfStreamConverter, so drop the check.

MozReview-Commit-ID: Ts295QTmrm

--HG--
extra : rebase_source : 0a944fec22df5fb243fbfa65aa4eba91a63e2793
2018-05-22 15:28:45 -07:00
Andrew McCreight
468d88c5e9 Bug 1351690, part 1b - Don't unload the .jsm on unregister. r=bdahl
This patch fixes an intermittent failure in the pdf.js browser chrome
Mochitests, where it runs code inside PdfStreamConverter.jsm and gets
the error "TypeError: getBoolPref is not a function". getBoolPref is a
top-level function inside the JSM.

I couldn't reproduce this, but I suspect that defineModuleGetter would
run, and give us a reference to the PdfStreamConverter converter
object in the JSM. Eventually, we would unload this JSM, and somehow
clear out the top level scope. However, the registration JSM still had
its reference to the Converter object. Eventually we would try to
convert again, using the old JSM, but the scope was cleared out, so it
couldn't find the top level function in the converter JSM.

While I could probably work around this somehow by clearing the global
reference to the old JSM and setting up a new thunk, I think it is
better to simply not do the unload. Unloading a JSM is a weird
operation that we don't use much, and I think the only drawback for
not doing so is that a user that disables PDF.js will continue using a
little more memory during that session.

MozReview-Commit-ID: Lx3QZza5qCM

--HG--
extra : rebase_source : cbcf5bc285fa91b5631d388f7ac45fbabaccd34a
2018-06-01 11:16:38 -07:00
Andrew McCreight
ee4f1dff1a Bug 1351690, part 1 - Split out pdf.js stream registration into another jsm. r=bdahl
The goal of these patches is to load neither PdfJs.jsm nor
PdfStreamConverter.jsm in a content process unless the user is viewing
a PDF, to save memory.

This first patch creates a small stub JSM to do the stream
registration, and calls it directly in the content process, avoiding
one way we load PdfJs.jsm. The existing registration methods are kept
for the main process.

MozReview-Commit-ID: 5GH8tjHXfLb

--HG--
extra : rebase_source : f89b184bf96f2a55c1ee688538f2d5965ffdc660
2018-05-18 16:57:59 -07:00
Tim Nguyen
a3392b08cc Bug 1464719 - Remove obsolete code from LightweightThemeConsumer.jsm. r=jaws
MozReview-Commit-ID: C5NMohgxj70

--HG--
extra : rebase_source : 5f3040621cc0dd279cfefd689c756a8adbd6d88b
2018-05-28 01:31:20 +02:00
Rob Wood
ee248fc775 Bug 1460741 - Add 'speedometer' benchmark to raptor for firefox; r=jmaher
MozReview-Commit-ID: 6eTJhUJv3y9

--HG--
extra : rebase_source : 5649ab3a3f228e9fc6966bad254b9ff4d8b2f1bd
2018-05-15 14:50:48 -04:00
Rob Wood
b1aed740b1 Bug 1460741 - Taskcluster configs for raptor speedometer on firefox; r=jmaher
MozReview-Commit-ID: 2yOl5aoJvSu

--HG--
extra : rebase_source : 9ed4e5a697bb67b812960c1041b5c5bb49b42660
2018-05-15 14:47:12 -04:00
David Keeler
23798b7e5f bug 1465976 - remove all find*ByName APIs from PSM PKCS#11 module/slot/token interfaces r=fkiefer,jcj
Before this patch, we exposed a few interfaces that revolved around mapping a
name to a specific PKCS#11 module, slot, or token. These APIs were all either
problematic and/or unnecessary. In theory there could be two tokens in different
modules with the same name, so nsIPK11TokenDB.findTokenByName wasn't guaranteed
to return what the consumer expected it to. In general, these APIs were used by
front-end code to go from a handle on the specific object in question to a
string identifier and then back to a handle on the object. This was unnecessary
- we can just retain the original handle.

MozReview-Commit-ID: IbqLbV4wceA

--HG--
extra : rebase_source : 05d39afd6bed0aa5e7694e1c79baf836edc03214
2018-05-31 14:46:06 -07:00
Andrew Swan
3a90f6c376 Bug 1465537 Move browser startup promises to ExtensionParent.jsm r=zombie
Creating these promises from ext-toolkit.js was always dicey since that
script is loaded asynchronously during startup.  This should ensure that
the startup promises are reliably created early enough in startup.

MozReview-Commit-ID: A0V7iCOFNI8

--HG--
extra : rebase_source : 5c6562dc2c91f03ce1062a69080ba04d742fbc22
2018-06-04 10:51:56 -07:00
Dorel Luca
4ded9f31ea Merge mozilla-central to autoland 2018-06-04 21:14:46 +03:00
Dorel Luca
746fbfe0a7 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-04 21:11:34 +03:00
Dorel Luca
8a5e435163 Backed out changeset 2426ac9d78fe (bug 1464845) for Merge conflicts with bug 1465060 2018-06-04 21:10:36 +03:00
Tom Prince
e3b55ab1ce Bug 1464523: [release] Simplify resolve_keyed_by logic in update-verify-config; r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D1490
2018-06-04 17:49:23 +00:00
Alex Gaynor
3dc2139816 Bug 1465860 - Don't crash in JS IPC on invalid object id. r=evilpie
Instead, return an error up to the caller, who can return an IPC error, which
will kill the child. This is significantly friendlier to fuzzing.

MozReview-Commit-ID: C67xSqUeN1i
2018-05-31 16:29:03 -04:00
Emilio Cobos Álvarez
ea25d05826 Bug 1464363: Remove IMAGE_GOTINITIALREFLOW. r=dholbert
The methods where it's used don't run from reflow (they're image notifications
that run off runnables and such), so should be an idempotent change.

MozReview-Commit-ID: LdmSOcKDdw1

--HG--
extra : rebase_source : 273ed355a9bfb8aefdf92a85802a47ac39373d19
2018-05-25 12:23:06 +02:00
Brad Werth
07a30fbde5 Bug 1461046 Part 8: Update reftest fuzzy expectations for a seemingly-unrelated Android test. r=dholbert
MozReview-Commit-ID: EUTaODevcTm

--HG--
extra : rebase_source : 0ed0fef5b5307124ab8a14a9d1c63b79c35e9961
2018-06-04 08:52:13 -07:00
Brad Werth
362c917ca0 Bug 1461046 Part 7: Mark an existing WPT reftest that checks empty float areas as failing. r=dholbert
MozReview-Commit-ID: CttOvLg1TVK

--HG--
extra : rebase_source : 08203e811772a3e8f4dbb514269438abc3c72b08
2018-05-25 11:35:54 -07:00
Brad Werth
5754fc7fd6 Bug 1461046 Part 6: Remove submitted WPT reftests that checked for empty float areas (which are no longer empty), or relied on ignoring horizontal spurs in polygons. r=dholbert
MozReview-Commit-ID: 4fADKtvcZVp

--HG--
extra : rebase_source : 71673a33ebe6ce0541a23cf783af55ee92988a3a
2018-05-25 10:44:40 -07:00
Alex Gaynor
d71b5b9238 Bug 1392739 - Add test for faulty nsStandardURL deserialization. r=mayhemer 2018-05-23 22:25:08 +02:00
Valentin Gosu
300188571e Bug 1392739 - Use CheckedInt in nsStandardURL::Deserialize(). r=mayhemer 2018-06-04 13:57:51 +02:00
Brad Werth
804da7c86f Bug 1461046 Part 5: Add reftests that verify empty shapes still contribute their edges to float areas. r=dholbert
MozReview-Commit-ID: 9YiQoNZSG5i

--HG--
extra : rebase_source : 4eda372691788ea191adb7df84ef3ed0b20eb6bc
2018-05-23 12:46:54 -07:00
Samuel Thibault
73a24b5b8a Bug 1319273 - Accessible: Make TextBounds return rect of whole frame if content is empty. r=surkov 2018-05-23 17:02:33 +02:00
André Bargull
350c65991b Bug 1464845 - Remove js_strdup and JS_strdup. r=Waldo 2018-06-04 01:30:51 -07:00
Christoph Kerschbaumer
19be815a52 Bug 1466508 - Fix race condition within wpt test policy-inherited-correctly-by-plznavigate.html. r=jgraham 2018-06-04 14:09:00 +02:00
Ryan VanderMeulen
9e8871e42e Bug 1466519 - Update pdf.js to version 2.0.536. r=bdahl
--HG--
extra : rebase_source : 0762d9b984fcb6f7da4a94ea5135b74ae53ecf04
extra : amend_source : 5874d964ce4ce556ba1c0a909fa6bade451f0b4b
2018-06-04 09:04:46 -04:00
Emilio Cobos Álvarez
29985b3f24 Bug 1449243: Remove invalid assertion. r=me
We can look at stale styles while trying to figure out if we need any
invalidation, and that's ok.

MozReview-Commit-ID: 4mBIFNm9qJv
2018-06-04 14:51:47 +02:00
Ryan VanderMeulen
232bf51514 Bug 1465017 - Revert commit b5415b0216c7 (bug 1452604) for broken "See Details" button on the blocked site page.
--HG--
extra : amend_source : f36dc86b40f085019bf80b8700d425aee7fe9832
2018-06-04 08:48:28 -04:00
Jon Coppeard
7309d3041a Bug 1461619 - Don't update atoms marking bitmaps in parallel due to potential races r=sfink 2018-06-04 11:19:06 +01:00
Jon Coppeard
ab5bff083b Bug 1461619 - Rename some atom marking methods to make their purpose cleare r=sfink 2018-06-04 11:18:27 +01:00
Jon Coppeard
977f50a7e7 Bug 1462693 - Update JSScript and LazyScript in separate phases in compacting GC r=sfink 2018-06-04 11:18:04 +01:00
Brad Werth
84a01ca307 Bug 1461046 Part 4: Change PolygonShapeInfo to tolerate polygons with only 1 or 2 vertices. r=dholbert
MozReview-Commit-ID: ICcIUulgSCW

--HG--
extra : rebase_source : 27cd61f9e3e6d109258c64bda81888f931a67193
2018-05-22 15:54:21 -07:00
Brad Werth
8e6d3f8c97 Bug 1461046 Part 3: Change RoundedBoxShapeInfo to tolerate empty rects. r=dholbert
MozReview-Commit-ID: FNQwXdeqfua

--HG--
extra : rebase_source : 31b9a1174f1d2203b98e0b11dd9e0863863b63f5
2018-05-18 17:38:41 -07:00
Brad Werth
3e96197e07 Bug 1461046 Part 2: Change ShapeUtils::ComputeInsetRect to return the inverse of a rect deflated more than its bounds can tolerate. r=dholbert
MozReview-Commit-ID: IScKyqzjMoy

--HG--
extra : rebase_source : 7f9e2c3b37992ade445ae803c46413abbff4c164
2018-05-18 17:51:19 -07:00
Brad Werth
16c93065dd Bug 1461046 Part 1: Change EllipseShapeInfo to tolerate empty circles/ellipses and treat them as singular points/lines (possibly expanded by shape-margin). r=dholbert
MozReview-Commit-ID: 69VQiRjhtqA

--HG--
extra : rebase_source : 21e2d1ede48758c664749c725c531f1e64aa6d18
2018-05-18 17:13:22 -07:00
Simon Fraser
3539c7c2ef Bug 1466552 Automated file updates for beta/release r=RyanVM
Enable blocklist.xml (and remote-settings, per bug 1451040) for release, and all updates for beta.

Differential Revision: https://phabricator.services.mozilla.com/D1529
2018-06-04 15:30:57 +00:00
Martin Robinson
46bd5d1cf4 Bug 1465058 - Update for API change in WR PR 2756. r=kats
MozReview-Commit-ID: 6Vg0bTpBYVh

--HG--
extra : rebase_source : f9b4f5cdb26d268d7804afb827c7710a05bc56d9
2018-05-16 16:47:08 +02:00
Kartikaya Gupta
ea2d83d47e Bug 1465058 - Update reftest annotations for WR PR 2784. r=Gankro
MozReview-Commit-ID: F3YX2m6Z2UP

--HG--
extra : rebase_source : 3f1c36583a760a7c420e9728247830b8cbead538
2018-06-04 10:54:03 -04:00
Kartikaya Gupta
0ffc26692e Bug 1465058 - Update webrender to commit 8e697f8cb1f1aab2e5f6b9b903eb7191340b10c5. r=Gankro
MozReview-Commit-ID: BakJj8upl1A

--HG--
extra : rebase_source : 977723b4c807e1ac4887c957ff72a2628b2367c1
2018-06-04 10:53:49 -04:00