feat(webview): support page.emulateMedia#41386
Conversation
| const contextOptions = this._browserContext._options; | ||
| if (contextOptions.userAgent) | ||
| promises.push(this.updateUserAgent()); | ||
| const emulatedMedia = this._page.emulatedMedia(); |
There was a problem hiding this comment.
Why did this part change? I assume it's redundant with the updateEmulateMedia removed below, if so, can we just drop this part or the order matters here?
There was a problem hiding this comment.
yeah this was just something i noticed when looking at this file for reference
i thought it looked cleaner to use updateEmulateMedia (which btw does the exact same thing) and to prefer the earlier callsite since that can have more of an effect (e.g. if the developer checks media state in their bootstrap script)
There was a problem hiding this comment.
actually there is a difference. this is just dealing with a specific session whereas updateEmulateMedia deals with all of them
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b5f33ef to
df2ed7a
Compare
df2ed7a to
e8b722f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"7354 passed, 1122 skipped Merge workflow run. |
Test results for "tests 2"5 failed 33 flaky104490 passed, 4400 skipped Merge workflow run. |
Test results for "tests 1"1 failed 6 flaky48905 passed, 1142 skipped Merge workflow run. |
No description provided.