Commit Graph

610099 Commits

Author SHA1 Message Date
Henri Sivonen
57d5f3ee13 Bug 1484984 - Avoid writing past the logical length of a string in networking code. r=valentin
MozReview-Commit-ID: IIffoxnF6KS

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

--HG--
extra : moz-landing-system : lando
2018-08-21 14:20:48 +00:00
yulia
9cbf625f78 Bug 1483173 - introduce screenshot actor; r=ochameau
This patch introduces a screenshot actor, which allows the screenshot functionality to be
shared across tools, and also implements it for the toolbox itself

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

--HG--
rename : devtools/server/actors/webconsole/screenshot.js => devtools/shared/screenshot/capture.js
extra : moz-landing-system : lando
2018-08-21 13:10:52 +00:00
yulia
c67268db86 Bug 1483166 - refactor evalWithDebugger into its own file; r=nchevobbe,bhackett
this combines the changes that I made in bug 1464461
(https://reviewboard.mozilla.org/r/253132/diff/1#index_header) with the changes for web replay made
by Brian Hackett, along with some clean up that was done by Honza with regards to helpers being
executed. This change should not have any functional impact on the code base, but it should make it
easier to work with the evalWithDebugger functionality than it has been so far.

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

--HG--
rename : devtools/server/actors/webconsole.js => devtools/server/actors/webconsole/eval-with-debugger.js
extra : moz-landing-system : lando
2018-08-21 14:01:02 +00:00
Rob Wu
36516a10a8 Bug 1475842 - Change parameter format in browser.search API r=rpl
Changes to browser.search.search API:
- Change the positional parameters to an object parameter.
- Rename "engineName" to "engine", and make this an optional parameter.
- Rename "searchTerms" to "query".

Changes to browser.search.search implementation:
- Simplify gBrowser getter. None of the "!gBrowser" conditionals are
  necessary, as demonstrated by the new options page+sidebar tests
  (which passed even after  removing the `if (!gBrowser ...)` blocks).
  Use windowTracker.topWindow for consistency with our other code.

Test changes:
- Remove unneeded name / "TEST_ID" in tests
- Use SEARCH_TERM constant in more places.
- New test: Using API from options page.
- New test: Using API from sidebar.
- New test: Using API without explicit "engine" parameter.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 14:43:46 +00:00
Jonathan Kingston
3d93e94550 Bug 1364392 - Provide correct triggeringPrincipal to openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3873

--HG--
extra : moz-landing-system : lando
2018-08-21 14:15:40 +00:00
Ryan VanderMeulen
3fbc856a30 Bug 1485014 - Update pdf.js to version 2.0.775. r=bdahl
--HG--
extra : amend_source : 1a0a50252b281f43ecc9aff45f1f693deaa92ea2
2018-08-21 10:10:16 -04:00
Ryan VanderMeulen
9966e32859 Bug 1483566 - Update Graphite2 to version 1.3.12. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D3426

--HG--
extra : moz-landing-system : lando
2018-08-21 13:58:42 +00:00
Jonathan Kingston
203aa92dca Bug 1483148 - Add allowInheritPrincipal to current tab bookmarklets. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3313

--HG--
extra : moz-landing-system : lando
2018-08-21 13:24:49 +00:00
Ted Campbell
54781329d1 Bug 1484382 - Use mozilla::ScopeExit in js/src r=jandem
Bug 1484382 - Use mozilla::ScopeExit in jit/JitFrames.cpp
Bug 1484382 - Use mozilla::ScopeExit in vm/TypeInference.cpp
Bug 1484382 - Use mozilla::ScopeExit in jit/JitcodeMap.cpp
Bug 1484382 - Use mozilla::ScopeExit in jit/JitFrames.cpp

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

--HG--
extra : moz-landing-system : lando
2018-08-21 08:59:31 +00:00
Nicolas Chevobbe
08f60bed59 Bug 1481443 - Disable Alt-B & Alt-F shortcut in source editor; r=gl.
Without this patch, hitting Alt-B was adding a character **and** moving
the cursor to the previous group, while Alt-F was also adding a character
**and** moving the cursor to the next group.
We disable the shortcut to fix this and add a test to make sure we don't
regress.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 12:29:00 +00:00
Raphael Pierzina
37d1b753d2 Convert mozhttpd's test suite to pytest (Bug 1479420) r=davehunt
Currently mozhttpd's test suite uses Python's unittest. Several tests don't
shut down started MozHttpd server instances, resulting in blocking test runs.
This patch resolves that problem by using pytest fixtures.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 15:55:18 +00:00
Gabriele Svelto
5d2f9f8da7 Bug 1440282 - Update breakpad to revision 1459e5df74dd03b7d3d473e6d271413d7aa98a88 r=ted
This adds support for the DW_AT_ranges attribute when dumping out symbols and
adds basic support for AArch64 (64-bit ARM) on Windows in the minidump
processor.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 10:34:11 +00:00
Franziskus Kiefer
3d5b81aef3 Bug 1484534 - fix Android error page technical details r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D3858

--HG--
extra : moz-landing-system : lando
2018-08-21 12:04:57 +00:00
Gijs Kruitbosch
dde42d4dfa Bug 1483935 - correctly check all windows for tabs when quitting, r=mconley
Bug 1438499 added an optional parameter to warnAboutClosingTabs.
In bug 1475427, the arguments to warnAboutClosingTabs changed, and instead
of passing a closing tab reference as the second argument, we now need to
pass the number of tabs as the first argument. The patch in that bug
updated the callsite in nsBrowserGlue.js to add the new argument, but
didn't remove the `null` argument that we were passing for the 'extra' tab.

Additionally, the change in bug 1475427 bails early from
warnAboutClosingTabs if the number of tabs passed is less than 2. That tab
count, too, needs to take into account multiple windows and not just the
last window iterated over.

This patch fixes both of these issues.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 18:27:44 +00:00
yulia
9626944cd5 Bug 1482052 - add talos test with many files for the debugger; r=ochameau
We do not have a test case in talos that has many files to be loaded on start. This change adds 100
files, each around 1000 lines long.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 09:43:05 +00:00
Dorel Luca
d9bdf77969 Merge mozilla-central to autoland 2018-08-21 12:57:58 +03:00
Dorel Luca
07c6e76122 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-21 12:54:24 +03:00
Emilio Cobos Álvarez
ed152b8ac4 Bug 1484690 - followup: fixup the WPT manifest since lando overrode it with an older version. r=me
CLOSED TREE
2018-08-21 11:27:40 +02:00
Emilio Cobos Álvarez
bbda2f1225 Bug 1484690 - Move the enabled state to the sheet instead of sharing it. r=heycam
We share the inner object across sheets from the same URL, so what happens here
is that, once the sheet parses and loads, we call SetEnabled() on the first
sheet, which sets the inner bit, then calls ApplicableStateChanged.

That set actually turned the second sheet complete, so when inserting the sheet,
we think that the second sheet is already enabled, and thus in the author data,
and try to insert before it. Of course there's nothing there, so we panic.

We rely on calling SetEnabled() on all the sheets already to insert them in the
styleset / author data, so this makes it clearer and fixes the bug by moving the
state to each individual sheet.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 08:55:10 +00:00
Emilio Cobos Álvarez
bd36609f59 Bug 1484773 - Containing shadow could be null after unlink. r=smaug
Bug 1483882 removed the line that used to remove the SHADOW_TREE bit during
unbind. I missed this caller which still assumed that `IsInShadowTree() ->
GetContainingShadow()`.

That means that before that patch it was going through
nsIDocument::RemoveStyleSheet, which looks pretty wrong to me.

Fix it so that we don't remove the stylesheet (we weren't doing it before
anyway), but we don't crash.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 23:28:57 +00:00
Daniel Holbert
7fe3e02d70 Bug 1481951 part 2: Adjust reftest contain-layout-overflow-002.html to be clearer & have accurate expectations. r=dbaron
This test is basically a copy of its -001 variant, with some "float:left"
sprinkled around on contained descendants.

Before this patch, this test had an additional arbitrary sizing difference as
compared to the -001 version -- there's one element that arbitrarily has class
"outer" in the -002 test whereas it has class "inner-lg" in the -001 version.
These classes have different sizing characteristics, which makes a difference
to whether scrollbars show up, because this element is not contained (though it
is a layout container itself).

This patch undoes this arbitrary difference and also adds a "float" class to
make it easier to see which elements we've sprinkled float styling onto.

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

--HG--
extra : rebase_source : 2630420b4dfc1a307cbfe20447e66fbfecf7b0aa
2018-08-20 12:43:14 -07:00
Daniel Holbert
38fd2332b7 Bug 1481951 part 1: Adjust contain-layout-overflow-* reftests to remove unused rule for nonexistent class "inner-md". r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D3825

--HG--
extra : rebase_source : 74b16f8e06088d47d687e0f07178473c1b1ad540
2018-08-20 12:45:06 -07:00
Alex Gaynor
019b59f8b5 Bug 1483309 - the IPC libFuzzer integration can now generated shared memory segments; r=jld,posidron
Uses the input bytes as metadata + data for shared memory segments.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 18:46:05 +00:00
Emilio Cobos Álvarez
c1a9351458 Bug 1480275: Handle nested use shadow trees properly when the ID target changes. r=heycam
We end up with three <svg:use> elements to update (lol), because the target (#c)
changes, since we create another element with that ID in the document via
outerHTML.

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

--HG--
extra : moz-landing-system : lando
2018-08-20 00:32:56 +00:00
Makoto Kato
539755989c Bug 1484602 - Don't reuse variables in WillDeleteSelection. r=masayuki
HTMLEditRules::WillDeleteSelection is complex since some variables is reused.
So I would like to clean up this to use block scope and EditorDOMPoint
before fixing bug 685799.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 06:54:47 +00:00
Nicolas Chevobbe
505d8aeaf8 Bug 1484672 - Use node.click instead of synthesizeMouseAtCenter in browser_webconsole_object_inspector_scroll.js; r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D3774

--HG--
extra : moz-landing-system : lando
2018-08-20 14:59:13 +00:00
Mike Conley
bda8a0dccd Bug 1478112 - Get rid of preselect tabbox workaround, and adjust focus after changing visible tab right away. r=dao
The "select" event handler workaround was originally added in bug 1379270 to make it
possible to focus and select the URL bar a little bit later. This ugly hack was to
workaround an issue with WebExtensions that override about:newtab with the
chrome_url_overrides property (the issue would be that the URL bar would not be
properly focused and selected if about:newtab was overridden).

Back in the day, this was necessary because the overriding URL was fully displayed
in the URL bar (moz-webextension://...). These days, when about:newtab is overridden,
the URL bar is still empty - we just end up showing the information about the
WebExtension overriding about:newtab to the left of the URL bar.

So I think we can remove the old workaround.

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

--HG--
extra : moz-landing-system : lando
2018-08-21 06:55:47 +00:00
Daniel Stenberg
8225a95bbd bug 1483311 - add LOAD_DISABLE_TRR as a loadflag r=mcmanus
Disable TRR at will without needing to toggle the pref.

MozReview-Commit-ID: 1Ept6kDrjN3

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

--HG--
extra : moz-landing-system : lando
2018-08-20 22:02:04 +00:00
ExE Boss
73411195a3 Bug 1482498 - Remove mozMatchesSelector(…) usage from browser‑places.js r=miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D3766

--HG--
extra : moz-landing-system : lando
2018-08-20 18:36:58 +00:00
Thomas Daede
2868cd8be4 Bug 1417050: Add support for AV1 in MP4. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D3365

--HG--
extra : moz-landing-system : lando
2018-08-20 23:56:39 +00:00
Ashley Hauck
d51249d1c5 Bug 1471371 - OOM handling in RegExp construction. r=jorendorff 2018-08-14 08:24:57 -07:00
Eitan Isaacson
57a25953a0 Bug 1483911 - Defer scrolling events until after ipc doc construction. r=Jamie 2018-08-20 15:51:00 +03:00
Jeff Walden
e4f79e2a19 Bug 1484421 - Move JSON-related functionality into js/public/JSON.h that isn't #include'd in jsapi.h. r=jandem 2018-08-20 07:54:45 -07:00
Jeff Walden
ffd93ba761 Bug 1033916 - Move JSAutoByteString out of jsapi.h into js/public/AutoByteString.h, incidentally breaking the jsfriendapi.h -> jsapi.h dependency. r=jandem
--HG--
extra : rebase_source : d85baf9b28e632db5669aa3d056cc9744686f5c8
2018-08-20 07:46:08 -07:00
Jeff Walden
3e90595274 Bug 1484389 - Move various SavedFrame-related functions and data types into js/public/SavedFrameAPI.h so that users aren't forced to depend on jsapi.h or jsfriendapi.h for them. r=jandem
--HG--
extra : rebase_source : d891f81cb0827d3c03971f71ba95a014d1e35379
2018-08-20 07:45:44 -07:00
Jeff Walden
b0ed4292e4 Bug 1484386 - Move various memory-allocation-related functions into js/public/MemoryFunctions.h to (ultimately) minimize dependencies required to use these functions in forthcoming public headers. r=jandem
--HG--
extra : rebase_source : 7f00471e42be6aa6aa94125c1ea291c6ebbe35a5
2018-08-20 07:45:44 -07:00
Jeff Walden
f95e60bba1 Bug 1484385 - Move various error-report-related structures and types into js/public/ErrorReport.h to minimize dependencies (and ultimately to make jsfriendapi.h not depend on jsapi.h). r=jandem
--HG--
extra : rebase_source : a288defdb87af97cae31181db9239b18935ad3d2
2018-08-20 07:45:44 -07:00
Jeff Walden
cd10720691 Bug 1040316 - Move AutoStableStringChars out of friendapi into public API. r=jandem
--HG--
extra : rebase_source : 3f66710e9517aba203a3d5365f6c3f0102c7baf8
2018-08-20 07:44:44 -07:00
Jeff Walden
407a8b6081 Bug 1483374 - Intl.NumberFormat shouldn't deliberately conflate -0 with +0. r=anba
--HG--
extra : rebase_source : b20e4e3fbc96138c8158ea21934c024d6a8842a0
2018-08-16 13:57:42 -07:00
Nicholas Nethercote
d6f4bef529 Bug 1484605 - Tweak some lookupForAdd() uses. r=luke
These are cases where the existing code is a little dubious or sub-optimal.

--HG--
extra : rebase_source : 2fcb4657afc7c7d24ae88b85d08df57ae04db38c
2018-08-21 11:53:47 +10:00
Gurzau Raul
fce80a532e Backed out 8 changesets (bug 1330257) for Geckoview failures at GeckoSessionTestRuleTest.waitForPageStop_throwOnChangedCallback on a CLOSED TREE
Backed out changeset c26970c767e1 (bug 1330257)
Backed out changeset 53ef69afca69 (bug 1330257)
Backed out changeset 62e53fa35d5b (bug 1330257)
Backed out changeset 7c589fc8621b (bug 1330257)
Backed out changeset 593f9a799d11 (bug 1330257)
Backed out changeset 9085b9fd557c (bug 1330257)
Backed out changeset aa0ef9b0e96a (bug 1330257)
Backed out changeset 7186e64192f7 (bug 1330257)
2018-08-21 06:51:29 +03:00
Jim Chen
2a5876a5b2 Bug 1330257 - 5a. Fix checkstyle error; r=jchen 2018-08-20 23:02:09 -04:00
Jeff Muizelaar
2bcaf3e052 Bug 1483303. Mark 3d transform test as passing. 2018-08-20 22:32:56 -04:00
Jeff Muizelaar
b0d05aed0d Bug 1483303. Update bindings for color masking of images.
This makes us build after pr #2969
2018-08-20 22:32:54 -04:00
Jeff Muizelaar
3f1b0144a3 Bug 1483303. Update webrender to commit e70bae07664def86aefd11c86dac818ab7ea64ea 2018-08-20 22:32:50 -04:00
Jim Chen
0f3c92c7f0 Bug 1330257 - 7. Add Oreo auto-fill frontend; r=esawin r=snorp
Add a frontend for the Oreo auto-fill API in SessionTextInput, which
processes events from Gecko and provides consumer APIs that match the
Oreo auto-fill APIs. GeckoView then forwards the necessary calls to
SessionTextInput.

Differential Revision: https://phabricator.services.mozilla.com/D3538
2018-08-20 22:28:21 -04:00
Jim Chen
da23d1931b Bug 1330257 - 6. Add tests for auto-fill accessibility frontend; r=eeejay
Add some tests to AccessibilityTest to make sure we can perform
auto-fill through the accessibility API.

Differential Revision: https://phabricator.services.mozilla.com/D3255
2018-08-20 22:28:21 -04:00
Jim Chen
7ead74b685 Bug 1330257 - 5. Add auto-fill accessibility frontend; r=eeejay
Add an auto-fill frontend that listens to events from Gecko. It
populates accessibility nodes for input fields and sends accessibility
events, in order to support auto-fill clients that use accessibility
services to perform auto-fill.

Differential Revision: https://phabricator.services.mozilla.com/D3254
2018-08-20 22:28:20 -04:00
Jim Chen
3d6c8ca540 Bug 1330257 - 4. Add auto-fill backend; r=esawin
Add an auto-fill backend in GeckoViewContent.js that detects fields on
the page and sends information about the fields to Java through events.

Differential Revision: https://phabricator.services.mozilla.com/D3253
2018-08-20 22:28:20 -04:00
Jim Chen
8a8e82e9bd Bug 1330257 - 3. Inline session store event listeners; r=droeh
Make the session store event listeners inline, because it makes the code
more readable, and also because auto-fill requires a pageshow listener
that is always registered, so the existing pageshow listener needs to be
moved elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D3252
2018-08-20 22:28:20 -04:00