Open Bug 1567641 Opened 5 years ago Updated 2 years ago

Remove requirement to reject after document becomes inactive

Categories

(Core :: DOM: Web Payments, defect, P5)

defect

Tracking

()

People

(Reporter: marcosc, Unassigned)

Details

Attachments

(1 obsolete file)

Based on spec change and discussion https://github.com/w3c/payment-request/pull/875

Assignee: nobody → mcaceres
Priority: -- → P3

Recent spec change.

Summary: Remove requirement to reject after document is inactive → Remove requirement to reject after document becomes inactive

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:marcosc, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(mcaceres)

Yep, I need to revise this but can't right now... will sit on it for a bit longer.

Flags: needinfo?(mcaceres)

:marcosc, is this still needed as we do not ship Web Payments, anyway? Can we close this?

Flags: needinfo?(mcaceres)

Same as the other bug... I'd like to land this just so we keep our implementation and the spec up to date. I'd try to do it in my spare time over xmas.

Flags: needinfo?(mcaceres)
Severity: normal → S3

(In reply to Marcos Caceres [:marcosc] from comment #5)

Same as the other bug... I'd like to land this just so we keep our implementation and the spec up to date. I'd try to do it in my spare time over xmas.

Hi Marcos, is there anything that prevents us from landing that patch?

Flags: needinfo?(mcaceres)

(In reply to Jens Stutte [:jstutte] from comment #6)

Hi Marcos, is there anything that prevents us from landing that patch?

The patch is no quite correct :( I need to fix it, but I've not gotten time to do that yet. Will ping you on Slack with some details.

Flags: needinfo?(mcaceres)

Might need to add/refactor this again in dom/payments/test/test_closePayment.html:

async function testNonfullyActivePayment() {
    const testName = "testNonfullyActivePayment";
    await requestChromeAction("test-setup", testName);
    const outer = document.createElement("iframe");
    outer.allowPaymentRequest = true;
    document.body.appendChild(outer);

    const outerRequest = await getLoadedPaymentRequest(outer);
    ok(outerRequest, `${testName}: Outer iframe request exists.`);

    const inner = outer.contentDocument.createElement("iframe");
    inner.allowPaymentRequest = true;
    outer.contentDocument.body.appendChild(inner);

    const request = await getLoadedPaymentRequest(inner);
    ok(request, `${testName}: PaymentRequest in inner iframe exist.`);

    await new Promise(res => {
      outer.onload = res;
      outer.src = "simple_payment_request.html";
    });

    outer.onload = null;

    const handler = SpecialPowers.getDOMWindowUtils(inner.contentWindow).setHandlingUserInput(true);
    try {
      const showPromise = await request.show();
      ok(false, `${testName}: expected 'AbortError', but got resolved.`);
    } catch (error) {
      is(error.name, "AbortError", `${testName}: expected 'AbortError'.`);
    }
    await handler.destruct();
    inner.remove();
    outer.remove();
  }
Attachment #9079973 - Attachment is obsolete: true
Assignee: mcaceres → nobody
Severity: S3 → N/A
Priority: P3 → P5

Payment Request is still disabled by default, so S4.

Severity: N/A → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: