Commit Graph

857 Commits

Author SHA1 Message Date
Brendan Dahl
bf272a3bca Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

Differential Revision: https://phabricator.services.mozilla.com/D45613
2019-10-08 23:52:14 +00:00
Brindusan Cristian
dc5f656d75 Backed out changeset 41c6b7e917fd (bug 1367251) for mochitest failures at test_conformance__textures__image_bitmap_from_blob__tex-2d-luminance-luminance-unsigned_byte.html. CLOSED TREE 2019-10-07 04:46:13 +03:00
aardgoose
61cc1c9044 Bug 1367251 - add bindings for options to createImageBitmap and support flipY r=bzbarsky,aosmond
implementation of imageOrientation: none|flipY.

Differential Revision: https://phabricator.services.mozilla.com/D29562
2019-10-04 15:20:53 +00:00
Jonathan Kingston
70ec17fad1 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-30 00:55:02 +00:00
Ehsan Akhgari
772d7644fd Bug 1577298 - Do not stop at the current document when computing the top-level principal for storage partitioning; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D47339
2019-09-27 14:05:13 +00:00
Coroiu Cristina
92b7c5ae5c Backed out changeset f3c1becf9396 (bug 1237782) for browser-chrome failures at dom/tests/mochitest/ajax/offline/browser_disableAppcache.js on a CLOSED TREE 2019-09-26 23:05:07 +03:00
Jonathan Kingston
26c75555dc Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-26 19:03:04 +00:00
Tom Tung
e675497e60 Bug 1562663 - P4b - Enable SAB for window.postMessage and worker.postMessage; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D43243
2019-09-23 09:57:24 +00:00
Tom Tung
92842590ab Bug 1562663 - P2 - Pass the agent cluster id to the ClientInfo so that we can check whether two clients are in the same agent cluster; r=nika
The agent cluster id is set when the EnsureClientSource is executed;

Differential Revision: https://phabricator.services.mozilla.com/D43240
2019-09-23 09:57:23 +00:00
Jonathan Watt
c25ce80903 Bug 1559841. Make the 'load' event wait for OOP-iframes to load. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41953
2019-09-19 00:00:44 +00:00
Mihai Alexandru Michis
fd2045760a Merge inbound to mozilla-central. a=merge 2019-09-18 12:58:15 +03:00
Kris Maglione
3988b93f74 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

MANUAL PUSH: Cannot update re-opened Phabricator revisions.
2019-09-16 18:17:17 -07:00
Daniel Varga
4c8e3ceace Backed out 2 changesets (bug 1577723) for wpt failure at /html/browsers/history/the-location-interface/no-browsing-context.window.html
Backed out changeset 8bf308d3b614 (bug 1577723)
Backed out changeset 6ba3bcede28a (bug 1577723)
2019-09-18 01:50:35 +03:00
Kris Maglione
356a2e4c8d Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

MANUAL PUSH: Cannot update re-opened Phabricator revisions.
2019-09-16 18:17:17 -07:00
Bogdan Tara
bd7e7b3afb Backed out 21 changesets (bug 1578327, bug 1575448, bug 1580091, bug 1576554, bug 1581049, bug 1576551, bug 1578329, bug 1576555) for platform.cpp related bustage CLOSED TREE
Backed out changeset 27afea20c396 (bug 1581049)
Backed out changeset be1ec4577d37 (bug 1581049)
Backed out changeset b4b6bbb18cc1 (bug 1581049)
Backed out changeset b30942f9db54 (bug 1581049)
Backed out changeset 473c431866f7 (bug 1578329)
Backed out changeset ac492dc3df20 (bug 1578329)
Backed out changeset f51875652f6f (bug 1578327)
Backed out changeset 512b7cbd18f6 (bug 1576555)
Backed out changeset 2d63a9934c00 (bug 1576555)
Backed out changeset ff73f648ab6c (bug 1576555)
Backed out changeset 49f49079bbb5 (bug 1576555)
Backed out changeset e8323157c6f3 (bug 1575448)
Backed out changeset 3b0d726f2dd6 (bug 1575448)
Backed out changeset 5924790abc4b (bug 1576554)
Backed out changeset a14ac9bb5338 (bug 1576554)
Backed out changeset b6d73f5042a7 (bug 1576551)
Backed out changeset 366030bd2d84 (bug 1576551)
Backed out changeset d7ee4148aad9 (bug 1576551)
Backed out changeset ec72dfc7301e (bug 1576551)
Backed out changeset 79b29286f906 (bug 1580091)
Backed out changeset 6f34c2e57ccf (bug 1580091)
2019-09-17 10:16:14 +03:00
Gerald Squelart
fdb31cc298 Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

Differential Revision: https://phabricator.services.mozilla.com/D44435
2019-09-17 01:53:56 +00:00
Brindusan Cristian
41a5b05884 Backed out changeset 3af4309ffce7 (bug 1237782) for wpt assertions/leaks. CLOSED TREE 2019-09-17 01:03:46 +03:00
Gerald Squelart
0449f60853 Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

Differential Revision: https://phabricator.services.mozilla.com/D44435
2019-09-18 01:22:12 +00:00
Jonathan Kingston
13933a8987 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-16 17:24:39 +00:00
Dorel Luca
0463afb33f Backed out changeset 6d1a9a57c526 (bug 1577723) for Reftests in /reftest/tests/dom/base/crashtests/973401.html. CLOSED TREE 2019-09-17 21:19:10 +03:00
Kris Maglione
65575589a6 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

Differential Revision: https://phabricator.services.mozilla.com/D46100
2019-09-17 14:56:03 +00:00
Gurzau Raul
9def00d710 Backed out changeset 8c25acd6a557 (bug 1237782) for wpt failures at controller-on-disconnect.https.html 2019-09-07 14:32:37 +03:00
Jonathan Kingston
3c857e2aa7 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-07 07:45:30 +00:00
Cosmin Sabou
63c18f3f11 Backed out changeset 7dc9a45ef7d6 (bug 1237782) for causing browser chrome failures on browser_disableAppcache.js CLOSED TREE 2019-09-06 19:10:20 +03:00
Jonathan Kingston
75025cebec Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-06 15:02:34 +00:00
arthur.iakab
50f4c80684 Backed out changeset e3f06f11de62 (bug 1237782) for causing browser-chrome failure on automation.py CLOSED TREE 2019-09-03 21:04:49 +03:00
Jonathan Kingston
42b359703b Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-03 16:44:13 +00:00
Edgar Chen
4327dc19b1 Bug 1577175 - Part 1: Set UserGestureActivation in all ancestor of the BrowsingContext that user has interacted with; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44358
2019-09-02 22:25:57 +00:00
Kris Maglione
4e8cd54a3e Bug 1576407: Follow-up: Ignore window.opener get/set when BrowsingContext is discarded. r=nika
MANUAL PUSH: Can't update patch on phabricator.

Differential Revision: https://phabricator.services.mozilla.com/D43833
2019-08-28 21:50:44 +00:00
Kris Maglione
abf57fd58e Bug 1576407: Part 4 - Stop storing opener redundantly on nsGlobalWindowOuter. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D43693
2019-08-28 18:07:45 +00:00
Kris Maglione
08e8c348f1 Bug 1576407: Part 3 - Return window opener as a WindowProxyHolder or BrowsingContext. r=farre
Also adds a legacy `GetSameProcessOpener()` method for callers which can only
deal with in-process windows and may need to be updated for Fission.

Differential Revision: https://phabricator.services.mozilla.com/D43692
2019-08-28 18:07:38 +00:00
Ehsan Akhgari
91b86c2721 Backout changeset 5306ba39ab30 (bug 1529396) because of harm on web developers and insufficient evidence for continued web compatibility usefulness
Differential Revision: https://phabricator.services.mozilla.com/D44053
2019-08-29 21:03:59 +00:00
Mihai Alexandru Michis
5bf8e80ffd Backed out 6 changesets (bug 1576407) for causing wpt and mochitest failures. CLOSED TREE
Backed out changeset 3b0498064cbf (bug 1576407)
Backed out changeset 38e4ea431445 (bug 1576407)
Backed out changeset 19bf40067233 (bug 1576407)
Backed out changeset 0ddbc451dcab (bug 1576407)
Backed out changeset 08d4c25fc670 (bug 1576407)
Backed out changeset be7cbc61f825 (bug 1576407)
2019-08-29 03:00:47 +03:00
Kris Maglione
8118aaf7ab Bug 1576407: Follow-up: Ignore window.opener get/set when BrowsingContext is discarded.
Differential Revision: https://phabricator.services.mozilla.com/D43833
2019-08-28 21:50:44 +00:00
Kris Maglione
9c50c43630 Bug 1576407: Part 4 - Stop storing opener redundantly on nsGlobalWindowOuter. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D43693
2019-08-28 18:07:45 +00:00
Kris Maglione
176a22d6ef Bug 1576407: Part 3 - Return window opener as a WindowProxyHolder or BrowsingContext. r=farre
Also adds a legacy `GetSameProcessOpener()` method for callers which can only
deal with in-process windows and may need to be updated for Fission.

Differential Revision: https://phabricator.services.mozilla.com/D43692
2019-08-28 18:07:38 +00:00
Ehsan Akhgari
2ed1369d2e Bug 1575609 - Switch away from using Fission-incompatible inprocess APIs for finding the window top in the anti-tracking backend; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D42974
2019-08-22 17:22:08 +00:00
Nika Layzell
8f12a56d0d Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37656
2019-08-08 16:07:12 +00:00
Nika Layzell
1e7685d089 Bug 1523638 - Part 4: Move NextWindowId logic into nsContentUtils, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D37651
2019-08-08 16:07:03 +00:00
Ehsan Akhgari
b1b890cb54 Bug 1566825 - Part 2: Support storing and querying for anti-tracking permission grants in private windows; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D40363
2019-08-06 20:07:21 +00:00
Andreea Pavel
f8b48a255a Backed out 2 changesets (bug 1566825) for build bustages on a CLOSED TREE
Backed out changeset 7fcd3effcc45 (bug 1566825)
Backed out changeset 15de0b815be9 (bug 1566825)
2019-08-06 21:17:16 +03:00
Ehsan Akhgari
50242a1ef9 Bug 1566825 - Part 2: Support storing and querying for anti-tracking permission grants in private windows; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D40363
2019-08-05 08:30:22 +00:00
Andrew McCreight
3c0caea42a Bug 1571121 - Change Window.print() from using Func to Pref. r=bzbarsky
This can be done by changing the pref from being enable instead of disable.

Differential Revision: https://phabricator.services.mozilla.com/D40522
2019-08-03 02:17:00 +00:00
Nicholas Nethercote
be038da6e3 Bug 1570212 - Convert dom.disable_window_print to a static pref. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D40158
2019-08-02 11:59:05 +00:00
Olli Pettay
1dc86f5564 Bug 1570797, Add a pref to control the time when certain tasks are deprioritized during page load, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D40330
2019-08-02 08:52:42 +00:00
Boris Zbarsky
9319a089e3 Bug 1570350. Refactor ConstructJSImplementation to make consumers a bit simpler. r=mccr8
We could get rid of the need to specify the impl class at the callsite by
taking a T** instead of returning an already_AddRefed<T>, but I'm not sure
which is uglier...

The change from `globalHolder->GetGlobalJSObject()` to `global.Get()` is OK,
because `globalHolder` was coming from the nsISupports attached to
`global.Get()` anyway, so those are the same global JS object.

Differential Revision: https://phabricator.services.mozilla.com/D40060
2019-07-31 21:38:00 +00:00
Tom Schuster
2c388af9b0 Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/base. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D39780
2019-07-30 17:51:37 +00:00
Kristen Wright
49997456db Bug 1569004 - Convert dom.timeout.enable_budget_timer_throttling to static pref. r=njn
Converts dom.timeout.enable_budget_timer_throttling from varcache pref to static pref, removes entry from all.js, adds entry to StaticPrefList.yaml. Uses the all.js value and not the value declared in TimeoutManager.cpp. Since this removes the last varcache pref from TimeoutManager::Initialize(), I also removed the Initialize() function and its call in nsGlobalWindowInner.

Differential Revision: https://phabricator.services.mozilla.com/D39455
2019-07-26 20:14:48 +00:00
kriswright
972be3944a Bug 1569004 - convert dom.disable_open_click_delay to StaticPref. r=njn
Converts dom.disable_open_click_delay from a VarCache pref in TimeoutManager.cpp to StaticPref, removes all.js entry, and corrects a typo where the value was mentioned in nsGlobalWindowInner.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D39424
2019-07-26 19:28:30 +00:00
Kannan Vijayan
c690c1925f Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39378
2019-07-26 16:48:31 +00:00