Commit Graph
114 Commits
Author SHA1 Message Date
Gabriel Luong 3c1e459365 Bug 1488114 - Refactor the reducers in RDM. r=rcaliman 2018-09-04 10:47:41 -04:00
Narcis Beleuzu 2d68169fc3 Backed out changeset 7ffb06278c4c (bug 1488114) for xpcshell failures on test_change_pixel_ratio.js. CLOSED TREE 2018-09-04 19:24:12 +03:00
Gabriel Luong c04f5aee7d Bug 1488114 - Refactor the reducers in RDM. r=rcaliman 2018-09-04 10:47:41 -04:00
Dave Townsend 62ca50874a Bug 1479316: Pass through link related messages when in responsive design mode. r=jryans
Prior to bug 1453751 responsive design mode relied on the parent process seeing
that no favicon had been loaded and so defaulting to the root favicon for a
site. This would have meant that on some occasions responsive design mode didn't
show the correct favicon for pages that specified their own. This change passes
all the link related messages to the parent so favicons, feeds and searches
should work correctly.

Differential Revision: https://phabricator.services.mozilla.com/D3032
2018-08-09 18:27:05 +00:00
Jonathan Kingston 07af5c5572 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb r=Gijs
Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-07-06 15:14:54 +01:00
dvarga 86b7ee6d9f Backed out 2 changesets (bug 1362034) for failure at browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE
Backed out changeset 1c3329958b8a (bug 1362034)
Backed out changeset f68b1b76af36 (bug 1362034)
2018-08-08 22:11:56 +03:00
Jonathan Kingston 0e48203cf4 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb,Gijs
Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Subscribers: mixedpuppy, reviewbot

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-08-08 20:03:55 +03:00
Andreea Pavel 31fb9c007c Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE
Backed out changeset 8c8925b75aa2 (bug 1362034)
Backed out changeset ff6b05c96094 (bug 1362034)
2018-08-06 20:42:44 +03:00
Jonathan Kingston ea417d37e5 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb,Gijs
Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Subscribers: reviewbot

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-08-06 19:54:47 +03:00
Boris Zbarsky a93cf3d175 Bug 1479569 part 2. Use the new messageManager getter on docshell. r=kmag
I generally tried to preserve the behavior of consumers where they treated an
exception from getInterface(Ci.nsIContentFrameMessageManager) as a signal to use
some sort of fallback.

I did change the behavior of consumers that walked up to the root same-type
docshell before getting the message manager to just get it directly from the
docshell they have.  Please review those parts carefully, and let me know if you
want me to ask some subject area experts to review those.
2018-08-02 23:49:09 -04:00
Csoregi Natalia 5bd0ca7b64 Backed out 3 changesets (bug 1479569) for devtools/client/responsive.html failures. CLOSED TREE
Backed out changeset e123d0aa911c (bug 1479569)
Backed out changeset b828a58404e5 (bug 1479569)
Backed out changeset 97041ef8f311 (bug 1479569)
2018-08-03 10:39:12 +03:00
Boris Zbarsky 3344641137 Bug 1479569 part 2. Use the new messageManager getter on docshell. r=kmag
I generally tried to preserve the behavior of consumers where they treated an
exception from getInterface(Ci.nsIContentFrameMessageManager) as a signal to use
some sort of fallback.

I did change the behavior of consumers that walked up to the root same-type
docshell before getting the message manager to just get it directly from the
docshell they have.  Please review those parts carefully, and let me know if you
want me to ask some subject area experts to review those.
2018-08-02 23:49:09 -04:00
Boris Zbarsky 3af9dccacb Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Gijs Kruitbosch 8f5de7b966 Bug 1470002 - remove pageshow message passing, too, r=adw,jryans
MozReview-Commit-ID: 27v79lVOODG
2018-06-20 22:53:40 +01:00
Gijs Kruitbosch f514d23b51 Bug 1470002 - remove pagehide message passing from browser code, r=mixedpuppy
MozReview-Commit-ID: 18hsSwHsWzz
2018-06-20 22:41:27 +01:00
J. Ryan Stinnett e0cb2332d2 Bug 1470497 - Fix navigation after opening container in RDM. r=gl
This fixes the case of navigating a container tab from about:newtab to a remote
site.  This case triggers the process flip machinery where parent process is
told to manage the load.  We needed to allow certain session store messages for
this to complete successfully.
2018-06-22 17:28:01 -05:00
J. Ryan Stinnett 873bb825ab Bug 1468678 - Allow autoscrolling with RDM. r=ochameau
MozReview-Commit-ID: 7bOV0vrkdvf
2018-06-21 11:46:11 -05:00
J. Ryan Stinnett b51df0a45f 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
2018-02-23 17:33:55 -06:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Michael Ratcliffe 7f89c7dafc Bug 1458208 - telemetry.js: DevTools code should always go through telemetry.js r=jdescottes
MozReview-Commit-ID: 9cUGY2CjjZG
2018-05-10 15:14:01 +01:00
Kris Maglione c03fa450d6 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
2018-05-08 18:36:22 -07:00
J. Ryan Stinnett c4f4d25148 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
2018-04-13 11:57:44 -05:00
Kris Maglione 582a21b473 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
2018-04-23 12:58:34 -07:00
Kris Maglione fd7e9e6a69 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:

https://bitbucket.org/kmaglione/m-c-rewrites/src/acecb401b76cfcc6ff7f0ba3ae69929955716152/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
J. Ryan Stinnett 0f7340ada0 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
2018-04-10 18:35:05 -05:00
Tim Nguyen d49de43825 Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht
2018-03-16 23:21:46 +00:00
Margareta Eliza Balazs 8ad3204b44 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 76bd43b52d Bug 1444760 - Combine loadURIWithFlags and loadURI methods. r=dao
MozReview-Commit-ID: 5dsyKwvjYht
2018-03-16 23:21:46 +00:00
J. Ryan Stinnett fe86270713 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
2018-03-19 18:53:46 -05:00
Gijs Kruitbosch 0ca6e1b639 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
2018-03-12 14:01:44 +00:00
Brindusan Cristian a6e62d8ce3 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 54e2568278 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
2018-03-12 14:01:44 +00:00
Shane Caraveo 1726fd8fdf 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
2018-03-14 09:12:26 -05:00
J. Ryan Stinnett 8d1c817851 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 fec98ee84b 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
2018-03-01 12:21:24 -06:00
Florian Quèze f6add2cafd 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
Andrew McCreight 272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
J. Ryan Stinnett 2b0adfdfca Bug 1429121 - Manual cleanup of RDM for async / await. r=ochameau
MozReview-Commit-ID: JMaMDw6D8iK
2018-01-09 17:03:48 -06:00
J. Ryan Stinnett ecee41e6e9 Bug 1429121 - Automated conversion of RDM to async / await. r=ochameau
MozReview-Commit-ID: BdzxQW6TbEK
2018-01-09 10:08:35 -06:00
J. Ryan Stinnett b3f7bae9d8 Bug 1415502 - Remove RDM browser-swap docs. r=jryans
These low level docs are getting out of date and causing confusion.  Further,
they are of limited value at this stage anyway.

MozReview-Commit-ID: FSoNniNZjtj
2017-11-09 10:50:19 -06:00
J. Ryan Stinnett 6b98b58ffc Bug 1394841 - Test WebExt messaging with RDM. r=kmag,ochameau
This test verifies that WebExt messaging works as expected for both the
background page scripts and content scripts when RDM is used.

MozReview-Commit-ID: 3fODg3nYLr7
2017-11-01 17:40:16 -05:00
J. Ryan Stinnett ec60611702 Bug 1394841 - Add WebExt messaging to RDM tunnel. r=ochameau
WebExt messaging sends several new message types to content that should be
tunneled by RDM.

This change allows them to reach content as expected in RDM mode.

MozReview-Commit-ID: GKelgOGBUKI
2017-11-01 17:36:58 -05:00
Simon Van Accoleyen 000fe4fb01 Bug 1406193 - Remove last remaining SocialAPI bits. r=dao
MozReview-Commit-ID: E5GKq2CYclF
2017-10-21 18:38:17 +02:00
J. Ryan Stinnett 4e09bdbfe2 Bug 1407830 - Verify that RDM swaps take place. r=ochameau
It is possible for the frame loader swap within `gBrowser._swapBrowserDocShells`
to fail when various frame state is either not ready yet or doesn't match
between the two browsers you're trying to swap.  However, such errors are
currently caught and silenced in the browser, because they are apparently
expected in certain cases.  So, here we do our own check to verify that the swap
actually did in fact take place, making it much easier to track such errors when
they happen.

MozReview-Commit-ID: LwuCXJQRRVW
2017-10-13 20:19:49 -05:00
J. Ryan Stinnett 38cd37baa4 Bug 1407830 - Add diagnostics to RDM swap. r=ochameau
Add some (disabled by default) logging to the RDM swap process to speed up
future investigations.

MozReview-Commit-ID: ICuH7i5Nsq5
2017-10-13 20:07:24 -05:00
J. Ryan Stinnett c262085d22 Bug 1348960 - Expose openLinkIn for RDM tabs. r=ochameau
MozReview-Commit-ID: 2EzZfBsNIrf
2017-10-03 22:34:07 -07:00
J. Ryan Stinnett f9fcbf833e Bug 1404088 - Hide RDM temporary tabs from WebExtensions. r=ochameau
RDM uses temporary tabs to move content around and into the tool's viewport.
This triggers events like `TabOpen` and `TabClose` for the temporary tab,
trigger unnecessary work, like alerting WebExtensions.

Avoid this noise for WebExtensions and others by absorbing these events.

Note that the _original_ browser tab is unaffected.  This only changes temporary
tabs RDM uses during the swapping process.

MozReview-Commit-ID: H8kBYBma6i9
2017-09-29 17:14:32 -05:00
J. Ryan Stinnett 843dbef8a4 Bug 1404088 - Add gBrowser to the browser property list. r=ochameau
MozReview-Commit-ID: fWPCkDe6Ve
2017-09-29 11:57:53 -05:00
J. Ryan Stinnett 8c77100f50 Bug 1404088 - Standardize RDM's exposed browser properties. r=ochameau
MozReview-Commit-ID: KIykapQm5mP
2017-09-28 18:47:24 -05:00
J. Ryan Stinnett 2c7f079345 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir
2017-09-28 11:28:55 -05:00