Граф коммитов

609456 Коммитов

Автор SHA1 Сообщение Дата
Jan Henning 2894a34f2b Bug 1414084 - Part 16 - Add some tests for the handling of PageActions. r=Grisha
MozReview-Commit-ID: EUl19vyK3Ra

--HG--
extra : rebase_source : d1fb530dc5e895173eb0a6f5c5aaad7a26ca7cf9
2018-03-19 20:27:01 +01:00
Jan Henning d08db48c78 Bug 1414084 - Part 15 - Correctly remove already resolved PageActions, too. r=Grisha
When a PageActions:Remove message arrives and we cannot simply forward it, we
need to remove not just pending PageActions:Add messages, but also any already
present PageActions objects that a former PageActionLayout had handed to us.

MozReview-Commit-ID: 3jnGsmMuVfa

--HG--
extra : rebase_source : 7ca27912f06dfcc82a73faa644bc4583c381bec6
2018-03-03 18:11:57 +01:00
Jan Henning 6b91a61d39 Bug 1414084 - Part 14 - Rename isPwaAdded for more clarity. r=Grisha
Despite its name and the original purpose for which it was added, that function
generically checks for duplicates among all PageActions, not just the PWA badge.

MozReview-Commit-ID: Ae6FsLb9F3S

--HG--
extra : rebase_source : 0ea24add9f941b21b66b4fd216833a46bfa2a5ed
2018-03-18 20:39:00 +01:00
Jan Henning f47eb731da Bug 1414084 - Part 13 - Cache PageActions. r=Grisha
Since converting a PageAction message into an actual PageAction object also en-
tails parsing the image data URL into a drawable, we leave that task to the
PageActionLayout.

This means that the PageAction cache needs to operate slightly differently than
the MenuItem cache. First, we store all PageAction BundleEvent messages that
arrive while no PageActionLayout is ready and then forward them en masse when
one becomes available. Secondly, if the PageActionLayout is going away again,
we then also take a list of already parsed PageAction objects for safekeeping.

MozReview-Commit-ID: AcPPONXqe46

--HG--
extra : rebase_source : 696df760f28f9d126858920b544585e4c86219ff
2018-02-26 21:50:50 +01:00
Jan Henning a6932b97b2 Bug 1414084 - Part 12 - Add some tests for the processing of Menu messages. r=Grisha
MozReview-Commit-ID: D8Aujo1PgIk

--HG--
extra : rebase_source : 1dd4fa0909e7b1a036a739a886043fe627740c56
2018-03-19 20:06:32 +01:00
Jan Henning a3950adb71 Bug 1414084 - Part 11 - Use a Map for the MenuItemInfo list. r=Grisha
Since all related EventDispatcher messages use UUIDs, it makes sense to store
our MenuItemInfos in a Map, so we can access them directly by UUID instead of
having to iterate over them until we've found the desired one.

Since we want to preserve the order in which MenuItemInfos were added, we use a
LinkedHashMap.

MozReview-Commit-ID: BEtJ59tX59m

--HG--
extra : rebase_source : 8012b11c1e36b774972a0cc4a6f748ccaace7533
2018-03-18 18:07:16 +01:00
Jan Henning 5671c8488b Bug 1414084 - Part 10 - Init MenuItemInfo list right from the start. r=Grisha
The small savings in initialising this on demand the first time a menu item is
added, are not worth the additional complexity in null checks and the like.

MozReview-Commit-ID: Lcz09Ds8NxJ

--HG--
extra : rebase_source : 379789298e0d60d353426c665a8f89c551ceaa66
2018-03-18 17:47:33 +01:00
Jan Henning 24822c48c7 Bug 1414084 - Part 9 - Move add-on menu item cache out of BrowserApp. r=Grisha
Bug 832990 solved the issue of us losing the menu item cache if BrowserApp was
destroyed, however the issue remains that we'll miss any Menu:... messages that
are sent while BrowserApp doesn't exist, e.g. if Gecko is initially loaded
through a GeckoView-based activity.

Therefore we now move the menu item cache and the listener for those messages
into a separate class, whose lifetime better matches that of Gecko.

Apart from any necessary changes, we move the existing code as is. The only
additional change is that we make addAddonMenuItemToMenu() static, because we
can.

MozReview-Commit-ID: BJleonLnjmo

--HG--
extra : rebase_source : e36d954488cc44d250948edcbb8a1964e24ddab7
2018-02-25 22:22:37 +01:00
Jan Henning 98cf3ace3e Bug 1414084 - Part 8 - Unify menu item EventDispatcher messages. r=Grisha
As a final step, these can be merged as well. The same reasoning as in the
previous patch applies with regards to additional functionality that isn't
(yet) used by webextensions.

MozReview-Commit-ID: Ezx2mQY0s85

--HG--
extra : rebase_source : 955462126312241ca860e8184507bd7ed4955450
2018-03-18 16:42:57 +01:00
Jan Henning dffaacd92c Bug 1414084 - Part 7 - Use one set of functions for managing MenuItems in the UI. r=Grisha
The original add-on functions have some additional capabilities regarding e.g.
checkboxes, disabling the menu, etc. that right now aren't required for
Webextensions (yet?), but in that case they will simply not be used - in any
case BrowserActions.jsm controls what functionality is actually exposed to
add-ons.

MozReview-Commit-ID: DPT8gV2gb6q

--HG--
extra : rebase_source : 09a0a52c374c1c423002e9dcb5edc0c7e2730bbd
2018-03-18 14:17:03 +01:00
Jan Henning 6a1b2755c2 Bug 1414084 - Part 6 - Use only one list to store menu items added from Gecko. r=Grisha
Now that the UI code for handling both the old NativeWindow API and Web-
extensions is more or less the same and both are using the same MenuItemInfo
class, there's no longer any real need to keep items added through the two APIs
in separate lists - in fact doing so makes it harder to preserve the ordering
of menu items if the activity and its menu are destroyed and need to be re-
created later on from the stored lists of MenuItemInfos.

MozReview-Commit-ID: KlJdvO9WhhY

--HG--
extra : rebase_source : 2d28262f72acaa0e0e6966f8309ef9569d3f6314
2018-03-23 19:58:18 +01:00
Jan Henning ca67107246 Bug 1414084 - Part 5 - Unify menu click event handling. r=Grisha
Now that both Webextensions and the NativeWindow API manage their onClick call-
back handling by UUID, we can start using the same EventDispatcher message for
both.

MozReview-Commit-ID: J3RRXrwPdTI

--HG--
extra : rebase_source : 7f136d70944641391e57a76efdec6546fe74cfd0
2018-03-18 14:24:15 +01:00
Jan Henning c05debbbe2 Bug 1414084 - Part 4 - Move menu item ID generation into the UI. r=Grisha
Since the NativeWindow API now only uses UUIDs as well when dealing with its
consumers, we can leave generation of the menu to the Android UI code of
Firefox.

MozReview-Commit-ID: 1qDLDnePfFE

--HG--
extra : rebase_source : d1320f92ebd4be0237d3da554a3f8182a0e72d4e
2018-03-18 15:43:27 +01:00
Jan Henning c0e12b4358 Bug 1414084 - Part 3 - Store NativeWindow menu callbacks by UUID. r=Grisha
MozReview-Commit-ID: 7nEhAUxOIsW

--HG--
extra : rebase_source : ed74e1df2ac1d86969c6fafcd22ac10b70b9836c
2018-03-18 13:33:42 +01:00
Jan Henning 951c14aa26 Bug 1414084 - Part 2 - Use UUIDs for the NativeWindow menu API, too. r=Grisha
At the moment, the code for handling of JS-created main menu items is more or
less duplicated between the old NativeWindow API and Webextensions, with the
only real difference being that the former communicates directly via menu item
IDs, while the latter uses UUIDs for messaging between Gecko and the UI.

By switching the NativeWindow API to using UUIDs as well, we will be able to
start unifying this code again.
As for backward compatibility
- the return value of NativeWindow.menu.add is valid for the current session
  only, so no migration is necessary
- the return value of NativeWindow.menu add was already effectively only an
  opaque value which only had real meaning for subsequent calls to menu.add,
  menu.update and menu.remove, so it shouldn't really matter whether we return
  a plain numeric ID or an UUID in string form
- old-style add-ons are now unsupported for better or for worse and our one in-
  tree caller won't have any problems with this change

MozReview-Commit-ID: HdRNhrx1pu7

--HG--
extra : rebase_source : 33ce855ac2f2f65fe20cb5047de3b8cbbcd094d9
2018-03-18 13:26:16 +01:00
Jan Henning 0e2c70d5ad Bug 1414084 - Part 1 - No longer track MenuItemInfo "added" data. r=Grisha
We no longer use that value anywhere, so we can just stop keeping track of it.

MozReview-Commit-ID: D1IgX1t8SKI

--HG--
extra : rebase_source : 51288c866bdd078aed629590ad39b2f8d524d044
2018-03-18 13:49:31 +01:00
Jan Henning 2939a122ab Bug 1414084 - Part 0 - Cleanups. r=Grisha
MozReview-Commit-ID: B3ZGN2X8JXH

--HG--
extra : rebase_source : 7d08937ab056a3a4733bd364e3518c1528146d37
2018-02-25 20:53:01 +01:00
Brian Grinstead 7eeeeed53f Bug 1481882 - Load customElements.js in chrome XHTML documents;r=mossop
This provides support for using XUL elements in  chrome XHTML documents,
including the experimental xhtml browser window (browser.xhtml).

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

--HG--
extra : moz-landing-system : lando
2018-08-16 16:26:16 +00:00
Dave Townsend 35b08ddffc Bug 1483910: Clear seenTabIcon on pagehide so subsequent loads attempt to load the root favicon. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D3534

--HG--
extra : moz-landing-system : lando
2018-08-16 17:29:57 +00:00
Chris Manchester 0ba415cc98 Bug 1482299 - Replace libxul.mk with OBJDIR_PP_FILES. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D3371

--HG--
extra : moz-landing-system : lando
2018-08-15 14:04:00 +00:00
Mathieu Leplatre ac50fda66b Bug 1483831 - Add a localFields option r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D3524

--HG--
extra : moz-landing-system : lando
2018-08-16 16:50:07 +00:00
Tom Prince bd8b928c50 No bug: [mozharness] Remove no-op code block in repackage code. r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D3528

--HG--
extra : moz-landing-system : lando
2018-08-16 16:59:59 +00:00
Matthew Noorenberghe 4249cc5a94 Bug 1483401 - Fix scrollable area for the payment request page-body. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D3374

--HG--
extra : moz-landing-system : lando
2018-08-16 16:33:05 +00:00
Johan Lorenzo d82f70b45e Bug 1470942 - part 2: Upload geckoview to maven repository via beetmover r=mtabara
Depends on D2420

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

--HG--
extra : moz-landing-system : lando
2018-08-16 16:23:15 +00:00
Johan Lorenzo 86d185ecdd Bug 1470942 - part 1: Craft zip archive of maven artifacts r=jchen
Same as https://phabricator.services.mozilla.com/D2031 but keeps the old maven artifacts exposed.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 15:45:13 +00:00
Yaron Tausky 179ccc53e6 Bug 1455078: Refactor test to run in code in page r=ochameau,asuth
This test runs code in the frame script, which has system privileges. Even
though it trips the security tests as it is, it's not clear whether that
should be the case or not. By running the code in the page itself, the
expected behavior is governed by the service workers spec and is thus well
defined.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 16:18:30 +00:00
Dale Harvey 4653e8bb0b Bug 1477273 - Followup to ensure correct pref in test
MozReview-Commit-ID: BPXRlxdpRYf
2018-08-16 07:58:00 +03:00
Daniel Holbert 0a2578eafa Bug 1483527: Change fieldset block-end & inline-axis padding to match other browsers. r=emilio
This mirrors the web-platform-tests change at
6058e914c1

According to that commit, WebKit/Chromium/EdgeHTML all have the behavior
that we're switching to here.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:54:39 +00:00
Perry Jiang 7e5a46ddbc Bug 1434913 - Make FetchEvent.clientId non-nullable r=mrbkap
Make FetchEvent.clientId non-nullable

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:20:41 +00:00
Byron Campen [:bwc] f2c9b6dc47 Bug 1465617: (Speculative fix because STR are missing) Don't crash if no video send codecs are negotiated. r=mjf
This _might_ be the fix for the nullptr crash in bug 1465617.

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

--HG--
extra : moz-landing-system : lando
2018-08-14 14:35:50 +00:00
yulia 9334e84033 Bug 1447494 - remove all instances of commandline/helpers; r=ochameau
Removed remaining imports of commandline helpers, as they are no longer used anywhere

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:06:07 +00:00
Dale Harvey 2de58add22 Bug 1477273 - Allow autoplay-media permission to be temporarily allowed. r=johannh
MozReview-Commit-ID: JlnH2f1KW3U

--HG--
extra : rebase_source : 13fb179fd85a47f1842b7715e82e92a30c4c4784
2018-08-03 16:00:55 +01:00
Henri Sivonen 3a52652295 Bug 1349528 - Use encoding_rs for normalizing USVString. r=smaug
MozReview-Commit-ID: 9uG6j8UdfKR

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

--HG--
extra : moz-landing-system : lando
2018-08-16 10:15:07 +00:00
Dan Minor 7aa019d263 Bug 1483511 - Only build TestAudioDeviceEnumerator.cpp if webrtc is enabled r=dmajor,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D3416

--HG--
extra : moz-landing-system : lando
2018-08-15 20:22:30 +00:00
Andrew Halberstadt 045275097f Bug 1481245 - [jsshell-bench] Run spidermonkey benchmarks on integration branches, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D3439

--HG--
extra : moz-landing-system : lando
2018-08-15 21:02:11 +00:00
ffxbld 6107a2a1fc No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D3490

--HG--
extra : moz-landing-system : lando
2018-08-16 10:57:34 +00:00
Emilio Cobos Álvarez e0013844c5 No bug - Add some spec links to media queries. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D3489

--HG--
extra : moz-landing-system : lando
2018-08-16 10:05:52 +00:00
James Teh ab0ffcedc2 Bug 1482317: When the remote control icon is hidden, hide it for accessibility too. r=johannh
remote-control-icon doesn't have an image/width/height when the remotecontrol attribute isn't set on #main-window, so it's invisible (visually).
However, it is still exposed to accessibility, as it is not marked as hidden in any definite way.
This change applies CSS visibility: collapse by default, causing this to be hidden for accessibility too.
That is then overridden by the existing visibility: visible when the remotecontrol attribute is set.

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

--HG--
extra : moz-landing-system : lando
2018-08-16 09:16:17 +00:00
James Graham 8075a29077 Bug 1482496 - Support list values in wptmanifest conditionals, r=ato
We were previously considering the grammar for conditionals in wpt
manifests to be something like:

"if " expr ":" string

This excluded the possibilty of complex values on the RHS. Here we
change it to the more obvious (and intended)

"if " expr ":" value

MozReview-Commit-ID: G6YWscW9dJS

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

--HG--
extra : moz-landing-system : lando
2018-08-16 09:43:27 +00:00
Karl Tomlinson 522bb0c752 bug 1474222 test ConvolverNode channelInterpretation changes r=padenot
MozReview-Commit-ID: 9s7ozdSRofY

--HG--
extra : rebase_source : b771f901c1c0a6e4c598818dd80ad8517375ccd6
2018-08-06 20:59:37 +12:00
Karl Tomlinson 2ad6f2ea42 bug 1474222 move convolver up-mixing test to wpt r=padenot
MozReview-Commit-ID: ItbXaY2GCrF

--HG--
rename : dom/media/webaudio/test/test_convolver-upmixing-1-channel-response.html => testing/web-platform/tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response.html
extra : rebase_source : becc3e3b8df9cd9b99fb29c642ec6848cd7830ba
2018-08-06 09:31:40 +12:00
Karl Tomlinson 09c58a5f32 bug 1474222 test ConvolverNode up-mixing r=padenot
MozReview-Commit-ID: GZVe85depAj

--HG--
extra : rebase_source : e65cea213bc8582c54ecfe9f995928b4c05a443c
2018-07-27 20:03:39 +12:00
Karl Tomlinson 7ee8880ce6 bug 1474222 change ConvolverNode output to mono for single channel convolution r=padenot
This also returns to using a single convolver for processing of mono input,
which introduces complexity in up-mixing the state of the convolver when a
second channel is added.

MozReview-Commit-ID: KeBrAswQbtF

--HG--
extra : rebase_source : d793bd967e0291069e4e6cc418de53c4b4cf3253
2018-08-06 21:24:15 +12:00
Karl Tomlinson 53de4f8c06 bug 1474222 consider allocation size instead of used channel count for re-using AudioBlockBuffer r=padenot
MozReview-Commit-ID: CgA051giSTU

--HG--
extra : rebase_source : 22d06a101a1c08d399de99bcd3477f1ff9ba3880
2018-08-03 18:32:28 +12:00
Karl Tomlinson 095ab44cad bug 1474222 keep memory allocated for convolver volume premultiplication until no longer required r=padenot
MozReview-Commit-ID: D3cfKjp0lwi

--HG--
extra : rebase_source : a8e948b758ab0b8c222c33340783c2527ddfbf15
2018-07-16 19:33:35 +12:00
Karl Tomlinson e0496cfa3b bug 1474222 uninline ConvolverNodeEngine::ProcessBlock() r=padenot
MozReview-Commit-ID: tbuG2AQJoC

--HG--
extra : rebase_source : fd6aeca490b3a9ed1fb116abd25e8d0199802cca
2018-07-16 19:22:15 +12:00
Xidorn Quan 398c9582ea No bug - Simplify some code in NoCalcLength::parse_dimension. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D3473

--HG--
extra : moz-landing-system : lando
2018-08-16 09:34:43 +00:00
Margareta Eliza Balazs a42d1c158f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-16 12:33:23 +03:00
Margareta Eliza Balazs 48299c8cd6 Merge inbound to mozilla-central. a=merge 2018-08-16 12:24:26 +03:00
Johann Hofmann 4ba4761b76 Bug 1482634 - Only run Content Blocking UI assertions if Content Blocking UI is enabled. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D3312

--HG--
extra : moz-landing-system : lando
2018-08-16 09:11:43 +00:00