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

2172 Коммитов

Автор SHA1 Сообщение Дата
Brindusan Cristian b319c000c3 Backed out changeset 7b218b6df420 (bug 1496741) for mochitest-chrome failures on devtools/client/webide/test/test_addons.html. CLOSED TREE 2018-10-09 19:05:08 +03:00
yulia 2fc1f16a1e Bug 1488377 - remove outdated backwards compat code; r=ochameau
Depends on D7886

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

--HG--
extra : moz-landing-system : lando
2018-10-09 13:11:32 +00:00
Julian Descottes 65e9cbd0e2 Bug 1496741 - Cleanup adb-addon.js module;r=ladybenko
--HG--
extra : rebase_source : c7d5a65aa5fc305295a6ae49020bf2b49c090c13
2018-10-02 11:25:03 +02:00
yulia 3b9941d99e Bug 1488377 - Use target.getFront to instantiate CssPropertiesFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7886

--HG--
extra : moz-landing-system : lando
2018-10-08 15:01:45 +00:00
Tiberius Oros 2f11f4a742 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-08 19:21:26 +03:00
Neil Deakin f659f51906 Bug 1310193 - Remove wrapping of nsISupports as nsISupportsInterfacePointer in transferables. r=smaug
--HG--
extra : rebase_source : 562b3bcd621ad348b7e2ada8151775b188ba58ff
2018-10-07 16:33:07 +02:00
Andreea Pavel 43fb61451b Backed out 3 changesets (bug 1492265, bug 1496025) for failing org.mozilla.geckoview.test.AccessibilityTest.testMoveByCharacter on a CLOSED TREE
Backed out changeset 9259cfe05c4e (bug 1492265)
Backed out changeset 1292fd4850a7 (bug 1496025)
Backed out changeset c9a6fdac66bb (bug 1496025)
2018-10-08 18:07:26 +03:00
Alexandre Poirot ef7c2a3c63 Bug 1496025 - Remove unused methods on ObjectClient related to promises r=Honza,gl
MozReview-Commit-ID: BPsMPaLz8AM

Depends on D7689

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

--HG--
extra : moz-landing-system : lando
2018-10-08 11:12:42 +00:00
Alexandre Poirot 5bed7198d7 Bug 1496025 - Remove Promises actor r=gl
MozReview-Commit-ID: 55Y9FrpXCL1

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

--HG--
extra : moz-landing-system : lando
2018-10-08 11:12:40 +00:00
Margareta Eliza Balazs 023013edac Backed out changeset 14f893f7de2d (bug 1488377) for mochitest failures in devtools/server/tests/mochitest/test_css-properties.html 2018-10-08 16:25:17 +03:00
yulia 8eb10516b2 Bug 1488377 - Use target.getFront to instantiate CssPropertiesFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7886

--HG--
extra : moz-landing-system : lando
2018-10-08 10:58:01 +00:00
yulia b4efc0f1c7 Bug 1488378 - Use target.getFront to instantiate CSSUsageFront; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7887

--HG--
extra : moz-landing-system : lando
2018-10-08 10:53:50 +00:00
Gabriel Luong 3e721cf4f1 Bug 1478397 - Part 19: Show both the flex container and flex item sizing properties when the selected element is both a flex item and container. r=pbro 2018-10-05 15:30:00 -04:00
Andreea Pavel 36e176666f Backed out changeset 9f1fd88190e3 (bug 1478397) for failing devtools at evtools/client/inspector/markup/test/browser_markup_flex_display_badge.js on a CLOSED TREE 2018-10-06 00:14:15 +03:00
Gabriel Luong 531bbc524c Bug 1478397 - Part 19: Show both the flex container and flex item sizing properties when the selected element is both a flex item and container. r=pbro 2018-10-05 15:30:00 -04:00
Julian Descottes 3a72442ee2 Bug 1496741 - Cleanup adb-addon.js module;r=ladybenko
This introduces constants for the addon states and migrates ADBAddon to a class

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

--HG--
extra : moz-landing-system : lando
2018-10-09 07:07:56 +00:00
Gabriel Luong 906925a7e6 Bug 1494162 - Part 8: Lazy loadgetAngleValueInDegrees in color.js. r=rcaliman 2018-10-05 10:53:54 -04:00
Julian Descottes 4848175bf8 Bug 1494615 - Stop update Devices.jsm from adb-addon module;r=ladybenko
Depends on D7405. The adb-addon module fires events whenever the
addon state changes, so Devices.jsm should be able to simply reuse this
module to update its internal state, rather than having adb-addon set
something on Devices.jsm directly.

On a sidenote, we really should not propagate the adb status via Devices.jsm
but since WebIDE relies on this, I decided to keep the code as is for now.
We will remove it from Devices.jsm when WebIDE is removed.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:45:22 +00:00
Julian Descottes 419fc776a0 Bug 1494615 - Accept source parameter in adb-addon install();r=ladybenko
Depends on D7404. The install method should not hardcode "webide"
for the addon manager telemetry info

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:43:29 +00:00
Julian Descottes c1b5abb562 Bug 1494615 - Update adb-addon module to expose a singleton;r=ladybenko
Depends on D7403
The getADBAddon/forgetADBAddon is not removing listeners or doing
anything useful since the next call to getADBADdon will just recreate an
instance of ADBAddon. We can expose a singleton and use lazy requires to
achieve the same effect

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:40:38 +00:00
Julian Descottes c1aabb3bca Bug 1494615 - Move ADBAddon module to devtools/shared/adb;r=ladybenko
Depends on D7402. Moving the module to a shared older. Following
patches will cleanup the implementation to remove WebIDE couplings.

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

--HG--
rename : devtools/client/webide/modules/addons.js => devtools/shared/adb/adb-addon.js
extra : moz-landing-system : lando
2018-10-03 13:34:40 +00:00
Botond Ballo ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E) ce4278715b Bug 1290420 Part 3: Set the metaViewportOverride flag when viewing a device with touch event support in Responsive Design Mode. r=gl
Depends on D3375

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

--HG--
extra : moz-landing-system : lando
2018-10-04 00:19:41 +00:00
Razvan Caliman 08b25bfbde Bug 1496055 - Part 2: Remove obsolete StyleRuleActor.modifySelector() and rename modifySelector2(); r=gl
MozReview-Commit-ID: 35VrRw33sV7

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

--HG--
extra : moz-landing-system : lando
2018-10-03 15:11:52 +00:00
Razvan Caliman 02deacb80d Bug 1496055 - Part 1: Remove outdated checks for StyleRuleActor.modifySelectorUnmatched; r=gl
Since Firefox 41 it has been possible to add a rule with a selector
which does not match an element. The checks of the existence of this
functionality are outdated and can be safely removed.

No supported old versions of Firefox make use of the previous
functionality anymore.

MozReview-Commit-ID: D5ZP09Ckeqd

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

--HG--
extra : moz-landing-system : lando
2018-10-03 13:52:16 +00:00
Yura Zenevich d84869d27a Bug 1473037 - Display contrast ratio for text nodes inside the accessibility infobar. r=pbro
Co-authored-by: Micah Tigley <mtigley@mozilla.com>

MozReview-Commit-ID: 1KbcRG0bZA3

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

--HG--
extra : moz-landing-system : lando
2018-10-02 13:29:24 +00:00
Markus Stange 9d56241b4f Bug 1457481 - Hook up the new devtools performance panel to nsIProfiler.getSymbolTable. r=gregtatum
Depends on D7023

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

--HG--
extra : moz-landing-system : lando
2018-10-02 01:52:32 +00:00
shindli 2cc7085b7a Backed out 4 changesets (bug 1457481) for c1 failures in devtools/client/performance-new/test/chrome/test_perf-settings-entries.html
Backed out changeset 212450f77860 (bug 1457481)
Backed out changeset ac3deff9340f (bug 1457481)
Backed out changeset 4478820fbcaa (bug 1457481)
Backed out changeset 1c8460b1d6da (bug 1457481)

--HG--
rename : third_party/rust/syn-0.14.6/src/parsers.rs => third_party/rust/syn/src/parsers.rs
rename : third_party/rust/syn-0.14.6/src/verbatim.rs => third_party/rust/syn/src/verbatim.rs
rename : third_party/rust/uuid-0.5.1/.travis.yml => third_party/rust/uuid/.travis.yml
rename : third_party/rust/uuid-0.5.1/src/rustc_serialize.rs => third_party/rust/uuid/src/rustc_serialize.rs
rename : third_party/rust/uuid-0.5.1/src/serde.rs => third_party/rust/uuid/src/serde.rs
2018-10-02 01:43:46 +03:00
Markus Stange 12d3a22f24 Bug 1457481 - Hook up the new devtools performance panel to nsIProfiler.getSymbolTable. r=gregtatum
Depends on D7023

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

--HG--
extra : moz-landing-system : lando
2018-10-01 20:53:20 +00:00
Julian Descottes 293c15aec0 Bug 1492374 - Move all ADB related preferences out of webide;r=ladybenko
While this is not strictly related for uninstalling ADB helper this
small cleanup avoids duplicating the declaration of the adb extension
in two different preferences.

The URL preference also moves to a devtools-shared preference as there
is not much sense to keep it webide only.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 11:40:23 +00:00
Daisuke Akatsuka 670b00e560 Bug 1494171: Make tabs on android debuggable. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D7258

--HG--
extra : moz-landing-system : lando
2018-10-01 12:48:23 +00:00
arthur.iakab 6d5ae40a02 Merge inbound to mozilla-central a=merge 2018-09-29 07:16:35 +03:00
Razvan Caliman fcbdeb7942 Bug 1490720 - Log changes to CSS declarations from StyleRuleActor. r=pbro
MozReview-Commit-ID: 9J4zBcSxYwj

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

--HG--
extra : moz-landing-system : lando
2018-09-28 17:30:49 +00:00
Daisuke Akatsuka dcbc040145 Bug 1494169 - Part 2: Connect to USB device. r=jdescottes
Depends on D6880

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

--HG--
extra : moz-landing-system : lando
2018-09-28 04:27:44 +00:00
Nicolas Chevobbe 2aa2e07452 Bug 1410820 - top-level await evaluation should be handled as regular evaluation; r=bgrins.
This patch turns the current top-level handling, which relies on
the console API to print the result of the await expression, into
something natively handled by the server.

First, we don't add a .then handler to the generated async iife by
the mapper. We also removes the case we added in the JsTerm to *not*
print the result for top-level await expression.

In order to make the server capable of handling generated async iife
caused by the mapper, we send to evaluateJsAsync the `mapped` object
that `mapExpression` returns. This way, the server can check if an
expression was originally a top-level await.

If it is the case, we get the promise from the async iife and wait for
it to settle. If it resolves, we simply return the result, as a grip,
to the client. If it rejects, we return a special packet indicating to
not print anything to the client. The error will be reported by the
engine as `uncaught exception: …`.

We add several tests and modify the existing one to make sure we handle
top level await correctly in different situation (resolving, rejecting,
when paused in the debugger, when using $_, …).

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

--HG--
extra : moz-landing-system : lando
2018-09-27 15:59:47 +00:00
Gurzau Raul a8d8876e9e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-27 19:45:35 +03:00
yulia 72f9e83eb1 Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Summary: Depends on D6477

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
rename : devtools/server/actor-registry.js => devtools/server/actors/utils/actor-registry.js
extra : rebase_source : ae52db7b028b4d866d8a363eae9ae7c124714458
2018-09-26 10:09:15 +02:00
yulia 29af71d6af Bug 1473513 - resolve memory leak
Summary: Depends on D6476

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 61ccae905e3136ad3c293db692551786e83075c7
2018-09-26 10:08:43 +02:00
yulia c6dbe43c8e Bug 1473513 - reduce number of poolFor calls; r=ochameau
Summary:
MozReview-Commit-ID: 9VqKPauAP9j

Depends on D6475

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 1bebc34bf805dfcf7bce0b5d8f3a2a13bab11173
2018-09-26 10:08:10 +02:00
yulia 9c120b705d Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
Summary:
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

Reviewers: ochameau

Reviewed By: ochameau

Subscribers: reviewbot

Bug #: 1473513

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

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : rebase_source : 3ea4edd91ca8b09ad5e25ae01df885c587bee7b1
2018-09-26 10:06:43 +02:00
yulia e1c0e43fff Bug 1473513 - remove other instances of ActorPool from browsingContext and root; r=ochameau
Summary:
MozReview-Commit-ID: GxkLzvxJgdY

Depends on D6471

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 8877be9e01d379375a167c58c61d94efd4997e19
2018-09-26 10:05:31 +02:00
yulia 4a8f74eb3e Bug 1473513 - create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor; r=ochameau
Summary:
create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor;

Depends on D6468

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
rename : devtools/server/actors/common.js => devtools/shared/protocol/lazy-pool.js
extra : rebase_source : 09a1c8eac3cbb5856a5e3e61a1c0540efe32e5bd
2018-09-26 10:03:33 +02:00
yulia 7caf289dbe Bug 1473513 - use Protocol.js pools for workerTargetActorPool in Target Actors; r=ochameau
Summary: MozReview-Commit-ID: 5uIWwOR7CHp

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : b5f560e404727a168c5b35924961a49c51b849df
2018-09-26 10:02:54 +02:00
Alexandre Poirot 0df7ab9a73 Bug 1494317 - Remove "newScript" event leftovers r=yulia
MozReview-Commit-ID: 3lc5XXdBWgS

Depends on D6941

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

--HG--
extra : moz-landing-system : lando
2018-09-26 18:11:55 +00:00
Alexandre Poirot 06ff174025 Bug 1494319 - Remove unused "newGlobal" event r=yulia
MozReview-Commit-ID: 4bQyjXYuN18

Depends on D6940

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

--HG--
extra : moz-landing-system : lando
2018-09-26 18:09:54 +00:00
Alexandre Poirot 340ed44d31 Bug 1494322 - Remove unused UnsolicitedNotifications r=yulia
MozReview-Commit-ID: Fc2upXImxP2

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

--HG--
extra : moz-landing-system : lando
2018-09-27 08:50:13 +00:00
Alexandre Poirot 3ad83b9241 Bug 1492856 - Remove compatiblity code to guard against miss of RootActor.getRoot r=jdescottes
MozReview-Commit-ID: L5kkG9r7Rtv

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

--HG--
extra : moz-landing-system : lando
2018-09-26 21:12:16 +00:00
Xidorn Quan cb87cec282 Bug 1494501 - Rename pref "layout.css.scrollbar-colors.enabled" to "layout.css.scrollbar-color.enabled". r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7030

--HG--
extra : moz-landing-system : lando
2018-09-27 00:38:16 +00:00
Logan F Smyth c14f7c8aff Bug 1473996 - Expose fn.apply in the devtools server. r=nchevobbe
Depends on D6722

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

--HG--
extra : moz-landing-system : lando
2018-09-26 16:23:25 +00:00
Logan F Smyth 11febfa688 Bug 1473996 - Expose getPropertyValue in devtools server to fully evaluate an object property. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D6722

--HG--
extra : moz-landing-system : lando
2018-09-26 16:12:56 +00:00
Nicolas Chevobbe 14ff2e3235 Bug 1476656 - Trigger autocomplete on bracket; r=Honza.
This patch adds the ability to open the autocomplete popup when
typing an opening bracket (i.e. `[`]) in the console input.
This impacts a significant amount of function where we assumed
that the only way to get a completion was to use a dot.
We uses the rename `anylyzeInputString` function to get the
completion part from an input, as well as if the user is performing
an element access (i.e., using the bracket).
We then send that information to the webconsole actor, which send
it to the client.
This allows us to rely on a single parse of the input and gives us
access to this information everywhere we need to, be it on the client
or on the server.

We allow the user to type property name without quotes, and we add
them when the user accept an autocompletion.
We also automatically add a closing bracket (i.e. `]`), when it's needed.

Some test are added. On the server side to make sure the actor's autocomplete
function returns what's expected.
We take that as an opportunity to add test for commands.
On the client side, tests are added to ensure the different behavior works
as expected (check the completion text and the input  after accepting
the completion when the user entered some letters, or not, with or without
quotes, with different quotes, hitting the autocomplete cache, …).

A test which accesses the autocomplete cache was modified since the shape
of the cache changed to include the last matchProp as well as the
isElementAccess boolean.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 13:54:35 +00:00
arthur.iakab ec46826255 Merge inbound to mozilla-central. a=merge 2018-09-26 15:54:41 +03:00
Xidorn Quan c46ef183e2 Bug 1492012 - Enable scrollbar-color and scrollbar-width by default. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D6872

--HG--
extra : moz-landing-system : lando
2018-09-26 03:30:32 +00:00
Alexandre Poirot e008acf411 Bug 1473513 - Backed out changeset 0e431edddacd for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 1BlQk4H0c1w

Depends on D6812

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6813
2018-09-25 19:35:14 +03:00
Alexandre Poirot 18a737b18d Bug 1473513 - Backed out changeset 27419719402e for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 43tUMmC1Je0

Depends on D6811

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6812
2018-09-25 19:35:00 +03:00
Alexandre Poirot 67f96eff34 Bug 1473513 - Backed out changeset e56c70bd2f9a for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 9FIL35Nq726

Depends on D6809

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6810
2018-09-25 19:34:43 +03:00
Alexandre Poirot 1255c658b2 Bug 1473513 - Backed out changeset d72f6ff37ca6 for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: LKPmFrhaQ5q

Depends on D6807

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6808
2018-09-25 19:34:26 +03:00
Alexandre Poirot 58167747ab Bug 1473513 - Backed out changeset db43912632fb for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: DbUwQ0NQZcE

Depends on D6805

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6806
2018-09-25 19:34:09 +03:00
Alexandre Poirot e73ec8adf4 Bug 1473513 - Backed out changeset 80c51a6e896e for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: 3TCiKetO6fn

Depends on D6804

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6805
2018-09-25 19:34:01 +03:00
Alexandre Poirot a3c7499a55 Bug 1473513 - Backed out changeset 174fe98999ea for failures on mobile/android/tests/browser/chrome/test_debugger_server.html CLOSED TREE
Summary:
MozReview-Commit-ID: GfSX2wYfLrN

Depends on D6803

Bug #: 1473513

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

--HG--
rename : devtools/server/actors/utils/actor-registry.js => devtools/server/actor-registry.js
2018-09-25 19:33:52 +03:00
Alexandre Poirot e490a53de2 Bug 1492826 - Better document TabTarget.attach as well as DebuggerClient.attachTarget and attachConsole. r=jdescottes
Depends On D6162

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

--HG--
extra : moz-landing-system : lando
2018-09-24 16:24:07 +00:00
Margareta Eliza Balazs 5ad86cabda Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-25 12:50:02 +03:00
Margareta Eliza Balazs ffe6eaf2f0 Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
yulia 04d870f203 Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Depends on D6477

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

--HG--
rename : devtools/server/actor-registry.js => devtools/server/actors/utils/actor-registry.js
extra : moz-landing-system : lando
2018-09-25 08:47:10 +00:00
yulia 19b4e8fbe6 Bug 1473513 - resolve memory leak r=ochameau
Depends on D6476

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:06:25 +00:00
yulia a0882d24f7 Bug 1473513 - reduce number of poolFor calls; r=ochameau
MozReview-Commit-ID: 9VqKPauAP9j

Depends on D6475

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:06:17 +00:00
yulia e857119004 Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

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

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : moz-landing-system : lando
2018-09-25 08:05:29 +00:00
yulia 54d3f62aa0 Bug 1473513 - remove other instances of ActorPool from browsingContext and root; r=ochameau
MozReview-Commit-ID: GxkLzvxJgdY

Depends on D6471

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:04:41 +00:00
yulia 1cea42cdd7 Bug 1473513 - create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor; r=ochameau
create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor;

Depends on D6468

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

--HG--
rename : devtools/server/actors/common.js => devtools/shared/protocol/lazy-pool.js
extra : moz-landing-system : lando
2018-09-25 08:03:42 +00:00
yulia 56e91adaa1 Bug 1473513 - use Protocol.js pools for workerTargetActorPool in Target Actors; r=ochameau
MozReview-Commit-ID: 5uIWwOR7CHp

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

--HG--
extra : moz-landing-system : lando
2018-09-25 08:02:11 +00:00
Alexandre Poirot c7a9923fc3 Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
Summary:
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: Exz5fWyWyfN
2018-09-24 09:52:59 -07:00
Alexandre Poirot fc8714580a Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 09:52:57 -07:00
Anshul Malik efdb07ca38 Bug 832983 - Basic support for adding xhr breakpoints r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D5662

--HG--
extra : moz-landing-system : lando
2018-09-21 22:20:37 +00:00
Jim Blandy 5c185b4f8f Bug 1491946: Save devtools heap snapshots with the extension '.fxsnapshot.gz'. r=fitzgen 2018-09-17 11:57:42 -07:00
Gurzau Raul ad28ad0169 Backed out 9 changesets (bug 1485676) for failing at damp inspector/cold-open.js on a CLOSED TREE
Backed out changeset 4de2e71debfe (bug 1485676)
Backed out changeset e63025150c7a (bug 1485676)
Backed out changeset f9ef30ae3f7f (bug 1485676)
Backed out changeset a83636fab16a (bug 1485676)
Backed out changeset b1fd24929e09 (bug 1485676)
Backed out changeset acb27b915742 (bug 1485676)
Backed out changeset ba2157632772 (bug 1485676)
Backed out changeset d1d6b9bc2372 (bug 1485676)
Backed out changeset d7646ea8640b (bug 1485676)
2018-09-22 19:42:04 +03:00
Alexandre Poirot f98d0997fe Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
Summary:
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: Exz5fWyWyfN
2018-09-22 08:34:21 -07:00
Alexandre Poirot 8724260e30 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-22 08:34:21 -07:00
Brindusan Cristian 4c389d3514 Backed out changeset 70d1a0c0270c (bug 832983) for devtools failures on /test/browser_inspector_pseudoclass-lock.js. CLOSED TREE 2018-09-21 23:23:59 +03:00
Anshul Malik 0aaccab5d7 Bug 832983 - Basic support for adding xhr breakpoints r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D5662

--HG--
extra : moz-landing-system : lando
2018-09-21 19:12:17 +00:00
Zibi Braniecki 83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
arthur.iakab 6877b6a75c Backed out 9 changesets (bug 1485676)for perma failures in devtools/client/canvasdebugger/test/browser_canvas-actor-test-01.js CLOSED TREE
Backed out changeset 9f5ec2aa7109 (bug 1485676)
Backed out changeset 0d530c1316a4 (bug 1485676)
Backed out changeset 03278e6fe685 (bug 1485676)
Backed out changeset 275463260056 (bug 1485676)
Backed out changeset 4c5a956b33f7 (bug 1485676)
Backed out changeset d8fe80bb0e3c (bug 1485676)
Backed out changeset 56240996921f (bug 1485676)
Backed out changeset ec0a322f5cc9 (bug 1485676)
Backed out changeset f0f4f9407970 (bug 1485676)
2018-09-21 12:48:48 +03:00
Alexandre Poirot cffaacada5 Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:08:24 +00:00
Alexandre Poirot c023333832 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:08:11 +00:00
Gurzau Raul 4fc41e9a2f Backed out changeset ce4f180d81e4 (bug 832983) for failing at /test/browser_net_leak_on_tab_close.js on a CLOSED TREE 2018-09-21 02:37:30 +03:00
Anshul Malik c4a1f5d364 Bug 832983 - Basic support for adding xhr breakpoints r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D5662

--HG--
extra : moz-landing-system : lando
2018-09-20 21:52:52 +00:00
Gabriel Luong 56b8221535 Bug 1494162 - Part 19: Backed out changeset 6297b63aa220. r=me 2018-09-28 16:14:32 -04:00
Gabriel Luong a567ea6096 Bug 1494162 - Part 19: Backed out changeset 5fd32a2fbc66. r=me 2018-09-28 16:19:30 -04:00
Gabriel Luong 20822612a3 Bug 1494162 - Part 19 Follow up: Fix test failures in test_css-logic-getCssPath.html. r=me 2018-09-28 16:12:47 -04:00
Gabriel Luong 731fa92589 Bug 1494162 - Part 19: Directly import getCssPath, getXpath and findCssSelector. r=pbro 2018-09-28 13:14:34 -04:00
Gabriel Luong f02c127be2 Bug 1464192 - Part 18: Lazy load modules in the css-logic. r=pbro
--HG--
extra : source : 973fbb5bbadcafcb1b49fe82b452eff4da5b2838
2018-09-28 13:14:34 -04:00
Noemi Erli 8e345b1180 Backed out 16 changesets (bug 1494162, bug 1464192) for failures in test_css-logic-getCssPath.html CLOSED TREE
Backed out changeset 0d5a593adfda (bug 1494162)
Backed out changeset ea5d67d3c2ae (bug 1494162)
Backed out changeset 98c531e6f8d4 (bug 1494162)
Backed out changeset 973fbb5bbadc (bug 1464192)
Backed out changeset bbbf97a5802e (bug 1494162)
Backed out changeset c1dac4bffc06 (bug 1494162)
Backed out changeset c90d929f87f2 (bug 1494162)
Backed out changeset f90da1a0201b (bug 1494162)
Backed out changeset ee129a8c5e00 (bug 1494162)
Backed out changeset 10143ae649e5 (bug 1494162)
Backed out changeset f700e44ea63f (bug 1494162)
Backed out changeset cb2b02dc4b47 (bug 1494162)
Backed out changeset 4880d9571aa7 (bug 1494162)
Backed out changeset b9e187182a0f (bug 1494162)
Backed out changeset f077ffe76ca5 (bug 1494162)
Backed out changeset ef609de4cd5c (bug 1494162)
2018-09-28 21:57:12 +03:00
Gabriel Luong dbc0e64446 Bug 1494162 - Part 19: Directly import getCssPath, getXpath and findCssSelector. r=pbro 2018-09-28 13:14:34 -04:00
Gabriel Luong f37977f646 Bug 1464192 - Part 18: Lazy load modules in the css-logic. r=pbro 2018-09-28 13:14:34 -04:00
shindli 51a3c01ced Backed out 9 changesets (bug 1485676) for failures in browser/tools/mozscreenshots/devtools/browser_devtools.js CLOSED TREE
Backed out changeset d358feec4ca1 (bug 1485676)
Backed out changeset ed554dbb062f (bug 1485676)
Backed out changeset 6e78058df94d (bug 1485676)
Backed out changeset 3a6f1b0e71f4 (bug 1485676)
Backed out changeset 16d2403aa787 (bug 1485676)
Backed out changeset 454eddf52157 (bug 1485676)
Backed out changeset 926f725f2183 (bug 1485676)
Backed out changeset fb03f174bd5f (bug 1485676)
Backed out changeset ceb93dd1799a (bug 1485676)
2018-09-24 15:27:27 +03:00
Alexandre Poirot d2897f66aa Bug 1485676 - Rename DebuggerClient.attachTab to attachTarget. r=jdescottes
Summary:
This method isn't specific to tabs. It can attach to any "target" actor that inherits from BrowsingContextActor.

Depends On D6161

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: Exz5fWyWyfN
2018-09-24 01:25:03 -07:00
Alexandre Poirot 796f22b354 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

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

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 01:25:02 -07:00
shindli 957b91ec70 Backed out changeset 2defd19a1467 (bug 1491946) for ES lint failure 2018-09-24 10:37:54 +03:00
Jim Blandy 4634133ae0 Bug 1491946: Save devtools heap snapshots with the extension '.fxsnapshot.gz'. r=fitzgen 2018-09-17 11:57:42 -07:00
yulia 825e041cf6 Bug 1485378 - Replace CallWatcher actor with helper; r=jdescottes
creates a CallWatcherActor only for tests and migrates other functionality to the helper

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

--HG--
rename : devtools/server/actors/call-watcher.js => devtools/client/canvasdebugger/test/call-watcher-actor.js
rename : devtools/shared/fronts/call-watcher.js => devtools/client/canvasdebugger/test/call-watcher-front.js
rename : devtools/shared/specs/call-watcher.js => devtools/client/canvasdebugger/test/call-watcher-spec.js
rename : devtools/server/actors/call-watcher.js => devtools/server/actors/utils/call-watcher.js
rename : devtools/server/actors/call-watcher.js => devtools/server/actors/utils/function-call.js
rename : devtools/shared/fronts/call-watcher.js => devtools/shared/fronts/function-call.js
rename : devtools/shared/specs/call-watcher.js => devtools/shared/specs/function-call.js
extra : moz-landing-system : lando
2018-09-20 13:41:26 +00:00
Alexandre Poirot 162cf2b6ee Bug 1487337 - Bump devtools compatibility threshold up to 62 (current release version) r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D6252

--HG--
extra : moz-landing-system : lando
2018-09-20 09:11:26 +00:00
Alexandre Poirot f12c00cd13 Bug 1485671 - Expose and use TabClient.listFrames and switchToFrame. r=yulia
Depends On D6272

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

--HG--
extra : moz-landing-system : lando
2018-09-20 08:30:32 +00:00
Alexandre Poirot 036563e90b Bug 1485671 - Expose and use TabClient.logInPage instead of sending request manually. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D6272

--HG--
extra : moz-landing-system : lando
2018-09-20 07:50:54 +00:00
Emilio Cobos Álvarez e39bf77494 Bug 1492567 - Back out bug 1481866. r=dbaron
Summary:
The behavior the WG proposed is way more subtle than what that bug implements,
including:

 * Implementing two logical overflow longhands.
 * Expanding the overflow shorthand to different longhands depending on the
   syntax of that.

Meanwhile, Blink hasn't done the swap and will ship the same behavior that we
shipped in Firefox 61 (bug 1453148), that is, overflow-x, then overflow-y.

So I think lacking a clear way forward we should revert this change and preserve
our shipped behavior.

Reviewers: dbaron!

Tags: #secure-revision

Bug #: 1492567

Differential Revision: https://phabricator.services.mozilla.com/D6317
2018-09-20 01:27:55 +02:00
Xidorn Quan 8396cd75c7 Bug 1483075 - Merge the two scrollbar color properties into scrollbar-color. r=heycam,hiro
Differential Revision: https://phabricator.services.mozilla.com/D6115

--HG--
extra : moz-landing-system : lando
2018-09-19 05:33:12 +00:00
Daisuke Akatsuka b3891b0f8f Bug 1490583: Remove actor related code that no longer used. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D5842

--HG--
extra : moz-landing-system : lando
2018-09-19 02:03:49 +00:00
Noemi Erli 63025fbf18 Backed out changeset 44c69e043cf7 (bug 1490583) for failures in browser_animation_reconstructState.js 2018-09-18 21:44:19 +03:00
Daisuke Akatsuka 55701049ee Bug 1490583: Remove actor related code that no longer used. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D5842

--HG--
extra : moz-landing-system : lando
2018-09-18 12:41:53 +00:00
Julian Descottes 22320bf6c9 Bug 1491007 - Remove unused getScreenDimensions method;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D5770

--HG--
extra : moz-landing-system : lando
2018-09-17 20:45:27 +00:00
Julian Descottes b52db5e949 Bug 1491315 - Rename all references to ADB Helper to ADB Extension;r=daisuke
--HG--
extra : rebase_source : 5c696e1d1224343e2a7223b8e412afd826b459c5
2018-09-14 17:57:13 +02:00
Julian Descottes 3549aa09cd Bug 1491315 - Use new ADB extension in WebIDE;r=hiro
--HG--
extra : rebase_source : 0b2b9c4713019baa22676b48f36ee3e28686a502
2018-09-14 15:59:24 +02:00
Nicholas Nethercote a8478fc575 Bug 1489381 - Remove devtools code depending on nsISettingsService. r=jdescottes
nsISettingsService isn't implemented, and hasn't been for some time. This patch
removes its use, and removes all the code that depends on its presence,
including getSetting() and getWallpaper().

--HG--
extra : rebase_source : e718bd5daf03179d42f42e00a55e0bebe3a03a2d
2018-09-07 15:01:22 +10:00
Dipen Patel aeed887ff8 Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=Gijs,snorp,jcj,mcmanus,sfraser,keeler,baku,ato
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 00:07:30 +00:00
Csoregi Natalia 0400fe7b57 Backed out changeset bd8baf88f373 (bug 1468222) for test_security-info-parser.js failures. CLOSED TREE 2018-09-08 03:16:25 +03:00
Dipen Patel 0679e09a9a Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=snorp,ato,sfraser,keeler,baku,mcmanus,Gijs
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

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

--HG--
extra : moz-landing-system : lando
2018-09-07 22:50:17 +00:00
Julian Descottes 7be03c4f9e Bug 1486703 - Display correct hostOnly values in storage inspector;r=miker
Differential Revision: https://phabricator.services.mozilla.com/D4712

--HG--
extra : moz-landing-system : lando
2018-09-07 10:41:42 +00:00
Jan Odvarko d548370809 Bug 1487274 - Use nsIHttpChannel.isThirdPartyTrackingResource to identify trackers; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D5018

--HG--
extra : moz-landing-system : lando
2018-09-07 06:55:19 +00:00
yulia 9611217838 Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

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

--HG--
extra : moz-landing-system : lando
2018-09-06 11:42:57 +00:00
arthur.iakab 4862d62ddf Backed out changeset 5e21be5fdf9d (bug 1429421)for build busteges CLOSED TREE 2018-09-06 12:12:40 +03:00
yulia 139e4e0b9a Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

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

--HG--
extra : moz-landing-system : lando
2018-09-06 08:55:50 +00:00
Dorel Luca 97066da84e Merge mozilla-central to mozilla-inbound 2018-09-05 19:07:40 +03:00
Nicolas Chevobbe f0d64d744d Bug 1217198 - Better autocompletion for template literals; r=Honza.
Add a new template literal state to findCompletionBeginning so we can
better handle the autocompletion for them.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 11:37:33 +00:00
Jan de Mooij cbb67627a3 Bug 722345 part 3 - Remove request API. r=luke
Differential Revision: https://phabricator.services.mozilla.com/D4424

--HG--
extra : rebase_source : 1842588c00dbc8fb4294ce5436cdb787190909b4
2018-08-28 09:53:30 +02:00
yulia 5ecbde0627 Bug 1447490 - replace GCLI toolbox buttons with highlighters and appropriate actors; r=ochameau
GCLI has been handling the state of our buttons as well as managing shared highlighters.
Since the gcli removal, we no longer share the rulers and measure with any other UI, so a location
for shared state is no longer needed.

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

--HG--
extra : moz-landing-system : lando
2018-09-03 14:54:04 +00:00
yulia 8f07c9bef8 Bug 1447487 - fix eyedropper telemetry check
--HG--
extra : rebase_source : 31650ec09a1b7182b094650f0037a794c80ea4a6
extra : source : 39e26d2366e115a7928e73518554f5944a62aa5a
2018-08-31 14:19:08 +02:00
yulia e721d86916 Bug 1447487 - remove all uses of GCLI eyedropper; r=ochameau
Summary:
this removes references to GCLI in the inspector front and from the browser menu, leaving
no further uses of gcli eyedropper

Test Plan: mochitests

Reviewers: ochameau

Tags: #secure-revision

Bug #: 1447487

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

--HG--
extra : rebase_source : a33632edb6127568ec65ca2837ba8c13a3c1ca78
extra : source : d8a1c6a80a59a69ab997f643ce313b022d081e13
2018-08-17 16:55:01 +02:00
Gurzau Raul f9c513f20c Backed out 3 changesets (bug 1447487, bug 1485374) for failing at browser_ext_devtools_panels_elements_sidebar.js and /mochitest/test_inspector-pick-color.html on a CLOSED TREE
Backed out changeset 82ef44f87f72 (bug 1447487)
Backed out changeset d8a1c6a80a59 (bug 1447487)
Backed out changeset d4761bb0096a (bug 1485374)
2018-08-30 21:31:53 +03:00
yulia cfc5028b6a Bug 1447487 - remove all uses of GCLI eyedropper; r=ochameau
Summary:
this removes references to GCLI in the inspector front and from the browser menu, leaving
no further uses of gcli eyedropper

Test Plan: mochitests

Reviewers: ochameau

Tags: #secure-revision

Bug #: 1447487

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

--HG--
extra : rebase_source : b2e916d0dba1d8f2872720a3558d0e961c0034a9
2018-08-17 16:55:01 +02:00
Brian Hackett bc4ee25f64 Bug 1483319 Part 2 - Treat replayForcedPause as unsolicited, r=jimb.
--HG--
extra : rebase_source : 4cf05351ec2a83a069599f904f3fbee6d626a0f1
2018-08-18 05:39:34 -10:00
Margareta Eliza Balazs 2fe43133db Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
Ciure Andrei c7bd3f7ba5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-29 01:06:58 +03:00
Ciure Andrei d716a04e20 Merge inbound to mozilla-central. a=merge 2018-08-29 00:58:21 +03:00
Michael Ratcliffe f99d1fce0e Bug 1435429 - Android 'mach mochitest' fails: 'A cross-directory support file path noted in a test manifest does not appear in any other manifest.' r=bc,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D4214

--HG--
extra : moz-landing-system : lando
2018-08-28 20:29:58 +00:00
Nicolas Chevobbe f9b5460bf2 Bug 672733 - Make autocomplete search case insensitive; r=Honza.
This patch adds a smarter heuristic for autocompletion results:
if the input first letter is lowercased, then we'll filter
matching properties case insensitively. But if the user starts
with an uppercase, we assume they know the property they want
and thus respect the casing.
For example: `win` will return both `window` and `Window`, but
`Win` will return `Window` only.
Due to this behavior, we change the order of the autocomplete
results so lowercased property are displayed before the uppercased
one.
If we take are example again, it's likely that if a user type `win`,
they want `window`, but the alphabetical order would return `Window`
first which would annoy user.

Now, since we return results that does not match exactly the user
input, we need to modify the frontend.

Usually, we only show the autocompletion popup if there are
at least 2 matching items, since 1 matching item will still
be displayed using the autocompletion text. But now, since the
input might not match, we want to still display the popup if
there is one matching item, but starts differentely than what
the user entered.
For example, the user typed `window.addeve`, which matches
`addEventListener`. The completion text will make it looks like
it will be completed to `window.addeventListener`, which would
be undefined. So showing the popup with the actual matching
property might avoid some confusion for the user.

A test was added to make sure the frontend works as expected.
Some test cases were added in the server test to make sure
the actor returns expected results. Other tests needed some
adjustement because of the insensitive case matches and the
new order of results.

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

--HG--
extra : moz-landing-system : lando
2018-08-27 16:08:56 +00:00
yulia e259742bdf 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
rename : devtools/shared/webconsole/screenshot-helper.js => devtools/shared/screenshot/save.js
extra : moz-landing-system : lando
2018-08-27 15:14:10 +00:00
arthur.iakab 5527acb8d8 Merge inbound to mozilla-central a=merge 2018-08-25 01:08:22 +03:00
Boris Chiou a1909a88ff Bug 1246764 - Part 2: Define path() for clip-path. r=emilio
For now, |clip-path: path()| is chrome-only, and not for shape-outside,
so we only implement the parser for clip-path. Besides, I didn't put
path() in BasicShape because path() doesn't use the reference box to
resolve the percentage or keywords (i.e. SVG path only accept floating
point or integer number as the css pixel value). Therefore, I add it into
ShapeSource, instead of BasicShape.

Differential Revision: https://phabricator.services.mozilla.com/D3633
2018-08-24 11:37:53 -07:00
David Keeler 1cd81e4c5a bug 1485087 - remove the option to use the TLS session cache from nsITLSServerSocket r=jryans,mayhemer
As initially implemented, nsITLSServerSocket by default enabled the use of the
TLS session cache provided by NSS. However, no consumers of nsITLSServerSocket
actually used it. Because it was an option, though, PSM had to jump through some
hoops to a) make it work in the first place and b) not have NSS panic on
shutdown. Furthermore, it meant increased memory usage for every user of Firefox
(and again, nothing actually used the feature, so this was for naught).

In bug 1479918, we discovered that if PSM shut down before Necko, NSS could
attempt to acquire a lock on the session cache that had been deleted, causing a
shutdown hang. We probably should make it less easy to make this mistake in NSS,
but in the meantime bug 1479918 needs uplifting and this workaround is the
safest, most straight-forward way to achieve this.

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

--HG--
extra : moz-landing-system : lando
2018-08-24 16:00:34 +00:00
Nicholas Nethercote 2fcd08a173 Bug 1486690 - Rename NS_str{,}dup and remove unnecessary checks after calls to them. r=glandium
The 'x' prefix makes it clearer that these are infallible.

A couple of nsJSID methods are now also infallible.

--HG--
extra : rebase_source : fcce44a00212d6d341afbf3827b31bd4f7355ad5
2018-08-28 15:58:54 +10:00
Jennifer Wilde 501f7d4d81 Bug 1482972 - convert uses of "defer" to "new Promise" in shared/transport/; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D4216

--HG--
extra : moz-landing-system : lando
2018-08-24 14:29:40 +00:00
Kris Maglione 9a8a840c9d Bug 1484496: Part 5d - Convert devtools/ nsISimpleEnumerator users to use JS iteration. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3732

--HG--
extra : rebase_source : 0154c72286ce0ca3ade84c5c360122861a36c7b0
extra : histedit_source : 83a8b267becbf86db5f8789d3673bd529da35286
2018-08-18 19:28:37 -07:00
Cosmin Sabou 3211507dfb Merge mozilla-inbound to mozilla-central. a=merge 2018-08-24 00:40:14 +03:00
Alexandre Poirot fe663d5817 Bug 1485702 - Remove unused WalkerFront.search's selectorsOnly argument. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D4089

--HG--
extra : moz-landing-system : lando
2018-08-23 15:36:48 +00:00
Gabriel Luong 44a09b6489 Bug 1478397 - Part 3: Return the computed style properties and flex item sizing information from the FlexItemActor. r=rcaliman 2018-08-28 10:43:40 -04:00
Gabriel Luong 24cbdfc7b5 Bug 1478397 - Part 1: Implement a FlexItemActor to retrieve information about the flex items. r=rcaliman 2018-08-28 10:43:39 -04:00
Alexandre Poirot 249c49e788 Bug 1026583 - Avoid sending events for already destroyed actors. r=yulia
Reviewers: yulia!

Tags: #secure-revision

Bug #: 1026583

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

MozReview-Commit-ID: 3485VTbMRqO
2018-08-28 05:42:32 -07:00
Jan Odvarko a735040675 Bug 1333994 - The network tab should flag resources on the tracking protection list; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D3862

--HG--
extra : moz-landing-system : lando
2018-08-23 07:36:08 +00:00
Gabriel Luong 4a7f648297 Bug 1484483 - Part 2: Return the computed style properties of the flex container from the FlexboxActor. r=rcaliman 2018-08-22 21:07:08 -04:00
Jan Odvarko 3476ed9421 Bug 1470815 - Make sure the Security panel is visible for HTTP requests in the Console panel; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D3904

--HG--
extra : moz-landing-system : lando
2018-08-22 11:14:45 +00:00
Boris Chiou dbe6b4f2db Bug 1429298 - Part 7: Tests. r=emilio
In wpt, now we support "offset-path: none | path()", so parsing none or
path function should be correct. Animations which animate "from none"
or "to none" will pass because we could serialize "none", even if we
don't support animations on offset-path.

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


--HG--
rename : testing/web-platform/tests/css/motion/offset-path-string.html => testing/web-platform/tests/css/motion/offset-path-string-001.html
2018-08-21 22:41:46 -07:00
Boris Chiou a8bd6dfc8a Bug 1429298 - Part 2: Define offset-path and implement it in style system. r=emilio
Define OffsetPath & SVGPathData on the servo-side, and StyleMotion &
StyleSVGPath on the gecko-side. We parse the SVG Path string into a
vector of PathCommand. To build the gfx::Path, we will convert it into
gfx::Path later in a different patch.

The basic flow is:
* Parse SVG Path String into SVGPathData (in Rust).
* Use cbindgen to make sure the layout of PathCommand and StylePathCommand,
  and then set the Box[PathCommand] into nsTArray<StylePathCommand>.
* Try to convert nsTArray<StylePathCommand> into gfx::Path. (This part
  will be implemented in a different patch.)

Finally, we use the gfx::Path to create a motion path transform.
The layout implementation is in the later patch.

Differential Revision: https://phabricator.services.mozilla.com/D2963
2018-08-21 22:41:38 -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
Alexandre Poirot 93427a73f7 Bug 1482070 - Rename NetworkMonitor to NetworkObserver and move it next to the NetworkMonitorActor. r=Honza
Summary: Depends On D3604

Reviewers: Honza!

Tags: #secure-revision

Bug #: 1482070

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

MozReview-Commit-ID: ArS8SxVraiu


--HG--
rename : devtools/shared/webconsole/network-monitor.js => devtools/server/actors/network-monitor/network-observer.js
2018-08-20 09:06:23 -07:00
Alexandre Poirot 5e3572023f Bug 1482070 - Move StackTraceCollector to its own file. r=Honza
Summary: Depends On D3603

Reviewers: Honza!

Tags: #secure-revision

Bug #: 1482070

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

MozReview-Commit-ID: 53aaLHR6lv
2018-08-20 09:06:22 -07:00
Alexandre Poirot 32c1768465 Bug 1482070 - Move ChannelEventSink to its own file. r=Honza
Summary: Depends On D3602

Reviewers: Honza!

Tags: #secure-revision

Bug #: 1482070

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

MozReview-Commit-ID: Kr3vYvP1oCZ


--HG--
rename : devtools/server/actors/moz.build => devtools/server/actors/network-monitor/moz.build
2018-08-20 09:06:22 -07:00
Alexandre Poirot 681faed609 Bug 1482070 - Move ConsoleAPIListener to its own file. r=Honza
Summary: Depends On D3598

Reviewers: Honza!

Tags: #secure-revision

Bug #: 1482070

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

MozReview-Commit-ID: k3KVzlmXOR


--HG--
rename : devtools/server/actors/webconsole/listeners.js => devtools/server/actors/webconsole/listeners/console-api.js
2018-08-20 09:06:21 -07:00
Alexandre Poirot 659626feef Bug 1482070 - Move ConsoleServiceListener to its own file. r=Honza
Summary: Depends On D3597

Reviewers: Honza!

Tags: #secure-revision

Bug #: 1482070

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

MozReview-Commit-ID: 7jdh33iKfgU


--HG--
rename : devtools/server/actors/webconsole/listeners.js => devtools/server/actors/webconsole/listeners/console-service.js
2018-08-20 09:06:20 -07:00
Alexandre Poirot ed93e0337d Bug 1482070 - Move ConsoleProgressListener to its own file. r=Honza
Reviewers: Honza!

Tags: #secure-revision

Bug #: 1482070

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

MozReview-Commit-ID: 99V3BJqKqZH


--HG--
rename : devtools/server/actors/webconsole/moz.build => devtools/server/actors/webconsole/listeners/moz.build
2018-08-20 09:06:20 -07:00
Margareta Eliza Balazs 6c198262de Merge inbound to mozilla-central. a=merge 2018-08-17 12:46:14 +03:00
Hiroyuki Ikezoe 2e06ce7f26 Bug 1483730 - Return null from getFileForAdb if the adb file doesn't exit. r=jdescottes
Summary: Depends on D3463

Reviewers: jdescottes

Reviewed By: jdescottes

Bug #: 1483730

Differential Revision: https://phabricator.services.mozilla.com/D3464
2018-08-17 06:58:42 +09:00
Hiroyuki Ikezoe e7f608e1b0 Bug 1483730 - Call nsIFile.exists method. r=jdescottes
Reviewers: jdescottes

Reviewed By: jdescottes

Bug #: 1483730

Differential Revision: https://phabricator.services.mozilla.com/D3463
2018-08-17 06:56:52 +09:00
Tiberius Oros 246f2b4fab Merge inbound to mozilla-central. a=merge 2018-08-17 00:32:50 +03:00
Alexandre Poirot 687c2d87e3 Bug 1479524 - Lazy load network-monitor.js dependencies. r=jdescottes
MozReview-Commit-ID: AeqTRlwXQRL
2018-08-16 10:14:51 -07:00
Alexandre Poirot c18e0c8a21 Bug 1479524 - Remove unused appId filter. r=jdescottes
MozReview-Commit-ID: FwIX9dQ4c83
2018-08-16 10:14:50 -07:00
Alexandre Poirot b840eb27bf Bug 1479524 - Always use message manager with NetworkMonitorActor. r=jdescottes
MozReview-Commit-ID: AXOd0i4NOjH
2018-08-16 10:14:50 -07:00
Xidorn Quan 464ef30ab4 Bug 1475033 part 3 - Add scrollbar-width property. r=heycam
MozReview-Commit-ID: CmCbaZosUrU

--HG--
extra : rebase_source : 85136c729524fdd8b9cdfcbf30e2bb35accd0d4a
2018-08-01 14:13:41 +10:00
Brendan Dahl 114c68f373 Bug 1482170 - Remove <Add/Remove>BroadcastListenerFor on XULDocument webidl. r=bz
These methods are only ever used in tests and no longer need to be exposed.
In test_bug445177.xul I tried to preserve more of the test, but everything
after the call to addBroadcastListenerFor is dependent on that.

MozReview-Commit-ID: C4vAxNir4O8
2018-08-15 09:14:23 -07:00
Andreea Pavel 870fc40e66 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-08-14 19:17:13 +03:00
Hiroyuki Ikezoe d1f6ab90ec Bug 1481699 - Merge two if statements for 'start-server' into a single one. r=jdescottes
And fix some log messages.
2018-08-13 06:12:55 +09:00
Csoregi Natalia 2466b82b72 Merge inbound to mozilla-central. a=merge 2018-08-13 18:42:53 +03:00
Hiroyuki Ikezoe 0381486a5f Bug 1481699 - Send host:kill command through TCP socket instead of spawning a new adb process with 'kill-server'. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3170
2018-08-13 06:12:55 +09:00
Hiroyuki Ikezoe db4c3c99a6 Bug 1481699 - Do not process any further data after we started shutting down the ADB server. r=jdescottes
In the genuine adb binary, when it received 'host:kill' command, it exits the
server process soon [1].  Whereas, in our mock adb.py which is based on
SocketServer.TCPServer in python, when we call
SocketServer.TCPServer.shutdown() in the case of 'kill-server' command, the
server process doesn't exit soon since the shutdown() function just sets a
flag [2] and serve_forever() polls it [3] every |poll_interval| seconds,
|poll_interval| is 0.5 seconds by default.  Thus it's possible that new incoming
requests are processed during polling.

This is the real cause of the race condition that the adb server still keeps
alive when 'adb kill-server' finished.  So we don't need to the workaround
for the race condition.

[1] 4039051d6d/adb/adb.cpp (1049)
[2] 65b5ef02ec/Lib/socketserver.py (L248)
[3] https://docs.python.org/2/library/socketserver.html#SocketServer.BaseServer.serve_forever

Differential Revision: https://phabricator.services.mozilla.com/D3169
2018-08-13 06:08:34 +09:00
Hiroyuki Ikezoe 720a215841 Bug 1481699 - Send back 'OKAY' to the client when the adb server received 'kill-server' command. r=jdescottes
Because the genuine adb binary does it [1].  And doing it before shutdown
thread is created to make sure it's sent to the client.

[1] 4039051d6d/adb/adb.cpp (1055)

Differential Revision: https://phabricator.services.mozilla.com/D3168
2018-08-13 06:08:34 +09:00
Hiroyuki Ikezoe 2a0f871277 Bug 1481699 - Rename ADBServer to ADBRequestHandler. r=jdescottes
Since it's actually a child of SocketServer.BaseRequestHandler.

Differential Revision: https://phabricator.services.mozilla.com/D3167
2018-08-13 06:08:33 +09:00
Alexandre Poirot caaa9566c0 Bug 1482090 - Instanciate Debugger API in the same global as DevTools modules. r=jdescottes
MozReview-Commit-ID: LS6t5CFSVom

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

--HG--
extra : moz-landing-system : lando
2018-08-13 12:47:40 +00:00
Alexandre Poirot 5135b70a76 Bug 1299344 - Fix exceptions when accessing DOMWindow and contentCharset when reload page against the netmonitor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D3020

--HG--
extra : moz-landing-system : lando
2018-08-13 12:37:41 +00:00
Nicolas Chevobbe 7a43defa74 Bug 1479521 - Update tests to match the new jsterm behavior; r=Honza.
Some test were relying on the existence of the complete function
and were using it in order to do integration test.
We modify those and instead trigger real user interaction for
making those assertions.
Additional test cases are added to the test files they fit in
so we have a broader coverage of user interaction in regard
to autocompletion.

Depends on D2825

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

--HG--
extra : moz-landing-system : lando
2018-08-13 08:37:09 +00:00
Nicolas Chevobbe 01f2cedfe4 Bug 1479521 - Refactor JsTerm autocompletion behavior; r=Honza.
We used to rely on different things to both display
the autocompletion text and accept an autocompletion.
This patches introduces new helper functions in order
to make the code more easy to reason about.
We also rollback our decision to show the popup when
there is only 1 item in the autocompletion list in
order to be more consistent with what Chrome does.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 10:07:15 +00:00
Nicholas Nethercote b9e071e2e8 Bug 1481998 - Make mozilla::Hash{Map,Set}'s entry storage allocation lazy. r=luke,sfink
Entry storage allocation now occurs on the first lookupForAdd()/put()/putNew().
This removes the need for init() and initialized(), and matches how
PLDHashTable/nsTHashtable work. It also removes the need for init() functions
in a lot of types that are built on top of mozilla::Hash{Map,Set}.

Pros:

- No need for init() calls and subsequent checks.

- No memory allocated for empty tables, which are not that uncommon.

Cons:

- An extra branch in lookup() and lookupForAdd(), but not in put()/putNew(),
  because the existing checkOverloaded() can handle it.

Specifics:

- Construction now can take a length parameter.

- init() is removed. Explicit length-setting, when necessary, now occurs in the
  constructors.

- initialized() is removed.

- capacity() now returns zero when the entry storage is absent.

- lookupForAdd() is no longer `const`, because it can instantiate the storage,
  which requires modifications.

- lookupForAdd() can now return an invalid AddPtr in two cases:

  - old: hashing failure (due to OOM in the hasher)

  - new: OOM while instantiating entry storage

  The existing failure handling paths for the old case work for the new case.

- clear(), finish(), and clearAndShrink() are replaced by clear(), compact(),
  and reserve(). The old compactIfUnderloaded() is also removed.

- Capacity computation code is now in its own functions, bestCapacity() and
  hashShift(). setTableSizeLog2() is removed.

- uint32_t is used throughout for capacities, instead of size_t, for
  consistency with other similar values.

- changeTableSize() now takes a capacity instead of a deltaLog2, and it can now
  handle !mTable.

Measurements:

- Total source code size is reduced by over 900 lines. Also, lots of existing
  lines got shorter (i.e. two checks were reduced to one).

- Executable size barely changed, down by 2 KiB on Linux64. The extra branches
  are compensated for by the lack of init() calls.

- Speed changed negligibly. The instruction count for Bench_Cpp_MozHash
  increased from 2.84 billion to 2.89 billion but any execution time change was
  well below noise.
2018-08-10 18:00:29 +10:00
Hiroyuki Ikezoe 9312c8f8ff Bug 1481691 - Unpack files only if the devtools-adb-extension versionis mismatch or there are no unpacked files. r=jdescottes
getManifestFromUnpacked() and isUnpacked() are mostly the same as they are in
binary-manager.js [1] in the adbhelper addon.  A big difference is that the
manifest.json copied from the extension is the manifest.json for the
devtools-adb-extension itself, not manifest.json(s) in a subdirectory for
each platforms (e.g. linux/manifest.json).

Due to the verion check in each xpcshell test needs to use a different version
for the test extension, otherwise subsequent tests will use unpacked files in
the first test case, thus the ADB mock won't be used at all.

[1] 0821424b6b/binary-manager.js
2018-08-10 16:57:21 +09:00
Hiroyuki Ikezoe 67bc64cb9f Bug 1481691 - Rename extractBinary to extractFiles and make it return a boolean instead of path string. r=jdescottes
In the next patch, we will extract manifest.json in the extension into the
profile directory.  And returning a boolean will make getFileForBinary()
simple with the extension version check which will be also introduced in the
next patch.
2018-08-10 16:32:21 +09:00
Hiroyuki Ikezoe e085258ff8 Bug 1481691 - Drop |sync| argument from kill() and stop(). r=jdescottes
We've been using them as synchrous mode only.
2018-08-10 16:32:21 +09:00
Hiroyuki Ikezoe 48c7716393 Bug 1481691 - Use Promise instead of PromiseUtils. r=jdescottes 2018-08-10 16:32:21 +09:00
Hiroyuki Ikezoe 0a417befc7 Bug 1481691 - Drop root relevant stuff and push and pull. r=jedescottes
As far as I can tell they were all for FirefoxOS.
2018-08-10 16:32:21 +09:00
Hiroyuki Ikezoe 9086628cb3 Bug 1481691 - Drop code for FirefoxOS. r=jdescottes 2018-08-10 16:32:21 +09:00
Hiroyuki Ikezoe 3de4909c47 Bug 1481691 - Drop code and comments for older versions of Firefox. r=jdescottes 2018-08-10 16:32:21 +09:00
Hiroyuki Ikezoe a65eb4c83e Bug 1481691 - Replace console.log and console.debug with dumpn. r=jdescottes 2018-08-10 16:32:21 +09:00
Hiroyuki Ikezoe 6f6938c775 Bug 1481691 - Add a preference for the devtools-adb-extension id. r=jdescottes 2018-08-10 16:32:20 +09:00
Nicolas Chevobbe c1e79affbb Bug 1472117 - Fix autocompletion with "." surrounded by spaces; r=bgrins.
Expressions like `window . addEventListener` are perfectly valid in JS,
but our autocompletion provider wasn't working well in such case.
We modify the JSPropertyProvider to make sure to handle this kind of
syntax and add test cases to make sure it works as intended.`

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

--HG--
extra : moz-landing-system : lando
2018-08-14 13:40:08 +00:00
Margareta Eliza Balazs a42d1c158f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-16 12:33:23 +03:00
Micah Tigley c449642b76 Bug 1473030 - Show accessible object's name and role information with the info-bar highlighter. r=gl,yzen
MozReview-Commit-ID: HyKIdqsL3u

--HG--
extra : rebase_source : 27d1e59e796debcff010c19d3621c8610ea6b338
2018-08-16 00:35:02 -04:00
L. David Baron 09f62c0e05 Bug 1481866: Swap order of values in 'overflow' shorthand property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D3069

--HG--
extra : moz-landing-system : lando
2018-08-10 02:20:53 +00:00
Tiberius Oros 4199099335 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-09 13:04:39 +03:00
Tiberius Oros aff5d4ad5d Merge inbound to mozilla-central. a=merge 2018-08-09 13:02:05 +03:00
Xidorn Quan 34de342864 Bug 1464786 - Implement flow-relative values for resize property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D2908

--HG--
extra : moz-landing-system : lando
2018-08-08 23:40:06 +00:00
Daniel Varga 31ff8cd9c8 Merge mozilla-central to mozilla inbound. a=merge 2018-08-09 01:10:56 +03:00
Xidorn Quan aa0eed2685 Bug 1481781 followup - Fixup order in properties-db.js on a CLOSED TREE.
--HG--
extra : source : 278775698907f55a8874cd797483a4b54680ee85
2018-08-08 23:20:04 +10:00
Hiroyuki Ikezoe bb43bca5d4 Bug 1469054 - Skip some test cases in test_adb.js on Windows. r=jdescottes
On Windows testNoTargetBinaries fails since we don't remove extracted binaries
in the profile directory when the extension is removed.  The original adbhelper
addon doesn't remove them either, so this problem has been underlying
originally.  We will fix it in a later bug.

Also on Windows, testStartAndStop and testTrackDevices fail.  That's because,
I guess, the adb mock (adb.py) isn't launched properly.  I will handle it
once after I take a windows laptop back.

MozReview-Commit-ID: 15wo1S0pX37

--HG--
extra : rebase_source : 3a8c60c174def8f24517e10d916384c5fa5ce45c
2018-08-09 15:43:44 +09:00
Hiroyuki Ikezoe e061017292 Bug 1469054 - Make check() in adb-running-checker fail if a certain period of time elapsed. r=jdescottes
On MacOSX connecting to a port which is not started listening gets stuck
(bug 1481963), to avoid the stuck, we make forcibly the function fail.

MozReview-Commit-ID: COVplVPx3vA

--HG--
extra : rebase_source : 2f048e8e8aa7e9b9212c6cfa31f3589b73e0087c
2018-08-09 15:43:44 +09:00
Hiroyuki Ikezoe cc02c63e27 Bug 1469054 - Make sure the ADB server is ready to listen from clients when we call adb.start(). r=jdescottes
There is a race condition that when we adb.start() finishes, i.e. the ADB server
is launched, the ADB server is not ready to listen from clients yet.  To avoid
this race condition in adb.start() function, we do wait until the server gets
ready.

MozReview-Commit-ID: EfSLA9uvhI9

--HG--
extra : rebase_source : 7b5938a3a7687e7072352aa65674631d2b1ee429
2018-08-09 15:43:39 +09:00
Hiroyuki Ikezoe ba4f116e0e Bug 1469054 - Make sure that the adb.py sends all data. r=jdescottes
It seems that, on chaos mode, we can't receive whole data set at once, i.e.
sending data will be split into some chunks, so the adb mock should check the
sent data length and if there remains still data which has to be sent, we have
to continue sending the rest of the data.

MozReview-Commit-ID: 5jeEH8KpNNW

--HG--
extra : rebase_source : 69bc849a48db649bf4f4786456464d3556a903d7
2018-08-09 14:27:57 +09:00
Hiroyuki Ikezoe 17cff22452 Bug 1469054 - ESLint: lint fix for adb-device.js. r=jdescottes
MozReview-Commit-ID: AYvHsiirrtt

--HG--
extra : rebase_source : b541f85809cb48b05f3ffe90b720ccea71db908d
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe bdd6379e19 Bug 1469054 - Adapt device.js in the adbhelper addon into devtools. r=jdescottes
The diff;
 --- /home/hiro/adbhelper/device.js	2018-07-19 06:18:41.613011481 +0900
 +++ devtools/shared/adb/adb-device.js	2018-08-06 10:18:38.808496752 +0900
 @@ -4,9 +4,7 @@

  "use strict";

 -const { ConnectionManager } =
 -  require("./devtools-require")("devtools/shared/client/connection-manager");
 -const adb = require("./adb");
 +const { ADB } = require("devtools/shared/adb/adb");

  /**
   * A Device instance is created and registered with the Devices module whenever
 @@ -21,34 +19,18 @@ function Device(id) {
  }

  Device.prototype = {
 -  /**
 -   * DEPRECATED: This is specific to how we connect to Firefox OS.  Use cases
 -   * that interact with other kinds of devices should likely use the more
 -   * general |forwardPort| method directly.
 -   */
 -  connect(remotePort) {
 -    let port = ConnectionManager.getFreeTCPPort();
 -    let local = "tcp:" + port;
 -    let remote = "localfilesystem:/data/local/debugger-socket";
 -    if (remotePort) {
 -      remote = "tcp:" + remotePort;
 -    }
 -    return adb.forwardPort(local, remote)
 -              .then(() => port);
 -  },
 -
    type: "adb",

 -  shell: adb.shell.bind(adb),
 -  forwardPort: adb.forwardPort.bind(adb),
 -  push: adb.push.bind(adb),
 -  pull: adb.pull.bind(adb),
 -  reboot: adb.reboot.bind(adb),
 -  rebootRecovery: adb.rebootRecovery.bind(adb),
 -  rebootBootloader: adb.rebootBootloader.bind(adb),
 +  shell: ADB.shell.bind(ADB),
 +  forwardPort: ADB.forwardPort.bind(ADB),
 +  push: ADB.push.bind(ADB),
 +  pull: ADB.pull.bind(ADB),
 +  reboot: ADB.reboot.bind(ADB),
 +  rebootRecovery: ADB.rebootRecovery.bind(ADB),
 +  rebootBootloader: ADB.rebootBootloader.bind(ADB),

    isRoot() {
 -    return adb.shell("id").then(stdout => {
 +    return ADB.shell("id").then(stdout => {
        if (stdout) {
          let uid = stdout.match(/uid=(\d+)/)[1];
          return uid == "0";
 @@ -58,7 +40,7 @@ Device.prototype = {
    },

    summonRoot() {
 -    return adb.root();
 +    return ADB.root();
    },

    getModel() {

MozReview-Commit-ID: FlbKPm6VDs5

--HG--
extra : rebase_source : 92a4d061963a1d261243fb6865cdeea283c8870d
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe 3f97d5b446 Bug 1469054 - ESLint: lint fix for adb-scanner.js. r=jdescottes
MozReview-Commit-ID: 9riT60wVuCe

--HG--
extra : rebase_source : 0054cb81d786d393b7f9e791ff596dc49b6fc7f4
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe e6e3bc21ae Bug 1469054 - Adapt scanner.js in the adbhelper addon into devtools. r=jdescottes
A big difference between them is ADBScanner object itself is exported instead of
exporting unregister() method, since in the new about:debugging we have a toggle
button to install the new adbhelper extension, so that we should observe
uninstalling/installing the new adbhelper extension there, which means when the
adbhelper is removed we have to unregister this scanner there.

The diff;
 --- /home/hiro/adbhelper/scanner.js	2018-08-06 09:47:24.199685034 +0900
 +++ devtools/shared/adb/adb-scanner.js	2018-08-06 11:52:05.423496900 +0900
 @@ -2,19 +2,17 @@
   * License, v. 2.0. If a copy of the MPL was not distributed with this
   * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

 -const { Cu } = require("chrome");
 -const EventEmitter =
 -  require("./devtools-require")("devtools/shared/event-emitter");
 -const { Task } = Cu.import("resource://gre/modules/Task.jsm", {});
 -const unload = require("./unload");
 +"use strict";
 +
 +const EventEmitter = require("devtools/shared/event-emitter");
  const { ConnectionManager } =
 -  require("./devtools-require")("devtools/shared/client/connection-manager");
 +  require("devtools/shared/client/connection-manager");
  const { Devices } =
 -  require("./devtools-import")("resource://devtools/shared/apps/Devices.jsm");
 -const Runtimes =
 -  require("./devtools-require")("devtools/client/webide/modules/runtimes");
 +  require("devtools/shared/apps/Devices.jsm");
 +const { RuntimeTypes } =
 +  require("devtools/client/webide/modules/runtime-types");

 -let Scanner = {
 +const ADBScanner = {

    _runtimes: [],

 @@ -41,9 +39,9 @@ let Scanner = {
        return this._updatingPromise;
      }
      this._runtimes = [];
 -    let promises = [];
 -    for (let id of Devices.available()) {
 -      let device = Devices.getByName(id);
 +    const promises = [];
 +    for (const id of Devices.available()) {
 +      const device = Devices.getByName(id);
        promises.push(this._detectRuntimes(device));
      }
      this._updatingPromise = Promise.all(promises);
 @@ -56,13 +54,13 @@ let Scanner = {
      return this._updatingPromise;
    },

 -  _detectRuntimes: Task.async(function* (device) {
 -    let model = yield device.getModel();
 -    let detectedRuntimes = yield FirefoxOSRuntime.detect(device, model);
 +  _detectRuntimes: async function(device) {
 +    const model = await device.getModel();
 +    let detectedRuntimes = await FirefoxOSRuntime.detect(device, model);
      this._runtimes.push(...detectedRuntimes);
 -    detectedRuntimes = yield FirefoxOnAndroidRuntime.detect(device, model);
 +    detectedRuntimes = await FirefoxOnAndroidRuntime.detect(device, model);
      this._runtimes.push(...detectedRuntimes);
 -  }),
 +  },

    scan() {
      return this._updateRuntimes();
 @@ -74,7 +72,7 @@ let Scanner = {

  };

 -EventEmitter.decorate(Scanner);
 +EventEmitter.decorate(ADBScanner);

  function Runtime(device, model, socketPath) {
    this.device = device;
 @@ -83,15 +81,15 @@ function Runtime(device, model, socketPa
  }

  Runtime.prototype = {
 -  type: Runtimes.RuntimeTypes.USB,
 +  type: RuntimeTypes.USB,
    connect(connection) {
 -    let port = ConnectionManager.getFreeTCPPort();
 -    let local = "tcp:" + port;
 +    const port = ConnectionManager.getFreeTCPPort();
 +    const local = "tcp:" + port;
      let remote;
      if (this._socketPath.startsWith("@")) {
 -        remote = "localabstract:" + this._socketPath.substring(1);
 +      remote = "localabstract:" + this._socketPath.substring(1);
      } else {
 -        remote = "localfilesystem:" + this._socketPath;
 +      remote = "localfilesystem:" + this._socketPath;
      }
      return this.device.forwardPort(local, remote).then(() => {
        connection.host = "localhost";
 @@ -108,26 +106,26 @@ function FirefoxOSRuntime(device, model)
    Runtime.call(this, device, model, "/data/local/debugger-socket");
  }

 -FirefoxOSRuntime.detect = Task.async(function* (device, model) {
 -  let runtimes = [];
 -  let query = "test -f /system/b2g/b2g; echo $?";
 -  let b2gExists = yield device.shell(query);
 +FirefoxOSRuntime.detect = async function(device, model) {
 +  const runtimes = [];
 +  const query = "test -f /system/b2g/b2g; echo $?";
 +  let b2gExists = await device.shell(query);
    // XXX: Sometimes we get an empty response back.  Likely a bug in our shell
    // code in this add-on.
    // There are also some Android devices that do not have `test` installed.
    for (let attempts = 3; attempts > 0; attempts--) {
 -    b2gExists = yield device.shell(query);
 +    b2gExists = await device.shell(query);
      if (b2gExists.length == 3) {
        break;
      }
    }
    if (b2gExists === "0\r\n") {
 -    let runtime = new FirefoxOSRuntime(device, model);
 +    const runtime = new FirefoxOSRuntime(device, model);
      console.log("Found " + runtime.name);
      runtimes.push(runtime);
    }
    return runtimes;
 -});
 +};

  FirefoxOSRuntime.prototype = Object.create(Runtime.prototype);

 @@ -142,28 +140,29 @@ function FirefoxOnAndroidRuntime(device,
  }

  // This requires Unix socket support from Firefox for Android (35+)
 -FirefoxOnAndroidRuntime.detect = Task.async(function* (device, model) {
 -  let runtimes = [];
 +FirefoxOnAndroidRuntime.detect = async function(device, model) {
 +  const runtimes = [];
    // A matching entry looks like:
 -  // 00000000: 00000002 00000000 00010000 0001 01 6551588 /data/data/org.mozilla.fennec/firefox-debugger-socket
 -  let query = "cat /proc/net/unix";
 -  let rawSocketInfo = yield device.shell(query);
 +  // 00000000: 00000002 00000000 00010000 0001 01 6551588
 +  //  /data/data/org.mozilla.fennec/firefox-debugger-socket
 +  const query = "cat /proc/net/unix";
 +  const rawSocketInfo = await device.shell(query);
    let socketInfos = rawSocketInfo.split(/\r?\n/);
    // Filter to lines with "firefox-debugger-socket"
    socketInfos = socketInfos.filter(l => l.includes("firefox-debugger-socket"));
    // It's possible to have multiple lines with the same path, so de-dupe them
 -  let socketPaths = new Set();
 -  for (let socketInfo of socketInfos) {
 -    let socketPath = socketInfo.split(" ").pop();
 +  const socketPaths = new Set();
 +  for (const socketInfo of socketInfos) {
 +    const socketPath = socketInfo.split(" ").pop();
      socketPaths.add(socketPath);
    }
 -  for (let socketPath of socketPaths) {
 -    let runtime = new FirefoxOnAndroidRuntime(device, model, socketPath);
 +  for (const socketPath of socketPaths) {
 +    const runtime = new FirefoxOnAndroidRuntime(device, model, socketPath);
      console.log("Found " + runtime.name);
      runtimes.push(runtime);
    }
    return runtimes;
 -});
 +};

  FirefoxOnAndroidRuntime.prototype = Object.create(Runtime.prototype);

 @@ -201,21 +200,4 @@ Object.defineProperty(FirefoxOnAndroidRu
    }
  });

 -exports.register = function() {
 -  // Only register our |Scanner| if the API exists
 -  if (Runtimes && Runtimes.RuntimeScanners) {
 -    // There may be an older ADB scanner registered by default
 -    // If so, we must disable it to avoid duplicate runtimes
 -    if (Runtimes.DeprecatedAdbScanner) {
 -      Runtimes.RuntimeScanners.remove(Runtimes.DeprecatedAdbScanner);
 -      unload(() => {
 -        Runtimes.RuntimeScanners.add(Runtimes.DeprecatedAdbScanner);
 -      });
 -    }
 -    // Add our scanner
 -    Runtimes.RuntimeScanners.add(Scanner);
 -    unload(() => {
 -      Runtimes.RuntimeScanners.remove(Scanner);
 -    });
 -  }
 -};
 +exports.ADBScanner = ADBScanner;

MozReview-Commit-ID: 2PC1ochp19E

--HG--
extra : rebase_source : c89834d973de6afaf76226fe1384cbb5304419f0
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe 0ae3177157 Bug 1469054 - Add async annotation for adb.start(). r=jdescottes
MozReview-Commit-ID: 534q7l33l7o

--HG--
extra : rebase_source : e6805ea7483fa3c2f1f92920a99a0c5c4fbeb745
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe 5528ed6336 Bug 1469054 - ESLint: Add no-fallthrough annotation. r=jdescottes
MozReview-Commit-ID: 5tBviheMTTk

--HG--
extra : rebase_source : e2a3a8fb8b3659711a1187a5d4d72e792417bc4e
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe 194735b065 Bug 1469054 - ESLint: Use integer for the radix on parseInt. r=jdescottes
I am not sure this had caused real issue though.

MozReview-Commit-ID: ISSSJCYcpAm

--HG--
extra : rebase_source : 515934abf244d7cee2605117b3fffc22d88d355b
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe 3f3aca023a Bug 1469054 - ESLint: Drop function name. r=jdescottes
MozReview-Commit-ID: LsUzDI0fkVc

--HG--
extra : rebase_source : 6389a6e724a663df47d5b753a94bfb1060300193
2018-08-09 14:27:56 +09:00
Hiroyuki Ikezoe b7a7a4008d Bug 1469054 - ESLint: Drop 'a' prefix from argument names. r=jdescottes
MozReview-Commit-ID: J3v5NKglA2B

--HG--
extra : rebase_source : 40c0f3edd904d5ecdd6a8fada20f0fb627c7b759
2018-08-09 14:27:55 +09:00
Hiroyuki Ikezoe a37470bc9c Bug 1469054 - ESLint: Lint fixes. r=jdescottes
Changes are:

- s/let/const/g if applicable
- braces for 'if' block
- identation fixes
- Moved a statement in setTimeout callback on the next line.

MozReview-Commit-ID: HyZ9zrbK3iJ

--HG--
extra : rebase_source : 61f217419778cee2e94786f1a9a6c9647dda0f87
2018-08-09 14:27:55 +09:00
Hiroyuki Ikezoe 897c035cee Bug 1469054 - Make sure the adb server stops. r=jdescottes
Without this change, the test in this patch does fail since when the test
starts, the adb server is still running for the previous test, thus
ADB.start() doesn't start a new adb server, then after that when we check
that the adb server is running by adb-running-checker, it tells us the adb
server is NOT running at that moment.

MozReview-Commit-ID: KRo30WmAsAY

--HG--
extra : rebase_source : 96348d8ee94df375b36b3d68683c292cd770fe86
2018-08-09 14:27:55 +09:00
Hiroyuki Ikezoe e16481514b Bug 1469054 - Adapt implementations for adb.start() and adb.stop() and relevant stuff. r=jdescottes
MozReview-Commit-ID: LF23OQtXxkj

--HG--
extra : rebase_source : 77bf02390cfb7dc9cd12de138bca74c715cdc968
2018-08-09 14:27:55 +09:00
Hiroyuki Ikezoe 49a6bd373e Bug 1469054 - Extract adb binary and related files into local profile directory from the extension. r=jdescottes
The new devtools-adb-extension should have adb.json on the top of the extension
directory, and devtools fetches the adb.json and parses it then copies the blobs
into local profile directory.

NOTE: Though we are going to use the same adb.json for all platforms, we will
pack only the corresponding blobs for each platform.  E.g. the extension for
Linux64 will have only linux64/adb.

The adb.json should look like this;

  {
    "Linux": {
      "x86": [
        "linux/adb"
      ],
      "x86_64": [
        "linux64/adb"
      ]
    },
    "Darwin": {
      "x86_64": [
        "mac64/adb"
      ]
    },
    "WINNT": {
      "x86": [
        "win32/adb.exe",
        "win32/AdbWinApi.dll",
        "win32/AdbWinUsbApi.dll"
      ],
      "x86_64": [
        "win32/adb.exe",
        "win32/AdbWinApi.dll",
        "win32/AdbWinUsbApi.dll"
      ]
    }
  }

unpackFile() here is mostly the same as in binary-manager.js in the adbhelper
addon.

MozReview-Commit-ID: 7aprfaaeTAT

--HG--
extra : rebase_source : 64c55066207a21782c0cbd0ca2294baf1ab61d40
2018-08-09 14:27:55 +09:00
Brendan Dahl 027788b3ce Bug 1481286 - Move command dispatcher from XULDocument to Document. r=bz
Allows non-XUL chrome privilege documents to also use the command
dispatcher. The command dispatcher is created lazily since it will not
always be used.

Update test to reflect removal of the XUL attribute "commandDispatcher"
from content privilege XUL.

MozReview-Commit-ID: HUXMG9kx4ft
2018-08-08 09:02:03 -07:00
Jonathan Watt d1601e1442 Bug 1480073 pt 2. Enable the '-webkit-appearance' alias for '-moz-appearance' for EARLY_BETA_OR_EARLIER. r=emilio 2018-08-01 12:01:33 +01:00
Tom Tromey 1ca6fd6782 Bug 1478184 - fix handling of html comments in parseDeclarations; r=gl
parseDeclarations was ignoring html comment tokens, but in fact they
should not be treated any differently from other CSS tokens.

MozReview-Commit-ID: 27Mxt5zbSSJ

--HG--
extra : amend_source : 91e47bbf6951ac9dd4709ac10c49ff51c1781ce8
2018-08-07 13:03:34 -07:00
Brian Hackett 9844ce064b Bug 1479058 Part 6 - ReplayDebugger and server/client changes to support time warps, r=jimb.
--HG--
extra : rebase_source : 5972ae72f0601e3daa2506e1be3844dc77e3bafc
2018-08-02 23:30:19 +00:00
Boris Zbarsky 357b6b1348 Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D2669

--HG--
extra : moz-landing-system : lando
2018-08-03 00:05:07 +00:00
Narcis Beleuzu 4684ccf98e Merge inbound to mozilla-central. a=merge 2018-08-03 01:28:14 +03:00
Jan de Mooij 3af36d3d86 Bug 1479363 part 10 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in other directories. r=mrbkap 2018-08-02 19:30:17 +02:00
Alexandre Poirot cfe9ef4cae Bug 1444132 - Fetch stacks from content process only on-demand. r=jryans
MozReview-Commit-ID: 727tzsqkkEp

--HG--
extra : rebase_source : daad7d90a5d37145f9c17b1d98dfe2dc1b2c7c23
2018-07-17 08:21:35 -07:00
Alexandre Poirot 91c15e3f3f Bug 1444132 - Remove the old proxy code. r=jryans
MozReview-Commit-ID: 33LcN5c5o4D

--HG--
extra : rebase_source : 5286e8465932127b3c2643636761a6570974608b
2018-07-17 02:23:49 -07:00
Alexandre Poirot c060f7dcf0 Bug 1444132 - Fix stacktrace support with the new setup. r=jryans
MozReview-Commit-ID: 1g5TU9yoj0E

--HG--
extra : rebase_source : ae5f3a8ba4aad8bc1d35a3570bf8856de17e6b02
2018-07-16 10:05:22 -07:00
Noemi Erli 58e27f3dd9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-02 12:04:24 +03:00
Noemi Erli 8f66a71e70 Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
Nicholas Nethercote 93bbf0be8b Bug 1478879 - Remove Range/Enum use in devtools/. r=sfink
--HG--
extra : rebase_source : 6ebdd04529e347cc47235355e952f6d59b796383
2018-07-31 10:31:00 +10:00
dvarga 09eac64963 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 01:19:44 +03:00
Brian Grinstead d2ba8811dc Bug 1479543 - Expose getBoxObjectFor on Document instead of XULDocument;r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2570

--HG--
extra : moz-landing-system : lando
2018-08-01 22:00:44 +00:00
Emilio Cobos Álvarez 3cd323e6da Bug 1480043: Remove the concept of 'canonical' pseudos. r=xidorn
We only have this so that ::-moz-placeholder keeps serializing as
::-moz-placeholder, but I don't think anybody really cares.

Edge aliases ::-webkit-input-placeholder to ::-ms-input-placeholder at parse
time as well, as can be seen in:

```
let s = document.createElement('style');
s.innerHTML = `input::-webkit-input-placeholder { color: red };`;
document.body.appendChild(s);
document.body.innerHTML = s.sheet.cssRules[0].cssText;
```

And I think this is more consistent with what we do for CSS properties that are
aliases.

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

MozReview-Commit-ID: 3ImDWamJhxh
2018-08-01 15:57:47 +02:00
Jonathan Watt 11e49726b5 Bug 1428676 pt 1. Add a '-moz-menulist-button' value to '-moz-appearance'. r=emilio
The '-moz-menulist-button' value currently behavies identically to the
'menulist-button' value.  This is not implemented as an alias because later
patches in this patch series will change the behavior of our pre-existing
'menulist-button' value to more closely match what Chrome does.
2018-06-19 20:12:45 +01:00
shindli 0a48a3cd3c Backed out 3 changesets (bug 1428676) for bc failures in browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE
Backed out changeset 6ba5975115fc (bug 1428676)
Backed out changeset 7f1270a9ec3d (bug 1428676)
Backed out changeset 662bfc31a950 (bug 1428676)
2018-07-31 19:30:46 +03:00
Jonathan Watt e8a416046f Bug 1428676 pt 1. Add a '-moz-menulist-button' value to '-moz-appearance'. r=emilio
The '-moz-menulist-button' value currently behavies identically to the
'menulist-button' value.  This is not implemented as an alias because later
patches in this patch series will change the behavior of our pre-existing
'menulist-button' value to more closely match what Chrome does.

--HG--
extra : rebase_source : b66bf6427db5be2eb12f4e0aa36d22a4da46555a
2018-06-19 20:12:45 +01:00
Boris Zbarsky 79181a1a13 Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
Alexandre Poirot 3ea819fbef Bug 1444132 - Spawn a NetworkMonitorActor directly in the parent process. r=jryans
This allows to create NetworkEventActor directly from the parent process
and avoid most of the data being piped from the parent to the content processes.

MozReview-Commit-ID: 8p3A5yl5eVB

--HG--
extra : rebase_source : 49eb0406eff31b8262ac316884a4abd57512f6cf
2018-03-08 09:13:26 -08:00
Emilio Cobos Álvarez dbf24cdab5 Bug 1478990: Make NonCustomPropertyId <-> nsCSSPropertyId conversions fast. r=xidorn
We have a different order in nsCSSPropertyId for no good reason. The only
invariant there is that longhands come before shorthands, and shorthands before
aliases.

Luckily that's also an invariant that NonCustomPropertyId has, so we can reuse
them.

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

MozReview-Commit-ID: 1hsQu6hmqiN
2018-07-30 12:51:19 +02:00
Makoto Kato aa6e598c39 Bug 1462019 - Part 2. Use abstract socket address for USB remote debugging. r=jryans 2018-07-25 14:47:49 +09:00
Kris Maglione 031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Kris Maglione 02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Kris Maglione 636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Jan de Mooij 80adc67aba Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Kristen Wright 806241e4f4 Bug 1476141 - updated test files to handle a new coarsetype r=jimb
Some test files were affected by adding a new CoarseType, particularly in XPCShell tests. New rules were added to handle this CoarseType, and in a few cases the IDs of deserialized nodes had to be adjusted. The colors of CoarseTypes have also changed slightly and the resulting tests had to be updated.

--HG--
extra : histedit_source : 99db02f1b6acafb1376f71af3b8fceb9adbbb8e0
2018-07-17 16:23:29 -07:00
Kristen Wright 927abec5f2 Bug 1476141 - JS::ubi::Nodes represent DOM structure in more detail r=KrisWright
Added a new CoarseType that refers to DOM nodes. Updated the trees to represent the CoarseType. Created a new type of count in the heap snapshot that sorts the data by a more descriptive type name. Created the descriptive in JS::ubi::Base.

--HG--
extra : histedit_source : be24efa4d2ccb85e82046d7cf7d2c3a1e13b1fd7
2018-07-16 14:42:07 -07:00
Dorel Luca 8e526cc8b4 Backed out changeset fdaeee8bac86 (bug 1476141) for XPCshell failure on devtools/shared/heapsnapshot/tests/unit/test_census_diff_03.js 2018-07-27 16:32:34 +03:00
Kristen Wright 6dbed57356 Bug 1476141 - updated test files to handle a new coarsetype r=jlmb
Some test files were affected by adding a new CoarseType, particularly in XPCShell tests. New rules were added to handle this CoarseType, and in a few cases the IDs of deserialized nodes had to be adjusted. The colors of CoarseTypes have also changed slightly and the resulting tests had to be updated.

--HG--
extra : rebase_source : 06d5203023251665adf933215898f83f991dbd1a
2018-07-17 16:23:29 -07:00
Brian Grinstead 6a6ca1a08c Bug 1475342 - Move document.getElementsByAttribute[NS] to ParentNode so it'll work for HTML document and elements;r=bz
It's currently only accessible on XULDocument and XULElement, but that makes porting existing
JS to run in an HTML document inconvenient. We could alternatively change calling JS, but
this can be easily moved and exposed in chrome contexts.

MozReview-Commit-ID: JitYET20NSE

--HG--
extra : rebase_source : 75d823c688cba8d84dc19705e83284be383962f2
2018-07-26 13:40:13 -07:00
Brian Grinstead f4f3495472 Bug 1477765 - Handle rejected Promises when inspecting an object;r=jimb
This changes the behavior for inspecting rejected Promises such that:

(1) We don't consider them safe getters, treating them as we would a thrown exception
(2) Manually handle the rejection with `catch` when possible, so that we don't create
    an error when trying to inspect the promise and leaving it unhandled

MozReview-Commit-ID: HZL4BrjCKkA

--HG--
extra : rebase_source : 45d84b1c8ef5a6fc2a9c060dba44b2f56147740b
2018-07-25 13:16:03 -07:00
Dipen Patel 7641beb1f8 Bug 1475647 - Remove nsISSLStatusProvider interface. r=baku,Gijs,jchen,jryans,keeler,mcmanus
- Access nsISSLStatus directly as a member of nsITransportSecurityInfo
and nsISecureBrowserUI.  This is part of a larger effort to consolidate
nsISSLStatus and nsITransportSecurityInfo.
- The TabParent implementation of GetSecInfo will always return null.
- Removed unnecessary QueryInterface calls
- Style adherence updates

MozReview-Commit-ID: Dzy6t2zYljL

--HG--
extra : rebase_source : 9c400bed3c9d29a186fc987c9bd0ffceb37bfd94
2018-07-13 11:48:55 -07:00
Andreea Pavel d0f6470c17 Backed out changeset c235d6f86c22 (bug 1475647) for breaking firefox ui at testing/firefox-ui/tests/puppeteer/test_tabbar.py on a CLOSED TREE 2018-07-25 19:34:58 +03:00
Dipen Patel 8670057dd5 Bug 1475647 - Remove nsISSLStatusProvider interface. r=baku,Gijs,jchen,jryans,keeler,mcmanus
- Access nsISSLStatus directly as a member of nsITransportSecurityInfo
and nsISecureBrowserUI.  This is part of a larger effort to consolidate
nsISSLStatus and nsITransportSecurityInfo.
- The TabParent implementation of GetSecInfo will always return null.
- Removed unnecessary QueryInterface calls
- Style adherence updates

MozReview-Commit-ID: Dzy6t2zYljL

--HG--
extra : rebase_source : fbfbcf7608efbfb35c9be4018ff0f4e70b2768d2
2018-07-13 11:48:55 -07:00