Commit Graph

585335 Commits

Author SHA1 Message Date
Daisuke Akatsuka
163612bb18 Bug 1431573 - Part 10: Reflect to stop animation. r=gl
MozReview-Commit-ID: DZ4itacGnV4
2018-03-13 16:45:20 +09:00
Daisuke Akatsuka
0a164b4fc5 Bug 1431573 - Part 9: Implement toggle pause/resume function by key board. r=gl
MozReview-Commit-ID: 7p1Iu54gIR8
2018-03-13 16:45:20 +09:00
Daisuke Akatsuka
76fa83958c Bug 1431573 - Part 8: Implement progress bar in keyframes. r=gl
MozReview-Commit-ID: GE5Of8VklAJ
2018-03-13 16:45:20 +09:00
Daisuke Akatsuka
8e2ce21c24 Bug 1431573 - Part 7: Implement scrubber. r=gl
MozReview-Commit-ID: B6CeCDWawym
2018-03-13 16:45:19 +09:00
Daisuke Akatsuka
86f02f7e63 Bug 1431573 - Part 6: Make summary graph reflect to playback rate. r=gl
MozReview-Commit-ID: HFffrPAyJIh
2018-03-13 16:45:19 +09:00
Daisuke Akatsuka
52ef56fb66 Bug 1431573 - Part 5: Implement playback rate chooser. r=gl
MozReview-Commit-ID: KK5C6TBhA5X
2018-03-13 16:45:19 +09:00
Daisuke Akatsuka
162722dd52 Bug 1431573 - Part 4: Implement time label. r=gl
MozReview-Commit-ID: Cg6A4hNLXnO
2018-03-13 16:45:19 +09:00
Daisuke Akatsuka
49b1360194 Bug 1431573 - Part 3: Implement rewind button. r=gl
MozReview-Commit-ID: H7XX5rUIqZG
2018-03-13 16:45:18 +09:00
Daisuke Akatsuka
08f5cb2f12 Bug 1431573 - Part 2: Implement pause/resume button. r=gl
MozReview-Commit-ID: 9oEHKNl5rnU
2018-03-13 16:45:18 +09:00
Daisuke Akatsuka
0e0ffda971 Bug 1431573 - Part 1: Implement base of animation toolbar. r=gl
MozReview-Commit-ID: 29257Nvq6Z
2018-03-13 16:45:18 +09:00
Daisuke Akatsuka
3c2bb2dae4 Bug 1431573 - Part 0: Make functions in animation.js alphabetize. r=gl
MozReview-Commit-ID: BbTjVnc5qqv
2018-03-13 16:45:18 +09:00
Lars T Hansen
4ccb30da68 Bug 1441142 - Adapt wasm stubs for ARM64. r=bbouvier
As the SP is weird on ARM64 a number of adjustments must be made to
the stubs code.  On the one hand we never have to check for stack
alignment; on the other hand we don't get to use raw Push and Pop to
manipulate the stack, the word-aligned stack in the JIT ABI requires
some unusual adjustments, and the fact that the JIT treats x28 (the
PseudoStackPointer) as non-volatile requires it to be saved and
restored, or recomputed.

On ARM64 we do not have a pop-return-address-from-memory-and-return,
and this causes a slight problem for the interrupt stub code.  On MIPS
this is fixed by using HeapPtr as a temp for the return address and
then restoring HeapPtr in the branch delay slot, but ARM64 does not
have branch delay slots either.

For now I'm using x28 to hold the return address since Wasm code does
not use x28 (it is not allocatable even in wasm code at this point)
and the interrupt stub only runs when the machine is in the wasm
state.  If this turns out not to be workable we probably need to
reserve another register just for this.

--HG--
extra : rebase_source : bc6f809305fdb8713cd93170ec434ae1d8e64243
2018-02-12 17:42:45 +01:00
Lars T Hansen
a9e9de65d4 Bug 1441142 - Adapt wasm frame code for ARM64. r=bbouvier
Since the SP behaves unusually on ARM64 we get architecture-specific
code paths for the prologue, the epilogue, and the unwinding, and the
Frame must also be 16-byte aligned.

--HG--
extra : rebase_source : d6bca83621abd882d7cdf3be6a594d96ac2ec4d9
extra : source : fe253cc42e453dec1199b4284c84425ed6cacb1a
2018-01-22 11:13:14 +01:00
Lars T Hansen
178e4d5ab5 Bug 1439404 - Wasm baseline, fill in the porting APIs for ARM64. r=bbouvier
The only remarkable thing about this patch is that it sets up the
assembler to use the native SP, not the pseudo-SP used by the JS
baseline compiler.  The stubs and frame code (bug 1441142) also
assumes this.  Doing this, we generate fewer instructions and we gain
a register (though we do not yet use that register here because it is
used for interrupt handling, see the other bug).

--HG--
extra : rebase_source : 2f4a9dec5853470c7cf315b26b28893f420db29d
extra : intermediate-source : ac5df2f178cbf8b560efe9551ff9dc46e8e030e5
extra : source : 34bd5eae004e6aad8dafd288e4c4c1935d69976e
2017-11-27 09:07:04 +01:00
Lars T Hansen
d888162e16 Bug 1439404 - Wasm baseline, support the chunky ARM64 stack. r=bbouvier
ARM64 cannot allocate stack in word-sized increments (well it can, but
SP cannot be used to dereference it unless double-word aligned).  So
modify the stack abstraction to allocate the stack in larger, aligned
increments.

Here we allocate in 8-word increments, and we preallocate the first
8-word chunk when we enter the function, both since "empty stack" is
expected to be a common occurrence and because a short stack is
expected to be typical.  If we're lucky, few stack
allocations/deallocations will actually be necessary.  Future work
will try to get a grip on the best chunk size.

--HG--
extra : rebase_source : 9270d5257a4048dd789dab251aacf6727995d371
extra : intermediate-source : 6289887b1735ee87ec08db8df5bec686b91a48a0
extra : source : c6c50d230e354f9b6a2c5e7bdc2aad4a6e7da0ae
2017-11-17 13:17:29 +01:00
Lars T Hansen
652c98efbf Bug 1439404 - ARM64 simulator bugfix, add missing guard. r=bbouvier
--HG--
extra : rebase_source : 2486fda4c0c63814a7bce0b3609334261b7e0b6d
2018-03-06 16:29:42 +01:00
Lars T Hansen
5685d3b783 Bug 1439404 - Wasm on ARM64: gating. r=bbouvier
Make wasm::HasCompilerSupport() and wasm::BaselineCanCompile()
know that ARM64 compilation is supported.

--HG--
extra : rebase_source : b976cec924d270ff46bcfbb5a7f5e6bfc78ad546
extra : intermediate-source : d7c0cdc04e7858b764314708eb48ed7d40677baf
extra : source : 061bb6ba20742e0d9913a8fbfec6874e3110dfee
2017-11-28 10:05:36 +01:00
Lars T Hansen
7371a080ac Bug 1442583 - Properly initialize ARM64 icache flushing machinery. r=sstangl
--HG--
extra : rebase_source : 73b5921da1fa0a19d6072e35d09bd7b528bb6bfc
extra : intermediate-source : 19516efbbf6750ba04e11c7099586d5be2fe818f
extra : source : 4316cc82d6302edf839a4af6fcb815f0ffa9f65c
2018-03-05 09:55:28 +01:00
Lars T Hansen
fc25eb4380 Bug 1375074 - Save and restore non-volatile x28 on ARM64 for generated unboxed object constructor. r=sstangl
--HG--
extra : rebase_source : 4a2824b23cf7453d07c962123f780c0ff2fd5292
extra : source : dec6ab6522a4eb4b3c2defc5078b38ed904f3383
2018-02-28 13:57:52 +01:00
Tim Taubert
141cb3849c Bug 1444756 - Rewrite browser_webauthn_telemetry.js r=jcj
Reviewers: jcj

Reviewed By: jcj

Bug #: 1444756

Differential Revision: https://phabricator.services.mozilla.com/D703

--HG--
extra : amend_source : 991801bfb48a6e3262c1d2a77c8734defae2406d
2018-03-13 08:16:52 +01:00
sotaro
faeeb9d479 Bug 1440815 - Add check to TextureClient::EnableReadLock() r=nical 2018-03-13 15:39:56 +09:00
Kris Maglione
3272bfe2fb Bug 1444758: Follow-up: Disable test_ext_unload_frame for too frequent intermittent failures. r=bustage DONTBUILD
MozReview-Commit-ID: 7HrXu2mcnmW
2018-03-12 22:52:21 -07:00
Kris Maglione
ce1e1a3579 Bug 1444680: Follow-up: Re-enable test_ext_webRequest_suspend without trying to load remote content on Android. r=me
MozReview-Commit-ID: 6aubSpZKIiE

--HG--
extra : rebase_source : 9c6552a5fa27b31625b08a78bd02255fa91d4994
2018-03-12 22:39:59 -07:00
Andrea Marchesini
5784769019 Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
Gabriel Luong
eb68c68e8b Bug 1351685 - Remove the box model from the computed view. r=pbro 2018-03-12 12:25:15 -04:00
Kris Maglione
8fc40e9eec Bug 1444680: Follow-up: Disable test_ext_webRequest_suspend on Android because it crashes and the stacks have no symbols, so I have no idea why. r=bustage
MozReview-Commit-ID: 3vJV65NR7ho
2018-03-12 22:35:45 -07:00
Nicholas Nethercote
e16e5a3c78 Bug 1444276 - Refactor the telemetry pref setting code. r=glandium,chutten
This patch doesn't change the functionality, it just splits out the code into
separate functions that are easier to read.

MozReview-Commit-ID: Gx05YCxGgve

--HG--
extra : rebase_source : 3b7250cea630bebf35992bb69e651509c863c1c6
2018-03-09 16:39:31 +11:00
Nicholas Nethercote
439e258873 Bug 1438433 - Make network.predictor.cleaned-up a non-VarCache pref. r=hurley.
mCleanedUp is a VarCache variable, which mirrors the canonical value of the
network.predictor.cleaned-up pref. When the canonical pref value is modified,
e.g. by SetBool(), then mCleanedUp is also updated.

But the updating relationship is one-way -- if mCleanedUp is modified, the
canonical value of the pref is not updated. Such an inconsistency is bad! For
example, Predictor.cpp will use mCleanedUp's value, but about:config will show
the canonical value.

(For this reason, VarCache prefs are meant to be read-only outside of libpref.
Bug 1436655 will enforce this.)

This patch changes mCleanedUp so it's not a VarCache variable, avoiding the
mirroring issue.

MozReview-Commit-ID: LIG02gMkRjF

--HG--
extra : rebase_source : 273b2372ce718b0f346695a0dc96a189cd3ba233
2018-03-13 13:06:30 +11:00
Nicholas Nethercote
f87fadb9cb Bug 1438433 - Remove the network.predictor.redirect-likely-confidence pref. r=hurley.
It's unused.

MozReview-Commit-ID: DmHwJ3oW3Vq

--HG--
extra : rebase_source : 89d49a7d680e07383de82c2b4cb3a74a13f09c1e
2018-03-07 15:50:14 +11:00
Nicholas Nethercote
68124009fc Bug 1438678 - Pass early prefs via shared memory instead of the command line. r=bobowen,jld,glandium.
This patch replaces the large -intPrefs/-boolPrefs/-stringPrefs flags with
a short-lived, anonymous, shared memory segment that is used to pass the early
prefs.

Removing the bloat from the command line is nice, but more important is the
fact that this will let us pass more prefs at content process start-up, which
will allow us to remove the early/late prefs split (bug 1436911).

Although this mechanism is only used for prefs, it's conceivable that it could
be used for other data that must be received very early by children, and for
which the command line isn't ideal.

Notable details:

- Much of the patch deals with the various platform-specific ways of passing
  handles/fds to children.

  - Linux and Mac: we use a fixed fd (8) in combination with the new
    GeckoChildProcessHost::AddFdToRemap() function (which ensures the child
    won't close the fd).

  - Android: like Linux and Mac, but the handles get passed via "parcels" and
    we use the new SetPrefsFd() function instead of the fixed fd.

  - Windows: there is no need to duplicate the handle because Windows handles
    are system-wide. But we do use the new
    GeckoChildProcessHost::AddHandleToShare() function to add it to the list of
    inheritable handles. We also ensure that list is processed on all paths
    (MOZ_SANDBOX with sandbox, MOZ_SANDBOX without sandbox, non-MOZ_SANDBOX) so
    that the handles are marked as inheritable. The handle is passed via the
    -prefsHandle flag.

  The -prefsLen flag is used on all platforms to indicate the size of the
  shared memory segment.

- The patch also moves the serialization/deserialization of the prefs in/out of
  the shared memory into libpref, which is a better spot for it. (This means
  Preferences::MustSendToContentProcesses() can be removed.)

MozReview-Commit-ID: 8fREEBiYFvc

--HG--
extra : rebase_source : 7e4c8ebdbcd7d74d6bd2ab3c9e75a6a17dbd8dfe
2018-02-16 17:54:16 +11:00
Boris Zbarsky
ae49ae4bef Bug 1444586. Fix the signatures of some binding test methods. r=qdot
MozReview-Commit-ID: EeuowmJxwt
2018-03-13 00:59:24 -04:00
Boris Zbarsky
ba4b5f9979 Bug 1444919 part 2. Remove nsIDOMClipboardEvent. r=mystor
MozReview-Commit-ID: YmJ04OiqFo
2018-03-13 00:59:24 -04:00
Boris Zbarsky
99dc41ddbf Bug 1444919 part 1. Remove unused nsIDOMClipboardEvent methods. r=mystor
MozReview-Commit-ID: 39sy6Nnt1oy
2018-03-13 00:59:23 -04:00
Boris Zbarsky
aa3ff36ffc Bug 1444880. Stop including jsfriendapi.h in PrototypeList.h. r=mccr8
This way we don't include it in all the binding headers.  We only need
jsfriendapi.h for the static_asserts involving JSJitInfo, so we move those to
PrototypeList.cpp.

MozReview-Commit-ID: 7KOmbjwSBOD
2018-03-13 00:59:23 -04:00
Boris Zbarsky
5d37a40578 Bug 1444231. Fix QI implementation for FragmentOrElement. r=mccr8
MozReview-Commit-ID: 9mPO2ezk2Y7
2018-03-13 00:59:23 -04:00
sotaro
1c6ef8fcb9 Bug 1426588 - Add more check to CrossProcessCompositorBridgeParent::AllocPWebRenderBridgeParent() r=nical 2018-03-13 13:53:07 +09:00
Kris Maglione
1577f73f50 Bug 1444758: Follow-up: Fix some flakiness when tests are run in parallel. r=aswan
When we run tests in parallel (and probably occasionally when we don't), we
sometimes wind up getting a DOMContentLoaded event for about:blank before we
actually start loading the background page, which causes tests which rely on
the background page being loaded to fail.

This also fixes some noisy warnings from XPIProvider which make actual issues
more difficult to diagnose.

MozReview-Commit-ID: 4CiccISJ7Pt

--HG--
extra : rebase_source : 25356f5162b19cd28a6f8d004e04a85038ecff28
2018-03-11 20:00:08 -07:00
Kris Maglione
7a50065917 Bug 1444758: Part 21 - Migrate test_ext_eventpage_warning to xpcshell. r=aswan
MozReview-Commit-ID: I967vscL5DY

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_eventpage_warning.html => toolkit/components/extensions/test/xpcshell/test_ext_eventpage_warning.js
extra : rebase_source : f5658f67b62ef2fe68c0c37a0d48604dc67317d6
2018-03-11 18:40:37 -07:00
Kris Maglione
a203798d5e Bug 1444758: Part 20 - Remove test_ext_background_generated_url. r=aswan
MozReview-Commit-ID: 4e2YuVviLtR

--HG--
extra : rebase_source : 329773d3224e622dda56990444dfee17f57f5fea
2018-03-12 20:58:01 -07:00
Kris Maglione
91a459c5dd Bug 1444758: Part 19 - Migrate test_ext_permissions_xhr to xpcshell. r=aswan
MozReview-Commit-ID: 20I3dndJble

--HG--
rename : toolkit/components/extensions/test/mochitest/file_page_xhr.html => toolkit/components/extensions/test/xpcshell/data/file_page_xhr.html
rename : toolkit/components/extensions/test/mochitest/file_permission_xhr.html => toolkit/components/extensions/test/xpcshell/data/file_permission_xhr.html
rename : toolkit/components/extensions/test/mochitest/test_ext_permission_xhr.html => toolkit/components/extensions/test/xpcshell/test_ext_permission_xhr.js
extra : rebase_source : d84615e4ba018484ff25196ff979d514a9b34fa2
2018-03-11 17:45:11 -07:00
Kris Maglione
f4f031c604 Bug 1444758: Part 18 - Migrate test_ext_runtime_id to xpcshell. r=aswan
MozReview-Commit-ID: 1uRqvnLmzhZ

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_runtime_id.html => toolkit/components/extensions/test/xpcshell/test_ext_runtime_id.js
extra : rebase_source : 1c7a71e319080f868839181170767465d5d3ca25
2018-03-11 17:33:54 -07:00
Kris Maglione
6b24f4e592 Bug 1444758: Part 17 - Migrate test_ext_storage_tab to xpcshell. r=aswan
MozReview-Commit-ID: DVAPwVKpwqz

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_storage_tab.html => toolkit/components/extensions/test/xpcshell/test_ext_storage_tab.js
extra : rebase_source : 5f3857259f7793579d7faab98ca6c301cb797dd1
2018-03-11 17:29:58 -07:00
Kris Maglione
fdc129163f Bug 1444758: Part 16 - Migrate test_ext_storage_content to xpcshell. r=aswan
MozReview-Commit-ID: 4Q4CaL0Xoxe

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_storage_content.html => toolkit/components/extensions/test/xpcshell/test_ext_storage_content.js
extra : rebase_source : eef82408b227add55dc260b061d4e1fa122c5248
2018-03-11 17:17:23 -07:00
Kris Maglione
fd29ee8e44 Bug 1444758: Part 15 - Migrate test_ext_geturl to xpcshell. r=aswan
MozReview-Commit-ID: 8zQIBhA8iD6

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_geturl.html => toolkit/components/extensions/test/xpcshell/test_ext_geturl.js
extra : rebase_source : 781115801667e028e8f79d259e6891ec56aaf4f9
2018-03-11 17:04:45 -07:00
Kris Maglione
bcf9b58fd8 Bug 1444758: Part 14 - Migrate test_ext_unload_frame to xpcshell. r=aswan
MozReview-Commit-ID: 4lwqDQ8rI1K

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_unload_frame.html => toolkit/components/extensions/test/xpcshell/test_ext_unload_frame.js
extra : rebase_source : a8532e04efe0a973018db65a81c27a7648ab8559
2018-03-11 16:21:23 -07:00
Kris Maglione
ee41be28e5 Bug 1444758: Part 13 - Migrate test_ext_xhr_capabilities to xpcshell. r=aswan
MozReview-Commit-ID: 7sGwK8h3Wj4

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_xhr_capabilities.html => toolkit/components/extensions/test/xpcshell/test_ext_xhr_capabilities.js
extra : rebase_source : b6fe7bfc7786e81134cf15ec5c3dbbbee57cd9a3
2018-03-11 15:11:15 -07:00
Kris Maglione
345e57af57 Bug 1444758: Part 12c - Migrate test_ext_tab_teardown to xpcshell. r=aswan
MozReview-Commit-ID: 15Pxz3xmLyX

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_tab_teardown.html => toolkit/components/extensions/test/xpcshell/test_ext_tab_teardown.js
extra : rebase_source : 7bc44f2074fbd77d8c970d4f877fa677d578693a
2018-03-11 15:05:02 -07:00
Kris Maglione
27d8e1e8ab Bug 1444758: Part 12b - Migrate test_ext_background_teardown to xpcshell. r=aswan
MozReview-Commit-ID: HMyKZuX0yUG

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_background_teardown.html => toolkit/components/extensions/test/xpcshell/test_ext_background_teardown.js
extra : rebase_source : d1a58fa290900cd38e022e5fcc0c5de865b37132
2018-03-11 14:54:29 -07:00
Kris Maglione
4a2710a5c6 Bug 1444758: Part 12a - Migrate test_ext_contentscript_teardown to xpcshell. r=aswan
MozReview-Commit-ID: iySViq8K6c

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_contentscript_teardown.html => toolkit/components/extensions/test/xpcshell/test_ext_contentscript_teardown.js
extra : rebase_source : e42c2f67c69f2c75532fc16ae021c5c79b67ac53
2018-03-11 14:50:35 -07:00
Kris Maglione
b89fa866b5 Bug 1444758: Part 11 - Migrate test_ext_contentscript_exporthelpers to xpcshell. r=aswan
MozReview-Commit-ID: 3JImgSogspY

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_contentscript_exporthelpers.html => toolkit/components/extensions/test/xpcshell/test_ext_contentscript_exporthelpers.js
extra : rebase_source : d31dcdb70e9a447fdbda620c5d08595008d31dee
2018-03-11 14:37:41 -07:00