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

381 Коммитов

Автор SHA1 Сообщение Дата
J. Ryan Stinnett 39694624d1 Bug 1306975 - Support containers in RDM. r=gl
This adds support for container tabs / contextual identity in Responsive Design
Mode.  Tabs in non-default contexts can now be opened in RDM just like regular
tabs.

MozReview-Commit-ID: BofTgrowjGV

--HG--
extra : rebase_source : 171f6d0579ef3528160729b964d1cc71e1d74386
2018-02-23 17:33:55 -06:00
Julian Descottes 7fdc2c153f Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks

--HG--
extra : rebase_source : a3f07665a42c2779a85b7901a07206266a9d1616
extra : source : ae946f375e0d0f4f0f0fc859c54040fef42cbc2c
2018-06-01 12:19:35 +02:00
Julian Descottes 640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
J. Ryan Stinnett 8acfe046de Bug 1465941 - Fix RDM toolbar icon appearance. r=birtles
Some of the RDM toolbar icons relied on `background-size: cover` from the
overall DevTools button styles, which was removed recently in bug 1442531.  We
restore RDM's appearance by copying this style into RDM styles.

MozReview-Commit-ID: KcZwaRgZUsh

--HG--
extra : rebase_source : 4a2f548f6f073870ad06183a33bdaabc2bff6d92
2018-05-31 15:21:50 -05:00
Michael Ratcliffe 13a006d57e Bug 1458208 - telemetry.js: DevTools code should always go through telemetry.js r=jdescottes
MozReview-Commit-ID: 9cUGY2CjjZG

--HG--
extra : rebase_source : 1818f742cc89c25146f23d42c68a6b53ae9cdc21
2018-05-10 15:14:01 +01:00
Michael Ratcliffe 3df73f73cd Bug 1458206 - telemetry.js: Cleanup toolOpened/toolClosed r=jdescottes
The methods have been improved and now live in telemetry.js again.

We use these methods for tools that at least require timing.

MozReview-Commit-ID: 2CqBCA9j3XU

--HG--
extra : rebase_source : faa489ea4790db55648301be842f55cea308ce29
2018-05-04 18:00:04 +01:00
Alexandre Poirot 531ac516da Bug 1461970 - Drop all tests using helpers.addTabWithToolbar. r=jryans
MozReview-Commit-ID: 4orKFtOOraG

--HG--
extra : rebase_source : 64c8e098699e5b7cbd0c4bd1285aea318451a5cb
2018-03-21 08:56:32 -07:00
Kris Maglione 01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
J. Ryan Stinnett f783eddfec Bug 1453519 - Avoid process reselection inside RDM. r=ochameau
Use `E10SUtils` to check for cases where browser code would try to force a
browser to reselect a new process (such as when it is a preloaded browser) so
that we can avoid any process changes once RDM is open.

If such a case applies, navigate to about:blank first to trigger the process
change before starting RDM.

MozReview-Commit-ID: CxspLFXXotF

--HG--
extra : rebase_source : cb94789344f17c0b51ff4afbb54921218a2dd1b5
2018-04-13 11:57:44 -05:00
Michael Ratcliffe 764c4c8578 Bug 1098374 - Telemetry: Stop all monkey patching in devtools telemetry tests r=yulia
Changes and notes:
  - Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
    contains test helpers to aid in creating and running telemetry tests.
  - Removed any telemetry monkeypatching as it is not dependable and no longer
    needed (there is some left in GCLI but the test is now disabled because
    we are removing GCLI soon anyhow).
  - Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
    have had to make it available everywhere that shared-head.js is used.
  - All telemetry tests have been rewritten to use the new helper.
  - shared-head.js cannot be imported by tests inside
    `devtools/client/performance/test/` because perf have custom `once` and
    `waitFor` implementations that act differently from the ones inside
    `shared-head.js`. This means I had to import the telemetry helpers into
    `devtools/client/performance/test/head.js`
  - Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
    to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
    others to be thorough).
  - Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
    test some expired scalars. I also corrected the way the scalars are logged
    because it was completely wrong.

MozReview-Commit-ID: JjQEGM6hT61

--HG--
extra : rebase_source : cd1214d01bd11908f69167839975cd93ecb83421
2018-05-01 18:06:14 +01:00
Jan Odvarko 75e5f8c584 Bug 1349559 - Introduce UI for network throttling in the Net panel; r=jryans
MozReview-Commit-ID: Ad0ABzf0YuY

--HG--
rename : devtools/client/responsive.html/components/NetworkThrottlingSelector.js => devtools/client/shared/components/throttling/NetworkThrottlingSelector.js
rename : devtools/client/responsive.html/actions/network-throttling.js => devtools/client/shared/components/throttling/actions.js
rename : devtools/client/shared/network-throttling-profiles.js => devtools/client/shared/components/throttling/profiles.js
rename : devtools/client/responsive.html/reducers/network-throttling.js => devtools/client/shared/components/throttling/reducer.js
extra : rebase_source : 10aa7eacd8cd8ebdf01e650bc3ccf0c9bb3d586b
2018-05-01 11:07:18 +02:00
Ciure Andrei 34f9738fa7 Backed out changeset daac5f4217b6 (bug 1349559) for failing devtools/client/responsive.html/test/unit/test_change_network_throttling.js CLOSED TREE
--HG--
rename : devtools/client/shared/components/throttling/actions.js => devtools/client/responsive.html/actions/network-throttling.js
rename : devtools/client/shared/components/throttling/NetworkThrottlingSelector.js => devtools/client/responsive.html/components/NetworkThrottlingSelector.js
rename : devtools/client/shared/components/throttling/reducer.js => devtools/client/responsive.html/reducers/network-throttling.js
rename : devtools/client/shared/components/throttling/profiles.js => devtools/client/shared/network-throttling-profiles.js
2018-05-01 09:58:59 +03:00
Jan Odvarko 368596c629 Bug 1349559 - Introduce UI for network throttling in the Net panel; r=jryans
MozReview-Commit-ID: 8CvBHckNSpZ

--HG--
rename : devtools/client/responsive.html/components/NetworkThrottlingSelector.js => devtools/client/shared/components/throttling/NetworkThrottlingSelector.js
rename : devtools/client/responsive.html/actions/network-throttling.js => devtools/client/shared/components/throttling/actions.js
rename : devtools/client/shared/network-throttling-profiles.js => devtools/client/shared/components/throttling/profiles.js
rename : devtools/client/responsive.html/reducers/network-throttling.js => devtools/client/shared/components/throttling/reducer.js
extra : rebase_source : 278caad37ffc3a5c37ce7d6c968457f588ef4370
2018-05-01 07:42:52 +02:00
Kris Maglione bf4d9f1be5 Bug 1456035: Part 5 - Convert manual QueryInterface to ChromeUtils.generateQI. r=mccr8
Manually-implemented QueryInterface functions don't benefit from the
MozQueryInterface optimizaions, and a lot of them are in hot code, and
implement a large number of interfaces.

MozReview-Commit-ID: 8OzglraowZt

--HG--
extra : rebase_source : 5fff3d9973a0ea976096339a63ce9ff628b68441
2018-04-23 12:58:34 -07:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Michael Ratcliffe 6407de9726 Bug 1456103 - Create tests for devtools.main.deactivate telemetry event r=yulia
MozReview-Commit-ID: 5x6XHS11x1C

--HG--
extra : rebase_source : d70738db2e21037040b575ae5cf24acad20732fc
2018-04-26 10:16:11 +01:00
Michael Ratcliffe 38b2e88176 Bug 1456098 - Create tests for devtools.main.activate telemetry event r=yulia
MozReview-Commit-ID: III7oI427vr

--HG--
extra : rebase_source : 01025bff07b88b726d9dc7ad09fc2337cbdbd679
2018-04-25 18:04:35 +01:00
Michael Ratcliffe 11ecac4bb0 Bug 1455275 - Instrument deactivation of RDM and Split Console with event telemetry r=yulia
This bounced because I was trying to access the toolbox after the ui was destroyed, which fails in tests. I will do a try run this time to make sure there are no issues.

MozReview-Commit-ID: 2iHpPLmm9lY

--HG--
extra : rebase_source : 42b0fbbfc26d43c49b699ef447c7650c94bd81ca
2018-04-23 13:50:53 +01:00
shindli 681387a8ba Backed out changeset 6e691c7ff5dd (bug 1455275) for dt failures in devtools/client/responsive.html/test/browser/browser_exit_button.js on a CLOSED TREE 2018-04-24 16:01:29 +03:00
Michael Ratcliffe a7edddda82 Bug 1455275 - Instrument deactivation of RDM and Split Console with event telemetry r=yulia
Another simple one... tests will be in bug 1456103.

MozReview-Commit-ID: 2iHpPLmm9lY

--HG--
extra : rebase_source : 7ca5153ae0e4137fe4f6da62cde52deb4f40579e
2018-04-23 13:50:53 +01:00
Michael Ratcliffe e48cf678a4 Bug 1455273 - Instrument activation of RDM and Split Console with event telemetry r=yulia
Another simple one... tests will be in bug 1456098.

MozReview-Commit-ID: LFgxlceCakC

--HG--
extra : rebase_source : b0b901b3b225277ce20aab9154c52896d14199fa
2018-04-23 13:33:39 +01:00
Alexandre Poirot 9b2fdcf8bb Bug 1453712 - Use a preference to set the testing flag. r=jryans
MozReview-Commit-ID: 1cjSQnXtc4h

--HG--
extra : rebase_source : 55c0c9fa81a8dc17b92cba721dcc5912b07d0fab
2018-04-12 09:22:42 -07:00
J. Ryan Stinnett 545937d350 Bug 1453499 - Expose processMessageManager for RDM frames. r=ochameau
RDM frames with their custom message manager hadn't exposed a value for
`processMessageManager`.  This was just a oversight.

By adding this value, we get a working Browser Content Toolbox for RDM tabs.

MozReview-Commit-ID: 95QskEMKgZK

--HG--
extra : rebase_source : 5259800f64afe55ee5bca29492f6f33efcfd458c
2018-04-10 18:35:05 -05:00
Dão Gottwald bf9d434a13 Bug 1450559 - Remove nsISessionStore in favor of SessionStore.jsm. r=mikedeboer
MozReview-Commit-ID: 8spvIOus9ai

--HG--
rename : browser/components/sessionstore/nsSessionStore.manifest => browser/components/sessionstore/nsSessionStartup.manifest
extra : rebase_source : fc353af87bd620b7039d3e6241cc60c3788e3da6
2018-04-05 16:30:48 +02:00
Nicolas Chevobbe ffe252e467 Bug 1449170 - Remove old-event-emitter usage from responsive.html; r=jryans.
MozReview-Commit-ID: KREEQYpIVh6

--HG--
extra : rebase_source : 88e5a77db7e8aba6a9f237657c989e9747c4ae41
2018-03-27 15:46:41 +02:00
Tim Nguyen e002c63fa4 Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht

--HG--
extra : rebase_source : 881e10f2987606e84e55c267260661c0f7b3b746
2018-03-16 23:21:46 +00:00
Margareta Eliza Balazs 27703664b0 Backed out 2 changesets (bug 1444760) for ES lint failure in /builds/worker/checkouts/gecko/browser/base/content/browser.js on a CLOSED TREE
Backed out changeset 71f61091a716 (bug 1444760)
Backed out changeset 4956db1e9bdd (bug 1444760)
2018-03-25 15:29:54 +03:00
Tim Nguyen e2ed0b5dfb Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht

--HG--
extra : rebase_source : 8e9f24d20829021db2239435c7d8d0db08e28bf9
2018-03-16 23:21:46 +00:00
J. Ryan Stinnett 1c5534b4d8 Bug 1446222 - Move DevTools frame startup to new dir. r=jdescottes
Move and rename the server's frame script that starts DevTools in remote frames
from `child.js` to `startup/frame.js`.  `connectToChild` also becomes the more
generic `connectToFrame`.  A few b2g-isms like "app" are also removed.

These code paths will likely change more as Site Isolation work continues, but
for now, we have this light cleanup to gather startup-related paths together.

MozReview-Commit-ID: El8a0OE99gZ

--HG--
rename : devtools/server/child.js => devtools/server/startup/frame.js
rename : devtools/server/tests/mochitest/test_connectToChild.html => devtools/server/tests/mochitest/test_connectToFrame.html
extra : rebase_source : 2735c53587257b215d720204cf7c4581088eba42
2018-03-19 18:53:46 -05:00
Kris Maglione 313b707b2e Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc

--HG--
extra : rebase_source : 765ddd5c62c9449c07ed050e44d86a3bd5c0ae64
extra : amend_source : 627a7694ac07182200f876901ded7a34721cd228
2018-03-07 19:31:28 -08:00
Gijs Kruitbosch d2ebbb38df Bug 1358815 - remove sync reflow from find bar initialization, r=jaws
This removes the sync reflow from almost all cases. The only case where we keep it is when a keypress
caught in content triggers a sync message to the parent process. We should clean this up in bug 1371523.

I've tried to fix the tests, but a lot of them seem to be disabled anyway...

MozReview-Commit-ID: 9k36p7q8MKy

--HG--
extra : rebase_source : 311ee41ba9456a5c5d58b81a0cfa999bcef0027e
2018-03-12 14:01:44 +00:00
J. Ryan Stinnett cde9722687 Bug 1444497 - Track UI entry point for RDM. r=jdescottes
MozReview-Commit-ID: Jc8uXAXlGVf

--HG--
extra : rebase_source : 561c3f7d4c6a8c42d0aa4c64e3ce6b46799da1d2
2018-03-13 14:52:34 -05:00
J. Ryan Stinnett 99eadf2ecc Bug 1444497 - Track whether toolbox is opened before RDM. r=jdescottes
MozReview-Commit-ID: H3LpXVPv4w1

--HG--
extra : rebase_source : 420d19fdcf513759a8936b2cd6fdf1bab613b72a
2018-03-12 19:24:37 -05:00
Brindusan Cristian 4f5a76dc76 Backed out 2 changesets (bug 1358815) for bc failures on browser_pdfjs_main.js CLOSED TREE
Backed out changeset 880736d97de3 (bug 1358815)
Backed out changeset a2a0a0990e1a (bug 1358815)
2018-03-15 21:23:12 +02:00
Gijs Kruitbosch 59e21359c8 Bug 1358815 - remove sync reflow from find bar initialization, r=jaws
This removes the sync reflow from almost all cases. The only case where we keep it is when a keypress
caught in content triggers a sync message to the parent process. We should clean this up in bug 1371523.

I've tried to fix the tests, but a lot of them seem to be disabled anyway...

MozReview-Commit-ID: 9k36p7q8MKy

--HG--
extra : rebase_source : 311ee41ba9456a5c5d58b81a0cfa999bcef0027e
2018-03-12 14:01:44 +00:00
Shane Caraveo a62b33d946 Bug 1445080 - fix handling of remote web progress for non-tab browsers, r=Gijs,mconley
Ensure remoteWebProgress is initialized for remote browsers.  Includes devtools fix from jryans.

MozReview-Commit-ID: Ce3TzwkNnyi

--HG--
extra : rebase_source : 0f2bcb96ef04f4eaee447180dc21400dca3bf410
2018-03-14 09:12:26 -05:00
J. Ryan Stinnett 23ff4cc75d Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
J. Ryan Stinnett 36cd8d6903 Bug 1442312 - Move allowed rejections into specific tests they apply to. r=ochameau
By moving only the rejections that actually still apply into each test and out
of the shared head file, we are much more likely to notice new instances and
catch them when writing and editing tests in the future.

Bug 1018184 can be used to actually resolve these issues.

MozReview-Commit-ID: Qb71PsuutB

--HG--
extra : rebase_source : 7056bbf9fcd76ffe00015119d811db0bd788aa59
2018-03-08 18:14:52 -06:00
J. Ryan Stinnett b049c9cb2a Bug 1440678 - Disable RDM reload notification for tests. r=ochameau
MozReview-Commit-ID: 5dXxE6u1ZSI

--HG--
extra : rebase_source : 8ef589abc535b06216c2e6545e461c64dc0b206a
2018-03-07 17:15:41 -06:00
J. Ryan Stinnett 724f46419e Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl

--HG--
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
extra : rebase_source : c6f6cd75a9c1a5349f8406f337c9c39f2f755dab
2018-03-02 19:14:05 -06:00
Cosmin Sabou 0bc675f657 Backed out 4 changesets (bug 1436187) for mochitest devtools failures at browser_se_editors-error-gutter.js on a CLOSED TREE
Backed out changeset 253f74e28723 (bug 1436187)
Backed out changeset 9875771c9967 (bug 1436187)
Backed out changeset b2d808aa8c2e (bug 1436187)
Backed out changeset e747480f3cd2 (bug 1436187)

--HG--
rename : devtools/client/shared/test/shared-head.js => devtools/client/framework/test/shared-head.js
rename : devtools/client/shared/test/shared-redux-head.js => devtools/client/framework/test/shared-redux-head.js
rename : devtools/client/shared/test/frame-script-utils.js => devtools/client/shared/frame-script-utils.js
2018-03-07 22:04:35 +02:00
J. Ryan Stinnett 5ff93bf9fd Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl

--HG--
rename : devtools/client/framework/test/shared-head.js => devtools/client/shared/test/shared-head.js
rename : devtools/client/framework/test/shared-redux-head.js => devtools/client/shared/test/shared-redux-head.js
extra : rebase_source : 58e35632f0a82b0d7e880b0297306500097676e3
2018-03-02 19:14:05 -06:00
J. Ryan Stinnett 0e029f6125 Bug 1442334 - Remove redundant binding change in RDM. r=ochameau
RDM was explicitly forcing the remote browser XBL binding via inline style, but
that's actually redunant with what you'd get via CSS.  (I am unsure if that's
always been true...)

It appears we can safely remove this to reduce some complexity here.

MozReview-Commit-ID: 2xlS6Dd2VYj

--HG--
extra : rebase_source : 2f9eb8789650e96cf82be60e7fe07d2bb3159a91
2018-03-01 12:21:24 -06:00
J. Ryan Stinnett 2fcc26f33a Bug 1442348 - Add key to RDM toggle menu to avoid React warning. r=jryans
MozReview-Commit-ID: ILhdsdjRLBw

--HG--
extra : rebase_source : 17feb3934435746fbe37f3c734feab2253747e53
2018-03-01 12:30:39 -06:00
Florian Quèze c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
J. Ryan Stinnett d02013982d Bug 1428816 - Show reload help on first RDM open. r=ochameau
The first time RDM is opened after this, show a notification explaining that a
reload is needed to apply certain emulation features.

MozReview-Commit-ID: 26GMbhT5MUo

--HG--
extra : rebase_source : 6b043a6465687ccae23eb2cf0619b3e82ca62c5f
2018-02-08 18:43:23 -06:00
J. Ryan Stinnett cc4dec06e0 Bug 1428816 - Add RDM UI to control whether we reload. r=ochameau
This adds a menu to the RDM global toolbar to allow the user to control whether
the page reloads in response to various state changes.

This also changes the default behavior to _not_ reload, so that we avoid losing
changes that might have been made in DevTools.

MozReview-Commit-ID: 86h5cB5dify

--HG--
extra : rebase_source : 0d1598bd0ad066eaffdc23d4c970c64f368afa04
2018-02-08 15:20:17 -06:00
J. Ryan Stinnett 8790714f00 Bug 1428816 - Rename deviceListState to loadableState. r=ochameau
MozReview-Commit-ID: AWIP5njHV3M

--HG--
extra : rebase_source : 51fda7a2d213f5e3e39204694271b7eebde11fb2
2018-02-08 15:22:59 -06:00
arthur.iakab e5eabd789f Backed out 3 changesets (bug 1428816) for Browser Chrome failures on browser/base/content/test/static/browser_misused_characters_in_strings.js on a CLOSED TREE
Backed out changeset 31e12673218b (bug 1428816)
Backed out changeset a6e7a7b21cf3 (bug 1428816)
Backed out changeset 0d00eabc8b83 (bug 1428816)
2018-02-22 19:26:58 +02:00
J. Ryan Stinnett 66f67aac20 Bug 1428816 - Show reload help on first RDM open. r=ochameau
The first time RDM is opened after this, show a notification explaining that a
reload is needed to apply certain emulation features.

MozReview-Commit-ID: 26GMbhT5MUo

--HG--
extra : rebase_source : 069ab687830faf29e5fe37b408628c0cd85e1464
2018-02-08 18:43:23 -06:00