Commit Graph

578283 Commits

Author SHA1 Message Date
Andrea Marchesini
b0815a186e Bug 1425458 - Resource timing entries Workers - part 5 - dispatch resourcetimingbufferfull on workers, r=smaug 2018-01-24 17:17:32 +01:00
Andrea Marchesini
f306e5c7bb Bug 1425458 - Resource timing entries Workers - part 4 - exposing partial interface, r=smaug 2018-01-24 17:17:32 +01:00
Andrea Marchesini
0356adb210 Bug 1425458 - Resource timing entries Workers - part 3 - PerformanceStorageWorker, r=smaug 2018-01-24 17:17:32 +01:00
Andrea Marchesini
a8d07c4d56 Bug 1425458 - Resource timing entries Workers - part 2 - PerformanceTimingData, r=smaug 2018-01-24 17:17:31 +01:00
Andrea Marchesini
2f72a5e897 Bug 1425458 - Resource timing entries Workers - part 1 - PerformanceStorage on main-thread, r=smaug 2018-01-24 17:17:31 +01:00
Andrea Marchesini
c6da271117 Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Gurzau Raul
49c692983a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-25 13:02:27 +02:00
Csoregi Natalia
f9dc75cd65 Backed out changeset 640595d09e90 (bug 1419764) for reftest failures. a=backout 2018-01-25 12:23:02 +02:00
Csoregi Natalia
6f5bb993b2 Merge inbound to mozilla-central. a=merge 2018-01-25 12:14:20 +02:00
Aki Sasaki
f8ee472c6f Bug 1431397 - part2: fix release_eta when it's None p=aki r=jlorenzo
--HG--
extra : source : c349de6dc73428fb8b09ff9f416e581dcfe9e05a
extra : amend_source : 2bed7eb11b536b345fb8b30f2d47c85424024ae9
2018-01-24 12:27:34 -08:00
Michal Novotny
4188a83001 Bug 1412320 - CacheIndex::~CacheIndex is called outside CacheIndex::sLock. r=honzab
We must close cache iterators before shutting down CacheIndex because they hold reference to CacheIndex which causes that CacheIndex is not destroyed when it's dereferenced in CacheIndex::Shutdown.

--HG--
extra : amend_source : d74243f4eb4f4073ecc72ac9b331091456a91504
2018-01-18 07:14:00 -05:00
Tom Prince
3f845e43fa Bug 1429819: Allow using tooltool macOS SDK on all automation builds and all cross-builds. r=dminor
The original logic I wrote had the condition backwards.

MozReview-Commit-ID: IFIS8vZLgd4

--HG--
extra : rebase_source : 9f9baeb2f6284c551fb63f139d6f5942569890fd
2018-01-23 11:56:50 -07:00
Lars T Hansen
1ccda3f5bc Bug 1427130 - Add guard to SAB structured clone. r=jorendorff
This demotes a MOZ_RELEASE_ASSERT in the SAB case for SC write to a
run-time check.  The reason is that the clone policy must conform to
the clone scope, specifically, if the scope is DifferentProcess then
the policy must deny SAB.

The check was an assert previously because we mistakenly thought that
we controlled all the callers, but we do not - the TestingFunction
serialize() has a permissive API and instead of adding a lot of
complexity there we should change the assert to a run-time check.  The
code is more resilient as a result anyway.

Also document this quirk in the SC header file.

--HG--
extra : rebase_source : 4b632fe57bc9ebf3f38210b1ffad11fde57befa6
2018-01-15 11:31:35 +01:00
Lars T Hansen
2375c682a8 Bug 1431402 - Add 64bit-int-to-floating-point conversion to MacroAssembler.h. r=nbp
Including ARM64 implementations here because they are easy, and will be
needed by the Wasm baseline compiler anyway.

--HG--
extra : rebase_source : 5baab6faed8fcd4c5b661e40ac011da051573a0a
extra : intermediate-source : 6d7fa52e38fbd7f9d106b8bbacca51d3907bd4f7
extra : source : 724822b1b806b8f7ce6af0d3891be1e4a450ffe9
2018-01-16 14:16:52 +01:00
Lars T Hansen
ef546b990b Bug 1431402 - Add floating-point-to-64bit-int conversion to MacroAssembler.h. r=nbp
Including ARM64 stubs here because it simplifies code in the Wasm
baseline compiler, and doesn't hurt.

--HG--
extra : rebase_source : 58933b501248f2f53cb88117f93662f1ae3f9bfe
extra : source : f217aeea295bac03a323917292560ba1f491b0fb
2018-01-18 15:00:45 +01:00
Rob Wu
2cf5e43401 Bug 1215376 - fix linting and test issues from rebase r=mixedpuppy
- Work-around in browser_ext_menus_events.js for bug 1428213
- Fix indentation issues (eslint)
- Hide the "pageUrl" property for bookmark menu events
  (fixes test failure in test_bookmark_contextmenu).

MozReview-Commit-ID: 4YHJci0J7Rh

--HG--
extra : rebase_source : 3879e843bd2826fcd34dbd41708d570024e681e8
2018-01-05 01:13:04 +01:00
Dan Minor
2e81df0e1c Bug 1393119 - Remove webrtc gyp files; r=jesup
This removes the gyp files to build webrtc. It looks like part of Bug 1371485 is
to vendor gyp elsewhere in tree at which time we can complete cleaning this up.

MozReview-Commit-ID: 8MqatafniN5

--HG--
extra : rebase_source : 1cf7a41f0b8a1a95dc008f4a39536ee7e76027c4
2017-12-19 09:21:03 -05:00
Lars T Hansen
3dacab010f Bug 1430161 - Factor ARM disassembler, implement for ARM64. r=nbp
We extract the ARM disassembler bits and place them in
jit/shared/Disassembler-shared.{cpp,h}, and then clean them up and
generalize them.  The ARM assembler is slightly modified to deal with
this but the changes are local.

We then add code to the ARM64 assembler to drive the disassembler.
The structure is as for the ARM disassembler.

--HG--
extra : rebase_source : 7197ec8b3b8985005efb7522b6719140b2eac5e4
extra : source : aa8517d9efb1aa89f4661bdb095d5a0f526cb652
2017-12-15 13:10:23 -06:00
Lars T Hansen
3d9e46b95b Bug 1412238 - Implement WebAssembly.Global for immutables. r=luke
--HG--
extra : rebase_source : 95f927424504041f5e08cce8f233f2cbbc1a641f
2018-01-10 14:44:35 +01:00
Lars T Hansen
6b0c25d28f Bug 1432808 - Root a string in a test case. r=jonco
--HG--
extra : rebase_source : 56497b5581d188c41ee83660bcf1edd9ca7f57fc
2018-01-24 16:42:42 +01:00
Kris Maglione
aec63e140c Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE
MozReview-Commit-ID: 5ubE9EMQpZ9

--HG--
extra : histedit_source : df68d7595925c07d9d6e8bacc2c46e69556f479a%2C72b768b9825e20ede6603ead75f871c50dc041f7
2018-01-24 22:04:59 -08:00
Kris Maglione
f54fba48ac Bug 1431533: Follow-up: Fix no-single-arg-cu-import exemption to allow ChromeUtils. r=bustage CLOSED TREE
MozReview-Commit-ID: 8BmInGGSnU2

--HG--
extra : amend_source : 4c60590a513eca5c2b601cc4ef50a964e2a80fa1
2018-01-24 21:23:56 -08:00
Kris Maglione
b1f8945974 Bug 1431533: Part 5b - Fix ESLint errors left over after rewrite. r=florian
MozReview-Commit-ID: 7bVI1iM6hor

--HG--
extra : rebase_source : e6325fc83bd2fef811a4f1e97634ce5d32eddc9c
extra : absorb_source : 64645bed5d58034f4240ce4cd9eb932739c0c63d
extra : source : 0b97a30cadb1a96d3cafae6b79ef0d3ec26770cf
extra : histedit_source : 81a28bce375dd35da39c8a27b15cbf49c971c454
2018-01-18 16:27:26 -08:00
Kris Maglione
30b3a49bfd Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
MozReview-Commit-ID: 8V1ZT53ReiP

--HG--
extra : rebase_source : 12b5f8c3e125111db7382eb3d7d20a99fb2c35b3
extra : absorb_source : e99fa7f6eee02e7e6cadeb898c7fcf6dac9c902a
extra : histedit_source : d0dfc31fadc2b81d341c9d0cd1efec02923c003b
2018-01-24 15:48:47 -08:00
Kris Maglione
b78186b970 Bug 1431533: Part 4 - Add ESLint support for ChromeUtils import methods. r=florian
This adds support for detecting globals created by these helpers, as well as a
rule to enforce their use over the older XPConnect variants.

The latter rule also supports fixing code to use the newer variants, and will
be used in the next part to rewrite in-tree ESLint-enabled code that fails it.

MozReview-Commit-ID: 6Bgo6ohQA5j

--HG--
extra : rebase_source : feca0a0ed339420ea19faa1f6614e6253f0c840e
extra : absorb_source : d32d3d23fbd2c7dcae082375a1f9a61766b04b75
extra : histedit_source : 83cebb4f3eb66a79d38ee5412a5739d0c603425b
2018-01-18 12:53:01 -08:00
Kris Maglione
ded77ac796 Bug 1431533: Part 3 - Define ChromeUtils on chrome-privileged Sandboxes that need it. r=mixedpuppy
This is necessary before we enable the ESLint rule to require using
ChromeUtils for module imports rather than older methods.

MozReview-Commit-ID: mKqByUS0o2

--HG--
extra : rebase_source : d4b856aac7ff7eddc37cbf591c4e6522c45453e2
extra : histedit_source : 1ca2b6031e480fb44a15991241901224acc9e52f
2018-01-18 14:52:39 -08:00
Kris Maglione
68ac13e6b6 Bug 1431533: Part 2 - Add ChromeUtils.defineModuleGetter helper. r=bz
This helper makes it easy to lazily import a JavaScript module the first time
one of its exports is required. It is intended to replace
XPCOMUtils.defineLazyModuleGetter, which has similar functionality but is much
less efficient.

MozReview-Commit-ID: 2zxXYwrn3Dr

--HG--
extra : rebase_source : 998de7388ee03fdec0a0949b4e43bd9169dbb592
extra : histedit_source : 414d0ed1842b2270146d37b2788a56c682d3d695
2018-01-17 19:20:16 -08:00
Kris Maglione
be57cf30bb Bug 1431533: Part 1 - Cache module exports when a module is first loaded. r=mccr8
Looking up and copying exported properties each time a module is loaded is
fairly expensive at the best of times. It's even more expensive when we only
want to export a subset of symbols, which generally requires creating a
temporary object to hold the exports, or fetching them directly from the
returned global.

Aside from making the general case a bit faster, storing exports on an object
allows us to optimize lazy module imports by fetching imported symbols
directly from the exports object with very little additional overhead.

MozReview-Commit-ID: C9PGoXPNmsh

--HG--
extra : rebase_source : 6232cf7a52fd69ebeb8b6e39680646f287c272a8
extra : histedit_source : b223c73a6e9092491f4fb09f8c795f5aa4b43df3
2018-01-18 14:12:04 -08:00
David Parks
154fa0eb0a Bug 1430586 - Make sure the NPObjectData map still exists before use. r=jimm
The shutdown path has a way to free the sObjectMap before all plugin references to it have been executed.  It does this by scheduling a DeferNPObjectReleaseRunnable, then shutting down the plugin with PluginInstanceChild::Destroy.  This patch keeps the runnable from failing in that case.
2018-01-23 12:56:06 -08:00
Dan Minor
22eb0295df Bug 1393119 - Add generated files; r=jesup
MozReview-Commit-ID: 379Yq1cIQyD

--HG--
extra : rebase_source : b2293ce8dde69c772d99275635c4ea437eb515a8
2017-12-01 12:44:51 -05:00
Rob Wu
31f0051ebc Bug 1215376 - Test menu event order: onShown, onClicked, onHidden r=mixedpuppy
This test ensures that the menu events will always be fired in the
natural event order.

Two menus are tested:
- A context menu in the page.
- The tools menu.

MozReview-Commit-ID: 4sLyvgMYMtE

--HG--
extra : rebase_source : 9837661f034530b63c9cbbbb3104fb6367f513a8
2017-09-26 19:25:22 +02:00
Rob Wu
ea69a1a9b5 Bug 1215376 - Fire menus.onShown for every menu r=mixedpuppy
This commit lifts the restriction that onShown is only fired for
extensions with a visible menu item.

MozReview-Commit-ID: Ao4MgBoRWLR

--HG--
extra : rebase_source : c1acd1bcbfdcc6ef4bfaf199f3f016dde71ad2e5
2017-09-14 18:28:36 +02:00
Rob Wu
c9ac969282 Bug 1215376 - refactor: re-use onShown event generator for onClicked r=mixedpuppy
The logic in onClicked had some flaws:
- editable can be undefined instead of a boolean.
- linkText, linkUrl is set in non-link contexts.
- srcUrl is set even in non-media contexts.

This change does not add new tests, because test coverage for the
event data generator is provided by:
browser/components/extensions/test/browser/browser_ext_menus_events.js

There is one observable change here.
Previously, linkUrl and linkText would also be set for non-link context
if the selected text contained a URL. When this happens, then
nsContextMenu.js sets onPlainTextLink=true.
With this refactor, linkText and linkUrl are only set if the context is
"link" (onLink=true).

MozReview-Commit-ID: 2xf1F41bn0U

--HG--
extra : rebase_source : 698e0b9a2eb10f58d02e062f930753752aff9a54
2017-09-14 16:41:14 +02:00
Rob Wu
fc7e2d4ea9 Bug 1215376 - Add more contextual information to onShown r=mixedpuppy
- Adds most of the OnClickData properties to the onShown event parameter
  (except for menu-specific properties such as parentMenuId / checked).
- Add tests to verify the values of these properties.

MozReview-Commit-ID: 7705sJyAOIJ

--HG--
extra : rebase_source : 8948ea20129cfd1c34653a3cbe9b36cebd6fa00d
2017-09-14 16:37:57 +02:00
Rob Wu
582474fa51 Bug 1215376 - Always use old contextData upon refresh r=mixedpuppy
MozReview-Commit-ID: K1wfFCYpMqB

--HG--
extra : rebase_source : c82f9d01631e3d4160de0c49657dd7d8ca8c7a6a
2017-09-14 02:11:29 +02:00
Rob Wu
e86d6006f0 Bug 1215376 - Add menus.refresh to update menus r=mixedpuppy
Together with the previous patches that introduced menus.onShown,
this enabled extensions to update/remove menu items after a menu
has been shown.

At this point, it is not yet possible to add a menu item if an
extension has not shown a menu item before; this can be added later.

MozReview-Commit-ID: E0JrE9gd4gS

--HG--
extra : rebase_source : 0d21c369eb17b3a819603f27af8d9f9fccf5b783
2017-09-13 03:14:00 +02:00
Rob Wu
13cdced616 Bug 1215376 - Refactor gMenuBuilder.build r=mixedpuppy
Splot gMenuBuilder.build in three separate functions because the
individual functionality is needed later.

This is just moving some code around, nothing interesting to see.

MozReview-Commit-ID: Lo6QmLQBtO5

--HG--
extra : rebase_source : 6476a8834c378d6fa059fab1a5f2323f82688658
2017-09-12 02:34:41 +02:00
Rob Wu
a495a0b1c0 Bug 1215376 - Ensure that menu elements have a unique ID r=mixedpuppy
Previously, there was no guarantee for the uniqueness of the ID.
Now the ID is unique, and always set.

See https://bugzil.la/1358213#c6 and #c7 for examples of collisions.

MozReview-Commit-ID: 7CHP6tWFDUg

--HG--
extra : rebase_source : a585dcfd3a83eb590de9b69a02dba8b4bb1b0a0c
2017-09-11 01:01:41 +02:00
Rob Wu
e9a64ba705 Bug 1215376 - Add onShown and onHidden to contextMenus/menus API r=mixedpuppy
This commit adds the bare minimum to support the onShown and onHidden
methods in the contextMenus and menus API (plus tests).

The onShown event data may be extended in a separate commit, to make it
easier to see how the additional properties are reflected in the tests.

MozReview-Commit-ID: 20VJS2YLhTN

--HG--
extra : rebase_source : 1fe9985b2e5daa1be455e07ccf58e36e6d9fe508
2017-09-10 01:38:45 +02:00
Rob Wu
5926434b44 Bug 1215376 - allow itemToSelect to be null in menu closing test utility r=mixedpuppy
Most close*Menu methods in browser tests allow itemToSelect to be null.
Some did not.
Now they do (after this commit)

MozReview-Commit-ID: 2jSGAi2R3ZD

--HG--
extra : rebase_source : 897d4a66f5b1da8027180f85c5f5f5284734e860
2017-09-09 19:41:56 +02:00
Nicolas Chevobbe
2b915e93ba Bug 1425577 - Do not clone the state for each message of a batch; r=bgrins.
Here, in the case of a MESSAGES_ADD action, we clone the state before
calling addMessage. Then, in addMessage, we can mutate the cloned state.
This saves a lot of time since we don't have to re-create a new state
for each message.

MozReview-Commit-ID: GDBFBytKp5u

--HG--
extra : rebase_source : bfa8252b3dc2e191fa83cd2ad8cb60ab8bb77366
2018-01-24 11:21:40 +01:00
Makoto Kato
ded973c413 Bug 1432715 - Don't use NS_IMETHOD when method doesn't override. r=masayuki
Some methods in HTMLEditor uses NS_IMETHOD that doesn't override.  So we should
replace with nsresult to avoid virtual method.

MozReview-Commit-ID: 7LillLQNhlg

--HG--
extra : rebase_source : 02655cdcf9350caae1fd12dfeb038f82f74aa0f0
2018-01-25 13:31:01 +09:00
Gabriele Svelto
2981b63774 Bug 1432954 - Make |mach bootstrap| use the latest version of Oracle's JDK when bootstrapping Fennec on Gentoo; r=nalexander
MozReview-Commit-ID: 40xYQqpMy9O

--HG--
extra : rebase_source : 84b3f8832b5f393a25357354d94ec94c9d7e53ed
2018-01-24 22:56:36 +01:00
Manish Goregaokar
b3f6e35510 servo: Merge #19688 - Detect adjoining text fragments with no line break opportunity between them (from Manishearth:linebreak); r=mbrubeck
First attempt at https://github.com/servo/servo/issues/874

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c1307307575637f5ad360413c6a8395579ab511

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 99d0f27c586a537f25a5285ed4447fc09e5de430
2018-01-24 22:42:59 -06:00
Mark Hammond
4772b1fe2e Bug 1432277 - Replace iOS and Android link in Prefs for signed-in users with device actions. r=eoger
MozReview-Commit-ID: 1Lwe2g1bFpw

--HG--
extra : rebase_source : 6529420b5a2e1b4438f2472313abbc7e7dcf7dc1
2018-01-23 17:47:19 +11:00
Masayuki Nakano
298150d827 Bug 1432528 - part 4: Remove nsIEditorObserver::BeforeEditAction() and nsIEditorObserver::CancelEditAction() because nobody implements them r=m_kato
Now, nobody implements nsIEditorObserver::BeforeEditAction() and
nsIEditorObserver::CancelEditAction().  So, we can remove them.

MozReview-Commit-ID: DYppLayC5oT

--HG--
extra : rebase_source : 196e042234c65a43947a1aa90898901389a3a53b
2018-01-24 14:31:29 +09:00
Masayuki Nakano
7dab388aae Bug 1432528 - part 3: Make EditorBase store IMEContentObserver directly and make it not derived from nsIEditorObserver r=m_kato
Similar to TextInputListener, EditorBase should store IMEContentObserver
directly instead of via nsIEditorObserver.  Then,
EditorBase::NotifyEditorObservers() can call each method directly.
Additionally, we can make IMEContentObserver not derived from nsIEditorObserver.

MozReview-Commit-ID: cNKWJe5eUC

--HG--
extra : rebase_source : 4ed3b3b3180b8ee4a7c514ce1f89eba4dad64fbe
2018-01-24 14:10:18 +09:00
Masayuki Nakano
74aaf9525b Bug 1432528 - part 2: Make EditorBase treat TextInputListener directly and make TextInputListener not derived from nsIEditorObserver r=m_kato
Now, EditorBase can store TextInputListener directly instead of as
nsIEditorObserver.  And then, EditorBase can call its EditAction() method
directly.  Therefore, we can make TextInputListener not derived from
nsIEditorObserver.

MozReview-Commit-ID: 4qPnnvReLKy

--HG--
extra : rebase_source : cde47e245c9856abf696dbaf8e26d8e4d6d98d42
2018-01-24 12:50:01 +09:00
Masayuki Nakano
2239a68bf8 Bug 1432528 - part 1: Expose nsTextInputListener as mozilla::TextInputListener with independent header r=m_kato
EditorBase needs to access nsTextInputListener directly for saving runtime
cost of EditorBase::NotifyEditorObservers().  Therefore, it should be
exposed as "mozilla/TextInputLitener.h".

This patch rename it to mozilla::TextInputListener too.

MozReview-Commit-ID: 6PMzNWfTIHW

--HG--
rename : dom/html/nsTextEditorState.cpp => dom/html/TextInputListener.h
extra : rebase_source : 43c685a8f4c023c62bea26b3bf55b4f728ab438e
2018-01-24 11:44:34 +09:00
Masayuki Nakano
1b386a994e Bug 1422234 - part 2: Add wpt-tests to check if insertParagraph command splits or doesn't split inline elements at their edge r=m_kato
Spec bug: https://github.com/w3c/editing/issues/172

Inline elements in paragraph except anchor elements which have non-empty
href attribute should be created in new paragraph even when new ones are
empty because users must expect to keep writing some text with same style,
but for anchor elements with non-empty href attribute, users must not
expect to create same link in new paragraph in most cases.

MozReview-Commit-ID: KjpOzfv4F0j

--HG--
extra : rebase_source : ad50d4906dd8032a7f5c3a5efb0ce98942485743
2018-01-23 18:42:49 +09:00