Commit Graph

166 Commits

Author SHA1 Message Date
Mike Conley
d38b3552f2 Bug 1560590 - Add Telemetry for Picture-in-Picture opening and closing mechanisms. data-review=chutten,r=JSON_voorhees
Depends on D36358

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

--HG--
extra : moz-landing-system : lando
2019-07-02 18:08:16 +00:00
Razvan Maries
95ce0aa385 Backed out changeset 4b8c3e09e73f (bug 1510351) for ES Lint failure. CLOSED TREE 2019-07-02 20:45:03 +03:00
Hamzah
c7340ec0c3 Bug 1510351 - Remove unused code in PluginChild.jsm r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D36524

--HG--
extra : moz-landing-system : lando
2019-07-02 17:23:30 +00:00
prathiksha
82a4475a6a Bug 1555438 - Remove getDetailedCertErrorInfo from NetErrorChild.jsm. r=johannh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D33065

--HG--
extra : moz-landing-system : lando
2019-06-26 20:24:05 +00:00
Johann Hofmann
926df091cf Bug 1555627 - Set a learn more link on net error pages. r=prathiksha
Bug 1284835 removed the hard-coded learn more link on cert and net error pages, which worked
for cert error pages because they explicitly set their own learn more links, but net error
pages were relying on the default href to be set. This wasn't revealed until bug 1530348
made about:neterror part of the new error pages.

The solution is simply to explicitly set the correct learn more link to net error pages.

Note that in the case of PR_END_OF_FILE errors, we were not previously showing a "learn more"
link. That was not intentional, as far as I can tell, but was caused by the bug fixed in bug 1477875.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:26:43 +00:00
Mike Conley
6a18fcd209 Bug 1558337 - Add a workaround for RDM for ContextMenuParent.jsm to make context menus work properly. r=NeilDeakin
This workaround hands the top-level browser to nsContextMenu rather than the
mozbrowser in the RDM case. We need to do that since RDM does a lot of work
to make the inner mozbrowser _seem_ like the top-level browser, including
proxying messages from that top-most browser to the underlying mozbrowser.

This workaround makes us consistent with that model, and will have to do until
we can get bug 1559456 fixed.

Depends on D35077

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

--HG--
extra : moz-landing-system : lando
2019-06-18 21:12:01 +00:00
Mike Conley
c15ee2802a Bug 1558506 - Don't preventDefault the contextmenu event in ContextMenuChild.jsm. r=NeilDeakin
In the content process case, preventing default stops the context menu event from being dispatched
within remote iframes, which is what causes bug 1558506.

In the parent process case, preventing default stops the nsXULPopupListener from opening the context
menu for us when we don't want ContextMenuParent to handle it, which we don't want to do.

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

--HG--
extra : moz-landing-system : lando
2019-06-18 21:13:02 +00:00
prathiksha
b901cf9927 Bug 1552333 - Move onCertErrorDetails from NetErrorChild.jsm to aboutNetError.js. r=johannh,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D31901

--HG--
extra : moz-landing-system : lando
2019-06-18 03:54:21 +00:00
Brindusan Cristian
a2461d871d Backed out changeset 3876241cc1ec (bug 1558506) for mochitest failrues at test_contextmenu_list.xul. CLOSED TREE 2019-06-13 22:52:41 +03:00
Mike Conley
350ce5bb67 Bug 1558506 - Don't send a message for context menus when we know we don't want to open one. r=NeilDeakin
This fixes Bug 1558506 by making it so that the parent process ignores the context menu event
when right-clicking on the remote <browser> hosting the Add-on Options page. Before, we were
handling the event, stopping it from propagating and preventDefault'ing it, and then sending
a message to the parent that ultimately did nothing (since we knew that we didn't want to
display the context menu). Stopping propagation and preventDefault'ing meant that the event
was never fired in the Extension process for the options page.

With the parent process now returning early in the event that it knows that it doesn't want
to be the one to open the context menu, the underlying ContextMenuSpecialProcessChild can
handle the contextmenu event in the extension process, and do the right thing.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 18:23:41 +00:00
Ehsan Akhgari
fc40494b9c Bug 1557887 - Part 5: Pass a storage principal argument through the browser loadURI()/addTab() APIs; r=baku,mconley
Differential Revision: https://phabricator.services.mozilla.com/D34459

--HG--
extra : moz-landing-system : lando
2019-06-12 23:05:36 +00:00
Gurzau Raul
227f5329f7 Merge inbound to mozilla-central. a=merge 2019-06-12 00:34:32 +03:00
Neil Deakin
e5fb1d5934 Bug 1533948, change BrowserTabChild to inherit from JSWindowActor, r=mconley
--HG--
extra : rebase_source : 5e88e30ac09c15e6747f6ef1019e9b27a793a898
2019-06-11 09:05:33 -04:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Mike Conley
d622bd6c52 Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-08 01:09:46 +00:00
Mike Conley
638dd8fb19 Bug 1505909 - Stop sending a CPOW for the target element for context menu messages. r=MattN
This introduces a new toolkit module, ContentDOMReference, which can generate identifiers
for DOM elements that can be safely passed across the process boundary without having to
use the CPOW infrastructure.

The Password Manager code seemed to be the only thing using the original CPOW, so this
has been updated to use the ContentDOMReference identifier instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-08 01:09:29 +00:00
Mike Conley
42b822a5ef Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757

--HG--
extra : moz-landing-system : lando
2019-06-08 01:09:10 +00:00
Noemi Erli
ea35f4b13b Backed out 6 changesets (bug 1505909) for failures in browser_ext_webNavigation_onCreatedNavigationTarget_contextmenu.js CLOSED TREE
Backed out changeset 57336967a6c7 (bug 1505909)
Backed out changeset 8adcacadd689 (bug 1505909)
Backed out changeset bcca6bb913ef (bug 1505909)
Backed out changeset afc11a5ebb6d (bug 1505909)
Backed out changeset 40f0a56ed3af (bug 1505909)
Backed out changeset 3e31f9726798 (bug 1505909)
2019-06-07 19:19:14 +03:00
Mike Conley
6d0f158a7d Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:59 +00:00
Mike Conley
cf5863f79c Bug 1505909 - Stop sending a CPOW for the target element for context menu messages. r=MattN
This introduces a new toolkit module, ContentDOMReference, which can generate identifiers
for DOM elements that can be safely passed across the process boundary without having to
use the CPOW infrastructure.

The Password Manager code seemed to be the only thing using the original CPOW, so this
has been updated to use the ContentDOMReference identifier instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:47 +00:00
Mike Conley
cef09f3647 Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:33 +00:00
Bogdan Tara
4da63aeb53 Backed out 6 changesets (bug 1505909) for bc failures complaining about WebNavigationChild and browser_e10s_about_page_triggeringprincipal.js CLOSED TREE
Backed out changeset 56449fd37aee (bug 1505909)
Backed out changeset 3ff09b79821c (bug 1505909)
Backed out changeset a1a2a9efe22f (bug 1505909)
Backed out changeset 8aeb77291207 (bug 1505909)
Backed out changeset 4aa17e28ee54 (bug 1505909)
Backed out changeset dbe6803d979e (bug 1505909)
2019-06-07 06:15:16 +03:00
Mike Conley
261632c77d Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-06 20:32:50 +00:00
Mike Conley
3d1ba6b08c Bug 1505909 - Stop sending a CPOW for the target element for context menu messages. r=MattN
This introduces a new toolkit module, ContentDOMReference, which can generate identifiers
for DOM elements that can be safely passed across the process boundary without having to
use the CPOW infrastructure.

The Password Manager code seemed to be the only thing using the original CPOW, so this
has been updated to use the ContentDOMReference identifier instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 20:32:30 +00:00
Mike Conley
014fa7a924 Bug 1505909 - Merge remote and non-remote context menu handlers. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32757

--HG--
extra : moz-landing-system : lando
2019-06-06 20:32:11 +00:00
Thomas Nguyen
01ff0bf93f Bug 1534681 Use ReferrerInfo class in document r=ckerschb,baku,Gijs
Also, in many place, we use document uri as referrer. It is not right
for the case srdoc iframe. We should use the last non-srdoc parent
document's uri

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

--HG--
rename : testing/web-platform/tests/referrer-policy/generic/iframe-inheritance.html => testing/web-platform/tests/referrer-policy/generic/inheritance/iframe-inheritance-data.html
rename : testing/web-platform/tests/referrer-policy/generic/iframe-inheritance.html => testing/web-platform/tests/referrer-policy/generic/inheritance/iframe-inheritance-srcdoc.html
extra : moz-landing-system : lando
2019-06-06 07:23:37 +00:00
prathiksha
325e222d30 Bug 1549561 - Move _setTechDetails from NetErrorChild.jsm to aboutNetError.js. r=johannh,flod
Differential Revision: https://phabricator.services.mozilla.com/D30852

--HG--
extra : moz-landing-system : lando
2019-05-30 06:43:14 +00:00
Liang-Heng Chen
4c57b29505 Bug 1330467 - part 11. Use principal for permissions in webrtc UI; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19932

--HG--
extra : moz-landing-system : lando
2019-05-26 11:23:13 +00:00
Tom Ritter
e06d958abe Bug 1546832 - Adjust letterboxing to take the FindBar and Devtools into account r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D31639

--HG--
extra : moz-landing-system : lando
2019-05-24 07:53:11 +00:00
Christoph Kerschbaumer
30b618ff6e Bug 965637: Move CSP from Principal into Client, part 3: frontend changes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D27656

--HG--
extra : moz-landing-system : lando
2019-05-21 23:15:08 +00:00
Johann Hofmann
efaa2a219e Bug 1550209 - Clean up remnants of old clock skew error code in NetErrorChild.jsm. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D30432

--HG--
extra : moz-landing-system : lando
2019-05-15 17:29:35 +00:00
Johann Hofmann
94bea848e4 Bug 1545743 - Don't use validity.not{After,Before}LocalTime for parsing date information in NetErrorChild.jsm. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D30431

--HG--
extra : moz-landing-system : lando
2019-05-13 20:18:07 +00:00
Johann Hofmann
3736102bef Bug 1547695 - De-dupe #errorTryAgain on about:neterror/certerror. r=prathiksha
We were using the same ID on two elements, which kind of messed up things everywhere
our code reasonably expected only one element of the kind to exist. We just use a
class name now.

This also cleans up #advancedPanelErrorTryAgain which worked around this issue
by using a different ID.

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

--HG--
rename : browser/base/content/test/general/browser_bug435325.js => browser/base/content/test/about/browser_bug435325.js
extra : moz-landing-system : lando
2019-05-13 19:38:03 +00:00
prathiksha
04f8eeac8f Bug 1544610 - Part 1 - Have certerror captive portal message exchanges happen over RPM. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D28539

--HG--
extra : moz-landing-system : lando
2019-05-03 23:30:35 +00:00
monikamaheshwari
bb5ca39415 Bug 1530335 Use the same date/time format everywhere on cert error pages r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27875

--HG--
extra : moz-landing-system : lando
2019-05-06 06:13:58 +00:00
Mike Conley
bff8e0ac63 Bug 1533955 - Show some UI to indicate that a subframe has crashed. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D29238

--HG--
extra : moz-landing-system : lando
2019-05-01 20:05:24 +00:00
Dan Minor
4d0f83f387 Bug 1497559 - Remove Application from mediaCaptureWindowState; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D28093

--HG--
extra : moz-landing-system : lando
2019-04-30 15:06:23 +00:00
Cosmin Sabou
6128796e78 Backed out changeset 348e15018884 (bug 1530335) for turning bug 1540336 into permafail.
--HG--
extra : amend_source : 9177f13fa73fe36345cd82bc876b946649dd2e66
2019-04-26 21:20:55 +03:00
monikamaheshwari
1750bef8c2 Bug 1530335 Use the same date/time format everywhere on cert error pages r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27875

--HG--
extra : moz-landing-system : lando
2019-04-26 15:21:34 +00:00
Ryan Hunt
d6509bb237 Bug 1534395 - Rename TabChild to BrowserChild. r=nika
This commit renames TabChild to BrowserChild.

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

--HG--
rename : dom/base/InProcessTabChildMessageManager.cpp => dom/base/InProcessBrowserChildMessageManager.cpp
rename : dom/base/InProcessTabChildMessageManager.h => dom/base/InProcessBrowserChildMessageManager.h
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabChild.h => dom/ipc/BrowserChild.h
extra : rebase_source : e7fcfb845a971a2760e73d517e24da18ce2551b5
extra : histedit_source : d1991334ccb107fe56e478865f22fd97b041a317
2019-04-09 17:39:01 -05:00
Ryan Hunt
e9e7d608be Bug 1534395 - Rename nsITabChild to nsIBrowserChild. r=nika,mconley
Similarly to nsITabParent, TabChild is exposed to frontend code via nsITabChild. It's not clear what the future of this interface will be, but for now we can just rename it to nsIBrowserChild.

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

--HG--
rename : dom/interfaces/base/nsITabChild.idl => dom/interfaces/base/nsIBrowserChild.idl
extra : rebase_source : a6c42a661e35b19e46c60f6f6a6f3dab64c0a1bc
extra : histedit_source : 1eb475bd840bf37a3f86294685c9b3c250684e79
2019-04-09 18:15:02 -05:00
Ian Moody
be1cc378ed Bug 1379466 - Make editor listen for auxclick mouse events. r=smaug,masayuki
Editable elements will no longer get click events for non-primary mouse buttons
since they are being unshipped from the web in favour of auxclick events.
Listen for auxclick as well so middle-click paste still works.
Don't stop propagation after middle-click paste, instead ignore clicks on
contenteditable elements in ClickHandlerChild.
Update test_middle_click_paste.html for the new behaviour.

Also remove the mNoContentDispatch overrides in HTMLInputElement and
HTMLTextAreaElement that were needed for middle-pasting.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 12:57:36 +00:00
Ian Moody
1cabd68a41 Bug 1379466 - Use auxclick event to trigger new tab on middle click. r=smaug
So it is still preventDefault()able once non-primary clicks aren't web visible.

Don't let browser.js' contentAreaClick handle any non-primary clicks.
ClickHandlerChild.jsm handles them first anyway.  Can probably rip it out
entirely in another bug.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 12:57:36 +00:00
Johann Hofmann
cdd6d741fd Bug 1536454 - Part 1 - Add userHadInteractedWithDocument and documentDOMContentLoadedTimestamp attributes to nsIContentPermissionPrompt. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D26942

--HG--
extra : moz-landing-system : lando
2019-04-18 13:43:05 +00:00
Syeda Asra Arshia Qadri
aaa3bfa63b Bug 1477875: _getErrorMessageFromCode in NetErrorContent.jsm doesn't handle e.g. NSPR errors well. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27331

--HG--
extra : moz-landing-system : lando
2019-04-16 20:40:27 +00:00
Thomas Nguyen
3c8351815e Bug 1539408 Pass referrerInfo to gContextMenuContentData in non-remote r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D25419

--HG--
extra : moz-landing-system : lando
2019-04-02 08:53:28 +00:00
Paul Zuehlcke
7e178a2c6f Bug 1540685 - Fixed duplicate definition of URL getter. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D25606

--HG--
extra : moz-landing-system : lando
2019-04-01 13:39:04 +00:00
Tom Schuster
7ad50e3460 Bug 1540396 - Remove Array.slice and Array.map from PageStyleChild.jsm. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D25543

--HG--
extra : moz-landing-system : lando
2019-04-01 18:02:16 +00:00
Johann Hofmann
204f870fd6 Bug 1530348 - Unfork aboutNetError.{xhtml,css}. r=nhnt11
The larger changesets in this patch are simply moving code from one file into the other with hg mv.

A short summary of the changes:

- I removed the forked redirection from AboutRedirector.cpp
- I deleted the original aboutNetError.xhtml and aboutNetError.css files
  and moved aboutNetError-new.xhtml and aboutNetError-new.css in their place instead.
- I removed the browser.security.newcerterrorpage.enabled pref and all its usages.
- I removed some localization strings and resources that went unused because of the above changes.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 09:33:58 +00:00
Christian Frey
ab47477977 Bug 1523734 - Migrate about:blocked to Fluent r=flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D23611

--HG--
extra : moz-landing-system : lando
2019-03-28 17:08:34 +00:00